Spaces:
Running
Running
Use diffusers/stable-diffusion-xl-1.0-inpainting-0.1
Browse files
app.py
CHANGED
@@ -5,13 +5,13 @@ import time
|
|
5 |
import math
|
6 |
import random
|
7 |
import imageio
|
8 |
-
from PIL import
|
9 |
import torch
|
10 |
|
11 |
max_64_bit_int = 2**63 - 1
|
12 |
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
-
pipe = StableDiffusionXLInpaintPipeline.from_pretrained("
|
15 |
pipe = pipe.to(device)
|
16 |
|
17 |
def noise_color(color, noise):
|
@@ -235,6 +235,7 @@ with gr.Blocks() as interface:
|
|
235 |
<li>To <b>upscale</b> your image, I recommend to use <i>Ilaria Upscaler</i>,</li>
|
236 |
<li>To <b>slightly change</b> your image, I recommend to use <i>Image-to-Image SDXL</i>,</li>
|
237 |
<li>To change <b>one detail</b> on your image, I recommend to use <i>Inpaint SDXL</i>,</li>
|
|
|
238 |
<li>To make a <b>tile</b> of your image, I recommend to use <i>Make My Image Tile</i>,</li>
|
239 |
<li>To modify <b>anything else</b> on your image, I recommend to use <i>Instruct Pix2Pix</i>.</li>
|
240 |
</ul>
|
|
|
5 |
import math
|
6 |
import random
|
7 |
import imageio
|
8 |
+
from PIL import Image, ImageFilter
|
9 |
import torch
|
10 |
|
11 |
max_64_bit_int = 2**63 - 1
|
12 |
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
+
pipe = StableDiffusionXLInpaintPipeline.from_pretrained("diffusers/stable-diffusion-xl-1.0-inpainting-0.1")
|
15 |
pipe = pipe.to(device)
|
16 |
|
17 |
def noise_color(color, noise):
|
|
|
235 |
<li>To <b>upscale</b> your image, I recommend to use <i>Ilaria Upscaler</i>,</li>
|
236 |
<li>To <b>slightly change</b> your image, I recommend to use <i>Image-to-Image SDXL</i>,</li>
|
237 |
<li>To change <b>one detail</b> on your image, I recommend to use <i>Inpaint SDXL</i>,</li>
|
238 |
+
<li>To remove the <b>background</b> of your image, I recommend to use <i>BRIA</i>,</li>
|
239 |
<li>To make a <b>tile</b> of your image, I recommend to use <i>Make My Image Tile</i>,</li>
|
240 |
<li>To modify <b>anything else</b> on your image, I recommend to use <i>Instruct Pix2Pix</i>.</li>
|
241 |
</ul>
|