sdafd commited on
Commit
d19cf40
·
verified ·
1 Parent(s): b86e0cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -18,8 +18,7 @@ pipe = StableDiffusionInpaintPipeline.from_pretrained(
18
  pipe.to('cpu')
19
 
20
  def inpaint_image(image, mask, prompt, negative_prompt):
21
- # Convert PIL images to numpy arrays if needed
22
- # Process your images as required by your inpainting model
23
  n_image = pipe(prompt, image=image, mask_image=mask, guidance_scale=5,height=int(8*round(image.height/8)), width=int(8*round(image.width/8)), num_inference_steps=70,negative_prompt=negative_prompt).images[0]
24
  return n_image
25
 
 
18
  pipe.to('cpu')
19
 
20
  def inpaint_image(image, mask, prompt, negative_prompt):
21
+ print(image_file, mask_file, prompt, negative_prompt)
 
22
  n_image = pipe(prompt, image=image, mask_image=mask, guidance_scale=5,height=int(8*round(image.height/8)), width=int(8*round(image.width/8)), num_inference_steps=70,negative_prompt=negative_prompt).images[0]
23
  return n_image
24