Spaces:
Running
on
Zero
Running
on
Zero
Update feifeilib/feifeimodload.py
Browse files
feifeilib/feifeimodload.py
CHANGED
@@ -27,10 +27,10 @@ def feifeimodload():
|
|
27 |
# "shuttleai/shuttle-3.1-aesthetic", torch_dtype=dtype
|
28 |
#).to(device)
|
29 |
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
|
35 |
#pipe.load_lora_weights(
|
36 |
# hf_hub_download("aifeifei798/flux-nsfw-lora", "Sakimi_chan_-_FLUX.safetensors"),
|
@@ -66,10 +66,10 @@ def feifeimodload():
|
|
66 |
# lora_scale=1.0,
|
67 |
#)
|
68 |
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
|
74 |
#pipe.fuse_lora(
|
75 |
# adapter_name=["feifei"],
|
|
|
27 |
# "shuttleai/shuttle-3.1-aesthetic", torch_dtype=dtype
|
28 |
#).to(device)
|
29 |
|
30 |
+
pipe.load_lora_weights(
|
31 |
+
hf_hub_download("aifeifei798/feifei-flux-lora-v1.1", "feifei-v1.1.safetensors"),
|
32 |
+
adapter_name="feifei",
|
33 |
+
)
|
34 |
|
35 |
#pipe.load_lora_weights(
|
36 |
# hf_hub_download("aifeifei798/flux-nsfw-lora", "Sakimi_chan_-_FLUX.safetensors"),
|
|
|
66 |
# lora_scale=1.0,
|
67 |
#)
|
68 |
|
69 |
+
pipe.set_adapters(
|
70 |
+
["feifei"],
|
71 |
+
adapter_weights=[0.65],
|
72 |
+
)
|
73 |
|
74 |
#pipe.fuse_lora(
|
75 |
# adapter_name=["feifei"],
|