michaelj commited on
Commit
1c1c70e
·
1 Parent(s): 048774d
Files changed (1) hide show
  1. frontend/webui/image_to_image_ui.py +11 -11
frontend/webui/image_to_image_ui.py CHANGED
@@ -43,17 +43,17 @@ def generate_image_to_image(
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:
 
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: