Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -85,13 +85,6 @@ pipe.load_lora_weights(
|
|
| 85 |
load_into_transformer_2=True
|
| 86 |
)
|
| 87 |
|
| 88 |
-
pipe.load_lora_weights(
|
| 89 |
-
"profpeng/wanhardcut",
|
| 90 |
-
weight_name="hard_cut_200_wan_i2v_high.safetensors",
|
| 91 |
-
adapter_name="high_noise_loraHC",
|
| 92 |
-
token=os.environ.get("HF_TOKEN")
|
| 93 |
-
)
|
| 94 |
-
|
| 95 |
|
| 96 |
pipe.load_lora_weights(
|
| 97 |
"profpeng/wanlegupcutscenesex",
|
|
@@ -110,11 +103,10 @@ pipe.load_lora_weights(
|
|
| 110 |
|
| 111 |
|
| 112 |
pipe.set_adapters(["lightx2v", "lightx2v_2",
|
| 113 |
-
"high_noise_loraHC",
|
| 114 |
"high_noise_lora", "low_noise_lora",
|
| 115 |
-
"high_noise_lora1", "low_noise_lora1"], adapter_weights=[1.5, 1., 1., 1., 1., 1
|
| 116 |
# 修改了lora_scale
|
| 117 |
-
pipe.fuse_lora(adapter_names=["lightx2v", "high_noise_lora", "
|
| 118 |
# 修改了lora_scale
|
| 119 |
pipe.fuse_lora(adapter_names=["lightx2v_2", "low_noise_lora", "low_noise_lora1"], lora_scales=[1.0, 1.0, 1.0], components=["transformer_2"])
|
| 120 |
|
|
|
|
| 85 |
load_into_transformer_2=True
|
| 86 |
)
|
| 87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
|
| 89 |
pipe.load_lora_weights(
|
| 90 |
"profpeng/wanlegupcutscenesex",
|
|
|
|
| 103 |
|
| 104 |
|
| 105 |
pipe.set_adapters(["lightx2v", "lightx2v_2",
|
|
|
|
| 106 |
"high_noise_lora", "low_noise_lora",
|
| 107 |
+
"high_noise_lora1", "low_noise_lora1"], adapter_weights=[1.5, 1., 1., 1., 1., 1.])
|
| 108 |
# 修改了lora_scale
|
| 109 |
+
pipe.fuse_lora(adapter_names=["lightx2v", "high_noise_lora", "high_noise_lora1"], lora_scales=[3.0, 3.0, 3.0], components=["transformer"])
|
| 110 |
# 修改了lora_scale
|
| 111 |
pipe.fuse_lora(adapter_names=["lightx2v_2", "low_noise_lora", "low_noise_lora1"], lora_scales=[1.0, 1.0, 1.0], components=["transformer_2"])
|
| 112 |
|