profaker commited on
Commit
26984b9
·
verified ·
1 Parent(s): ccc12ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ def predict(dict, prompt="", negative_prompt="", guidance_scale=7.5, steps=30, s
74
  clip_skip=1
75
  )
76
  inpainted_image = output.images[0]
77
-
78
  # Combine the original and inpainted images using the mask
79
  combined_image = Image.composite(inpainted_image, init_image, mask_image.split()[3])
80
 
 
74
  clip_skip=1
75
  )
76
  inpainted_image = output.images[0]
77
+ inpainted_image = inpainted_image.resize(init_image.size, resample=Image.LANCZOS)
78
  # Combine the original and inpainted images using the mask
79
  combined_image = Image.composite(inpainted_image, init_image, mask_image.split()[3])
80