Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,12 +5,12 @@ import gradio as gr
|
|
5 |
import torch
|
6 |
from diffusers import DiffusionPipeline, AutoencoderKL
|
7 |
|
8 |
-
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.
|
9 |
pipe = DiffusionPipeline.from_pretrained(
|
10 |
"stabilityai/stable-diffusion-xl-base-1.0",
|
11 |
vae=vae,
|
12 |
-
torch_dtype=torch.
|
13 |
-
variant="
|
14 |
use_safetensors=True
|
15 |
)
|
16 |
pipe.load_lora_weights("sergon19/green_bg_LoRa10")
|
|
|
5 |
import torch
|
6 |
from diffusers import DiffusionPipeline, AutoencoderKL
|
7 |
|
8 |
+
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float32)
|
9 |
pipe = DiffusionPipeline.from_pretrained(
|
10 |
"stabilityai/stable-diffusion-xl-base-1.0",
|
11 |
vae=vae,
|
12 |
+
torch_dtype=torch.float32,
|
13 |
+
variant="fp32",
|
14 |
use_safetensors=True
|
15 |
)
|
16 |
pipe.load_lora_weights("sergon19/green_bg_LoRa10")
|