mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-02-04 10:53:34 +00:00
fix: correct mask and control image loading in cli (#1229)
This commit is contained in:
parent
fa61ea744d
commit
4ccce027b2
@ -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())) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user