michaelj commited on
Commit
30a6d7b
1 Parent(s): d4ecb28

app_settings.settings.lcm_diffusion_setting.image_height

Browse files
frontend/webui/image_to_image_ui.py CHANGED
@@ -28,7 +28,7 @@ def generate_image_to_image(
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)
32
  app_settings.settings.lcm_diffusion_setting.prompt = prompt
33
  app_settings.settings.lcm_diffusion_setting.negative_prompt = negative_prompt
34
  app_settings.settings.lcm_diffusion_setting.init_image = img
@@ -39,7 +39,7 @@ def generate_image_to_image(
39
  )
40
  model_id = app_settings.settings.lcm_diffusion_setting.openvino_lcm_model_id
41
  reshape = False
42
- app_settings.settings.lcm_diffusion_setting.image_height=newH
43
  image_width = app_settings.settings.lcm_diffusion_setting.image_width
44
  image_height = app_settings.settings.lcm_diffusion_setting.image_height
45
  num_images = app_settings.settings.lcm_diffusion_setting.number_of_images
 
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,app_settings.settings.lcm_diffusion_setting.image_height)
32
  app_settings.settings.lcm_diffusion_setting.prompt = prompt
33
  app_settings.settings.lcm_diffusion_setting.negative_prompt = negative_prompt
34
  app_settings.settings.lcm_diffusion_setting.init_image = img
 
39
  )
40
  model_id = app_settings.settings.lcm_diffusion_setting.openvino_lcm_model_id
41
  reshape = False
42
+ # app_settings.settings.lcm_diffusion_setting.image_height=newH
43
  image_width = app_settings.settings.lcm_diffusion_setting.image_width
44
  image_height = app_settings.settings.lcm_diffusion_setting.image_height
45
  num_images = app_settings.settings.lcm_diffusion_setting.number_of_images