Spaces:
Running
on
Zero
Running
on
Zero
tori29umai
commited on
Commit
•
40bfaac
1
Parent(s):
c7df0ab
app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def load_model(lora_dir, cn_dir):
|
|
33 |
pipe = StableDiffusionXLControlNetImg2ImgPipeline.from_pretrained(
|
34 |
"cagliostrolab/animagine-xl-3.1", controlnet=controlnet, vae=vae, torch_dtype=torch.float16
|
35 |
)
|
36 |
-
|
37 |
pipe = pipe.to(device)
|
38 |
return pipe
|
39 |
|
|
|
33 |
pipe = StableDiffusionXLControlNetImg2ImgPipeline.from_pretrained(
|
34 |
"cagliostrolab/animagine-xl-3.1", controlnet=controlnet, vae=vae, torch_dtype=torch.float16
|
35 |
)
|
36 |
+
pipe.load_lora_weights(lora_dir, weight_name="sdxl_BWLine.safetensors")
|
37 |
pipe = pipe.to(device)
|
38 |
return pipe
|
39 |
|