ciover2024 commited on
Commit
3d5ae60
·
verified ·
1 Parent(s): 6e3ed57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -117,7 +117,7 @@ def inpaint_image(input_image, mask_image):
117
  initial_input_image = input_image.resize(IMAGE_SIZE)
118
  initial_mask_image = mask_image.resize(IMAGE_SIZE)
119
  blurred_mask_image = inpaint_pipeline.mask_processor.blur(initial_mask_image,blur_factor=50)
120
- result = inpaint_pipeline(prompt=prompt, negative_prompt=negative_prompt, height=IMAGE_SIZE[0], width=IMAGE_SIZE[0], image=initial_input_image, mask_image=blurred_mask_image)
121
  inpainted_image = result.images[0]
122
  #inpainted_image = resize_to_match(input_image, inpainted_image)
123
  return inpainted_image
 
117
  initial_input_image = input_image.resize(IMAGE_SIZE)
118
  initial_mask_image = mask_image.resize(IMAGE_SIZE)
119
  blurred_mask_image = inpaint_pipeline.mask_processor.blur(initial_mask_image,blur_factor=50)
120
+ result = inpaint_pipeline(prompt=prompt, negative_prompt=negative_prompt, height=IMAGE_SIZE[0], width=IMAGE_SIZE[0], image=initial_input_image, mask_image=blurred_mask_image, padding_mask_crop=32)
121
  inpainted_image = result.images[0]
122
  #inpainted_image = resize_to_match(input_image, inpainted_image)
123
  return inpainted_image