fix: correct mask and control image loading in cli (#1229)

This commit is contained in:
Equious 2026-01-25 07:47:52 -07:00 committed by GitHub
parent fa61ea744d
commit 4ccce027b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -603,7 +603,7 @@ int main(int argc, const char* argv[]) {
} }
if (gen_params.mask_image_path.size() > 0) { if (gen_params.mask_image_path.size() > 0) {
if (load_sd_image_from_file(&mask_image, if (!load_sd_image_from_file(&mask_image,
gen_params.mask_image_path.c_str(), gen_params.mask_image_path.c_str(),
gen_params.get_resolved_width(), gen_params.get_resolved_width(),
gen_params.get_resolved_height(), gen_params.get_resolved_height(),
@ -625,7 +625,7 @@ int main(int argc, const char* argv[]) {
} }
if (gen_params.control_image_path.size() > 0) { if (gen_params.control_image_path.size() > 0) {
if (load_sd_image_from_file(&control_image, if (!load_sd_image_from_file(&control_image,
gen_params.control_image_path.c_str(), gen_params.control_image_path.c_str(),
gen_params.get_resolved_width(), gen_params.get_resolved_width(),
gen_params.get_resolved_height())) { gen_params.get_resolved_height())) {