aifeifei798 commited on
Commit
1bd88dd
·
verified ·
1 Parent(s): 3295353

Update feifeilib/feifeimodload.py

Browse files
Files changed (1) hide show
  1. feifeilib/feifeimodload.py +6 -6
feifeilib/feifeimodload.py CHANGED
@@ -12,13 +12,13 @@ def feifeimodload():
12
  device = "cuda" if torch.cuda.is_available() else "cpu"
13
 
14
 
15
- #pipe = DiffusionPipeline.from_pretrained(
16
- # "aifeifei798/DarkIdol-flux-v1", torch_dtype=dtype
17
- #).to(device)
18
-
19
  pipe = DiffusionPipeline.from_pretrained(
20
- "black-forest-labs/FLUX.1-schnell", torch_dtype=dtype
21
  ).to(device)
 
 
 
 
22
 
23
  pipe.load_lora_weights(
24
  hf_hub_download("aifeifei798/feifei-flux-lora-v1.1", "feifei-v1.1.safetensors"),
@@ -27,7 +27,7 @@ def feifeimodload():
27
 
28
  pipe.set_adapters(
29
  ["feifei"],
30
- adapter_weights=[0.75],
31
  )
32
 
33
  pipe.fuse_lora(
 
12
  device = "cuda" if torch.cuda.is_available() else "cpu"
13
 
14
 
 
 
 
 
15
  pipe = DiffusionPipeline.from_pretrained(
16
+ "aifeifei798/DarkIdol-flux-v1", torch_dtype=dtype
17
  ).to(device)
18
+
19
+ # pipe = DiffusionPipeline.from_pretrained(
20
+ # "black-forest-labs/FLUX.1-schnell", torch_dtype=dtype
21
+ # ).to(device)
22
 
23
  pipe.load_lora_weights(
24
  hf_hub_download("aifeifei798/feifei-flux-lora-v1.1", "feifei-v1.1.safetensors"),
 
27
 
28
  pipe.set_adapters(
29
  ["feifei"],
30
+ adapter_weights=[0.85],
31
  )
32
 
33
  pipe.fuse_lora(