zhiweili commited on
Commit
2a183bf
1 Parent(s): b38f27e

fix generate_size

Browse files
Files changed (1) hide show
  1. app_base.py +1 -0
app_base.py CHANGED
@@ -72,6 +72,7 @@ def create_demo() -> gr.Blocks:
72
  upscale_steps=upscale_steps,
73
  )
74
  run_task_time, time_cost_str = get_time_cost(run_task_time, time_cost_str)
 
75
 
76
  return enhanced_image, res_image, time_cost_str
77
 
 
72
  upscale_steps=upscale_steps,
73
  )
74
  run_task_time, time_cost_str = get_time_cost(run_task_time, time_cost_str)
75
+ enhanced_image = enhanced_image.resize((generate_size, generate_size))
76
 
77
  return enhanced_image, res_image, time_cost_str
78