michaelj commited on
Commit
a5a9510
1 Parent(s): 5d15b69

delete height

Browse files
Files changed (1) hide show
  1. frontend/webui/image_to_image_ui.py +12 -12
frontend/webui/image_to_image_ui.py CHANGED
@@ -39,21 +39,21 @@ 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
46
- # if app_settings.settings.lcm_diffusion_setting.use_openvino:
47
- # reshape = is_reshape_required(
48
- # previous_width,
49
- # image_width,
50
- # previous_height,
51
- # image_height,
52
- # previous_model_id,
53
- # model_id,
54
- # previous_num_of_images,
55
- # num_images,
56
- # )
57
 
58
 
59
  with ThreadPoolExecutor(max_workers=1) as executor:
 
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
46
+ if app_settings.settings.lcm_diffusion_setting.use_openvino:
47
+ reshape = is_reshape_required(
48
+ previous_width,
49
+ image_width,
50
+ previous_height,
51
+ image_height,
52
+ previous_model_id,
53
+ model_id,
54
+ previous_num_of_images,
55
+ num_images,
56
+ )
57
 
58
 
59
  with ThreadPoolExecutor(max_workers=1) as executor: