feat(server): add ADetailer support to image generation (#2164)

This commit is contained in:
losewayy
2026-10-21 23:11:36 +08:00
committed by GitHub
parent 0518b34374
commit 845646b034
10 changed files with 515 additions and 61 deletions
+1 -1
View File
@@ -2219,7 +2219,7 @@ bool SDGenerationParams::from_json_str(
if (target_custom_sigmas != nullptr &&
sample_json.contains("custom_sigmas") &&
sample_json["custom_sigmas"].is_array() &&
!sample_json["custom_sigmas"].empty()) { // empty [] = "not specified", keep server/CLI default
!sample_json["custom_sigmas"].empty()) { // empty [] = "not specified", keep server/CLI default
*target_custom_sigmas = sample_json["custom_sigmas"].get<std::vector<float>>();
}
if (sample_json.contains("sample_method") && sample_json["sample_method"].is_string()) {