dgoot commited on
Commit
fdbf283
1 Parent(s): 36e7224

Use base model for SDXL

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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-refiner-1.0",
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",