Skip to content

Commit f87d5f2

Browse files
committed
server: accept slg_scale
1 parent 8577446 commit f87d5f2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/server/main.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,12 @@ void parseJsonPrompt(std::string json_str, SDParams* params) {
778778
params->input_id_images_path = input_id_images_path;
779779
} catch (...) {
780780
}
781+
try {
782+
std::string slg_scale = payload["slg_scale"];
783+
params->slg_scale = stof(slg_scale);
784+
} catch (...) {
785+
}
786+
// TODO: more slg settings (layers, start and end)
781787
}
782788

783789
// https://github.com/comfyanonymous/ComfyUI/blob/master/comfy/latent_formats.py#L152-L169

0 commit comments

Comments
 (0)