michaelj commited on
Commit
a59b14b
·
1 Parent(s): 59dbc3e

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. backend/lcm_text_to_image.py +1 -0
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(