Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -568,7 +568,9 @@ class GuiSD:
|
|
568 |
|
569 |
if (
|
570 |
(img_height > 1700 and img_width > 1700)
|
571 |
-
or (num_images > 1)
|
|
|
|
|
572 |
or (adetailer_active_a and adetailer_active_b)
|
573 |
or (upscaler_model and upscaler_increases_size > 1.7)
|
574 |
or (steps > 75)
|
@@ -577,6 +579,7 @@ class GuiSD:
|
|
577 |
print("Inference 2")
|
578 |
return self.infer(self.model, pipe_params)
|
579 |
|
|
|
580 |
return self.infer_short(self.model, pipe_params)
|
581 |
|
582 |
|
|
|
568 |
|
569 |
if (
|
570 |
(img_height > 1700 and img_width > 1700)
|
571 |
+
or (num_images > 1 and img_height>1048 and img_width>1048)
|
572 |
+
or (num_images > 1 and upscaler_model)
|
573 |
+
or (num_images > 1 and adetailer_active_a or num_images > 1 and adetailer_active_b)
|
574 |
or (adetailer_active_a and adetailer_active_b)
|
575 |
or (upscaler_model and upscaler_increases_size > 1.7)
|
576 |
or (steps > 75)
|
|
|
579 |
print("Inference 2")
|
580 |
return self.infer(self.model, pipe_params)
|
581 |
|
582 |
+
pribt("Inference 1")
|
583 |
return self.infer_short(self.model, pipe_params)
|
584 |
|
585 |
|