Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def inpaint_with_mask(image: Image.Image, mask: Image.Image, prompt: str = "back
|
|
| 12 |
"diffusers/stable-diffusion-xl-1.0-inpainting-0.1",
|
| 13 |
torch_dtype=torch.float16,
|
| 14 |
variant="fp16"
|
| 15 |
-
).to("
|
| 16 |
|
| 17 |
# 🖌️ Inpaint
|
| 18 |
result = pipe(prompt=prompt, image=image, mask_image=mask).images[0]
|
|
@@ -27,7 +27,7 @@ def inpaint_with_mask(image: Image.Image, mask: Image.Image, prompt: str = "back
|
|
| 27 |
"stabilityai/stable-diffusion-xl-refiner-1.0",
|
| 28 |
torch_dtype=torch.float16,
|
| 29 |
variant="fp16"
|
| 30 |
-
).to("
|
| 31 |
|
| 32 |
result = refiner(prompt=prompt, image=result).images[0]
|
| 33 |
|
|
|
|
| 12 |
"diffusers/stable-diffusion-xl-1.0-inpainting-0.1",
|
| 13 |
torch_dtype=torch.float16,
|
| 14 |
variant="fp16"
|
| 15 |
+
).to("cpu")
|
| 16 |
|
| 17 |
# 🖌️ Inpaint
|
| 18 |
result = pipe(prompt=prompt, image=image, mask_image=mask).images[0]
|
|
|
|
| 27 |
"stabilityai/stable-diffusion-xl-refiner-1.0",
|
| 28 |
torch_dtype=torch.float16,
|
| 29 |
variant="fp16"
|
| 30 |
+
).to("cpu")
|
| 31 |
|
| 32 |
result = refiner(prompt=prompt, image=result).images[0]
|
| 33 |
|