michaelj commited on
Commit
3ed7a5b
·
1 Parent(s): eac3efc

change shape

Browse files
Files changed (1) hide show
  1. frontend/webui/image_to_image_ui.py +11 -11
frontend/webui/image_to_image_ui.py CHANGED
@@ -42,17 +42,17 @@ def generate_image_to_image(
42
  image_width = app_settings.settings.lcm_diffusion_setting.image_width
43
  image_height = app_settings.settings.lcm_diffusion_setting.image_height
44
  num_images = app_settings.settings.lcm_diffusion_setting.number_of_images
45
- # if app_settings.settings.lcm_diffusion_setting.use_openvino:
46
- # reshape = is_reshape_required(
47
- # previous_width,
48
- # image_width,
49
- # previous_height,
50
- # image_height,
51
- # previous_model_id,
52
- # model_id,
53
- # previous_num_of_images,
54
- # num_images,
55
- # )
56
 
57
 
58
  with ThreadPoolExecutor(max_workers=1) as executor:
 
42
  image_width = app_settings.settings.lcm_diffusion_setting.image_width
43
  image_height = app_settings.settings.lcm_diffusion_setting.image_height
44
  num_images = app_settings.settings.lcm_diffusion_setting.number_of_images
45
+ if app_settings.settings.lcm_diffusion_setting.use_openvino:
46
+ reshape = is_reshape_required(
47
+ previous_width,
48
+ image_width,
49
+ previous_height,
50
+ image_height,
51
+ previous_model_id,
52
+ model_id,
53
+ previous_num_of_images,
54
+ num_images,
55
+ )
56
 
57
 
58
  with ThreadPoolExecutor(max_workers=1) as executor: