OriLib commited on
Commit
96be33e
1 Parent(s): 4497b61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -39,9 +39,7 @@ def generate_(prompt, negative_prompt, control_tensor, num_steps, controlnet_con
39
  @spaces.GPU
40
  def process(input_image, prompt, negative_prompt, num_steps, controlnet_conditioning_scale, seed):
41
 
42
- # resize input_image to 1024x1024
43
- input_image = resize_image(input_image)
44
- image = resize_image(image)
45
  mask = remove_bg_from_image(image_path)
46
  control_tensor = get_control_image_tensor(pipe.vae, image, mask)
47
 
 
39
  @spaces.GPU
40
  def process(input_image, prompt, negative_prompt, num_steps, controlnet_conditioning_scale, seed):
41
 
42
+ image = resize_image(input_image)
 
 
43
  mask = remove_bg_from_image(image_path)
44
  control_tensor = get_control_image_tensor(pipe.vae, image, mask)
45