Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from diffusers import AutoPipelineForInpainting, AutoencoderKL
|
3 |
|
|
|
|
|
|
|
4 |
def generate(image_editor):
|
5 |
return image_editor
|
6 |
|
|
|
1 |
import gradio as gr
|
2 |
from diffusers import AutoPipelineForInpainting, AutoencoderKL
|
3 |
|
4 |
+
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
|
5 |
+
pipeline = AutoPipelineForInpainting.from_pretrained("diffusers/stable-diffusion-xl-1.0-inpainting-0.1", vae=vae, torch_dtype=torch.float16, variant="fp16", use_safetensors=True).to("cuda")
|
6 |
+
|
7 |
def generate(image_editor):
|
8 |
return image_editor
|
9 |
|