change width
Browse files
frontend/webui/image_to_image_ui.py
CHANGED
@@ -25,7 +25,7 @@ def generate_image_to_image(
|
|
25 |
) -> Any:
|
26 |
global previous_height, previous_width, previous_model_id, previous_num_of_images, app_settings
|
27 |
w, h = init_image.size
|
28 |
-
newW =
|
29 |
newH = int(h * newW / w)
|
30 |
img = init_image.resize((newW, newH))
|
31 |
print("新图",newH,newW)
|
|
|
25 |
) -> Any:
|
26 |
global previous_height, previous_width, previous_model_id, previous_num_of_images, app_settings
|
27 |
w, h = init_image.size
|
28 |
+
newW = app_settings.settings.lcm_diffusion_setting.image_width
|
29 |
newH = int(h * newW / w)
|
30 |
img = init_image.resize((newW, newH))
|
31 |
print("新图",newH,newW)
|