Skip to content

Commit 4ccce02

Browse files
authored
fix: correct mask and control image loading in cli (#1229)
1 parent fa61ea7 commit 4ccce02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/cli/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ int main(int argc, const char* argv[]) {
603603
}
604604

605605
if (gen_params.mask_image_path.size() > 0) {
606-
if (load_sd_image_from_file(&mask_image,
606+
if (!load_sd_image_from_file(&mask_image,
607607
gen_params.mask_image_path.c_str(),
608608
gen_params.get_resolved_width(),
609609
gen_params.get_resolved_height(),
@@ -625,7 +625,7 @@ int main(int argc, const char* argv[]) {
625625
}
626626

627627
if (gen_params.control_image_path.size() > 0) {
628-
if (load_sd_image_from_file(&control_image,
628+
if (!load_sd_image_from_file(&control_image,
629629
gen_params.control_image_path.c_str(),
630630
gen_params.get_resolved_width(),
631631
gen_params.get_resolved_height())) {

0 commit comments

Comments
 (0)