Spaces:
Running
on
Zero
Running
on
Zero
Use base model for SDXL
Browse files
app.py
CHANGED
@@ -149,8 +149,10 @@ elif model_type == "LORA":
|
|
149 |
variant="fp16",
|
150 |
)
|
151 |
elif base_model == "SDXL 1.0":
|
|
|
|
|
152 |
pipe = AutoPipelineForImage2Image.from_pretrained(
|
153 |
-
"stabilityai/stable-diffusion-xl-
|
154 |
torch_dtype=torch.float16,
|
155 |
use_safetensors=True,
|
156 |
variant="fp16",
|
|
|
149 |
variant="fp16",
|
150 |
)
|
151 |
elif base_model == "SDXL 1.0":
|
152 |
+
# Use AutoPipelineForImage2Image with the base model
|
153 |
+
# since LORA are trained on base
|
154 |
pipe = AutoPipelineForImage2Image.from_pretrained(
|
155 |
+
"stabilityai/stable-diffusion-xl-base-1.0",
|
156 |
torch_dtype=torch.float16,
|
157 |
use_safetensors=True,
|
158 |
variant="fp16",
|