feat: add more built-in highres upscalers (#1456)

This commit is contained in:
leejet authored and GitHub committed 2026-04-23 22:17:58 +08:00
1 parent c97702e105
commit b8bdffc199
11 files changed
+622 -207

No files matched your search

+4 -1
View File
@@ -690,7 +690,10 @@ int main(int argc, const char* argv[]) {
vae_decode_only = false;
}
if (gen_params.hires_enabled && !gen_params.hires_upscaler_model_path.empty()) {
if (gen_params.hires_enabled &&
(gen_params.resolved_hires_upscaler == SD_HIRES_UPSCALER_MODEL ||
gen_params.resolved_hires_upscaler == SD_HIRES_UPSCALER_LANCZOS ||
gen_params.resolved_hires_upscaler == SD_HIRES_UPSCALER_NEAREST)) {
vae_decode_only = false;
}