File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ int main(int argc, const char** argv) {
405405 std::string output_format = j.value (" output_format" , " png" );
406406 int output_compression = j.value (" output_compression" , 100 );
407407 int width = default_gen_params.width > 0 ? default_gen_params.width : 512 ;
408- int height = default_gen_params.width > 0 ? default_gen_params.height : 512 ;
408+ int height = default_gen_params.width > 0 ? default_gen_params.height : 512 ;
409409 if (!size.empty ()) {
410410 auto pos = size.find (' x' );
411411 if (pos != std::string::npos) {
@@ -988,7 +988,6 @@ int main(int argc, const char** argv) {
988988 };
989989
990990 if (img2img) {
991-
992991 if (j.contains (" init_images" ) && j[" init_images" ].is_array () && !j[" init_images" ].empty ()) {
993992 std::string encoded = j[" init_images" ][0 ].get <std::string>();
994993 decode_image (init_image, encoded);
You can’t perform that action at this time.
0 commit comments