ar0551 commited on
Commit
88447c1
·
verified ·
1 Parent(s): 4166057

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -34,8 +34,10 @@ pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
34
  scheduler=eulera_scheduler,
35
  )
36
 
37
- # Load IKEA lora
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)