Skip to content

Commit

Permalink
server: accept slg_scale
Browse files Browse the repository at this point in the history
  • Loading branch information
stduhpf committed Nov 4, 2024
1 parent 8577446 commit f87d5f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/server/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,12 @@ void parseJsonPrompt(std::string json_str, SDParams* params) {
params->input_id_images_path = input_id_images_path;
} catch (...) {
}
try {
std::string slg_scale = payload["slg_scale"];
params->slg_scale = stof(slg_scale);
} catch (...) {
}
// TODO: more slg settings (layers, start and end)
}

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

0 comments on commit f87d5f2

Please sign in to comment.