Akjava commited on
Commit
1415b12
·
1 Parent(s): 4fd86e6
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -83,7 +83,7 @@ def process_images(image, image2=None,prompt="a girl",inpaint_model="black-fores
83
  width,height = adjust_to_multiple_of_32(width,height)
84
  print(f"multiple {width}x{height}")
85
  image = image.resize((width, height), Image.LANCZOS)
86
- mask = mask.resize((width, height), Image.NEAREST)
87
 
88
  output = pipe(prompt=prompt, image=image, mask_image=mask_image,generator=generator,strength=strength,width=width,height=height,
89
  guidance_scale=0,num_inference_steps=num_inference_steps,max_sequence_length=256)
 
83
  width,height = adjust_to_multiple_of_32(width,height)
84
  print(f"multiple {width}x{height}")
85
  image = image.resize((width, height), Image.LANCZOS)
86
+ mask_image = mask_image.resize((width, height), Image.NEAREST)
87
 
88
  output = pipe(prompt=prompt, image=image, mask_image=mask_image,generator=generator,strength=strength,width=width,height=height,
89
  guidance_scale=0,num_inference_steps=num_inference_steps,max_sequence_length=256)