change height
Browse files
backend/lcm_text_to_image.py
CHANGED
@@ -107,7 +107,7 @@ class LCMTextToImage:
|
|
107 |
w, h = lcm_diffusion_setting.init_image.size
|
108 |
newW = lcm_diffusion_setting.image_width
|
109 |
newH = self.make_even(int(h * newW / w))
|
110 |
-
lcm_diffusion_setting.image_height=newH
|
111 |
img = lcm_diffusion_setting.init_image.resize((newW, newH))
|
112 |
print("新图",newH,newW, lcm_diffusion_setting.image_height)
|
113 |
lcm_diffusion_setting.init_image = resize_pil_image(
|
|
|
107 |
w, h = lcm_diffusion_setting.init_image.size
|
108 |
newW = lcm_diffusion_setting.image_width
|
109 |
newH = self.make_even(int(h * newW / w))
|
110 |
+
# lcm_diffusion_setting.image_height=newH
|
111 |
img = lcm_diffusion_setting.init_image.resize((newW, newH))
|
112 |
print("新图",newH,newW, lcm_diffusion_setting.image_height)
|
113 |
lcm_diffusion_setting.init_image = resize_pil_image(
|