Spaces:
Runtime error
Runtime error
update
Browse files
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 |
-
|
| 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)
|