Upload folder using huggingface_hub
Browse files
backend/lcm_text_to_image.py
CHANGED
@@ -98,6 +98,7 @@ class LCMTextToImage:
|
|
98 |
w, h = lcm_diffusion_setting.init_image.size
|
99 |
newW = lcm_diffusion_setting.image_width
|
100 |
newH = int(h * newW / w)
|
|
|
101 |
img = lcm_diffusion_setting.init_image.resize((newW, newH))
|
102 |
print("新图",newH,newW, lcm_diffusion_setting.image_height)
|
103 |
lcm_diffusion_setting.init_image = resize_pil_image(
|
|
|
98 |
w, h = lcm_diffusion_setting.init_image.size
|
99 |
newW = lcm_diffusion_setting.image_width
|
100 |
newH = int(h * newW / w)
|
101 |
+
lcm_diffusion_setting.image_height=newH
|
102 |
img = lcm_diffusion_setting.init_image.resize((newW, newH))
|
103 |
print("新图",newH,newW, lcm_diffusion_setting.image_height)
|
104 |
lcm_diffusion_setting.init_image = resize_pil_image(
|