Spaces:
Running
on
Zero
Running
on
Zero
Update feifeilib/feifeimodload.py
Browse files
feifeilib/feifeimodload.py
CHANGED
@@ -24,10 +24,10 @@ def feifeimodload():
|
|
24 |
adapter_name="feifei",
|
25 |
)
|
26 |
|
27 |
-
pipe.load_lora_weights(
|
28 |
-
|
29 |
-
|
30 |
-
)
|
31 |
|
32 |
#pipe.load_lora_weights(
|
33 |
# hf_hub_download(
|
@@ -53,8 +53,8 @@ def feifeimodload():
|
|
53 |
#)
|
54 |
|
55 |
pipe.set_adapters(
|
56 |
-
["feifei"
|
57 |
-
adapter_weights=[
|
58 |
)
|
59 |
|
60 |
pipe.fuse_lora(
|
@@ -62,7 +62,7 @@ def feifeimodload():
|
|
62 |
lora_scale=1.0,
|
63 |
)
|
64 |
|
65 |
-
pipe.vae.enable_tiling()
|
66 |
pipe.unload_lora_weights()
|
67 |
torch.cuda.empty_cache()
|
68 |
return pipe
|
|
|
24 |
adapter_name="feifei",
|
25 |
)
|
26 |
|
27 |
+
#pipe.load_lora_weights(
|
28 |
+
# hf_hub_download("adirik/flux-cinestill", "lora.safetensors"),
|
29 |
+
# adapter_name="fluxcinestill",
|
30 |
+
#)
|
31 |
|
32 |
#pipe.load_lora_weights(
|
33 |
# hf_hub_download(
|
|
|
53 |
#)
|
54 |
|
55 |
pipe.set_adapters(
|
56 |
+
["feifei"],
|
57 |
+
adapter_weights=[0.9],
|
58 |
)
|
59 |
|
60 |
pipe.fuse_lora(
|
|
|
62 |
lora_scale=1.0,
|
63 |
)
|
64 |
|
65 |
+
#pipe.vae.enable_tiling()
|
66 |
pipe.unload_lora_weights()
|
67 |
torch.cuda.empty_cache()
|
68 |
return pipe
|