Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,8 +34,10 @@ pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
|
|
| 34 |
scheduler=eulera_scheduler,
|
| 35 |
)
|
| 36 |
|
| 37 |
-
# Load
|
| 38 |
-
pipe.load_lora_weights("ostris/ikea-instructions-lora-sdxl")
|
|
|
|
|
|
|
| 39 |
pipe.to(device)
|
| 40 |
|
| 41 |
# 📸 Edge detection function using OpenCV (Canny)
|
|
|
|
| 34 |
scheduler=eulera_scheduler,
|
| 35 |
)
|
| 36 |
|
| 37 |
+
# Load lora (giving it a name makes it active when using the name in the prompt)
|
| 38 |
+
#pipe.load_lora_weights("ostris/ikea-instructions-lora-sdxl", weight_name="ikea_instructions_xl_v1_5.safetensors", adapter_name="ikea")
|
| 39 |
+
pipe.load_lora_weights("nerijs/pixel-art-xl", weight_name="pixel-art-xl.safetensors", adapter_name="pixel")
|
| 40 |
+
pipe.set_adapters("pixel")
|
| 41 |
pipe.to(device)
|
| 42 |
|
| 43 |
# 📸 Edge detection function using OpenCV (Canny)
|