We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8577446 commit f87d5f2Copy full SHA for f87d5f2
examples/server/main.cpp
@@ -778,6 +778,12 @@ void parseJsonPrompt(std::string json_str, SDParams* params) {
778
params->input_id_images_path = input_id_images_path;
779
} catch (...) {
780
}
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)
787
788
789
// https://github.com/comfyanonymous/ComfyUI/blob/master/comfy/latent_formats.py#L152-L169
0 commit comments