Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,28 +90,45 @@ pipe.load_lora_weights(
|
|
| 90 |
|
| 91 |
|
| 92 |
pipe.load_lora_weights(
|
| 93 |
-
"profpeng/
|
| 94 |
-
weight_name="
|
| 95 |
adapter_name="high_noise_lora1",
|
| 96 |
token=os.environ.get("HF_TOKEN")
|
| 97 |
)
|
| 98 |
# 新增:加载你提供的low noise LoRA
|
| 99 |
pipe.load_lora_weights(
|
| 100 |
-
"profpeng/
|
| 101 |
-
weight_name="
|
| 102 |
adapter_name="low_noise_lora1",
|
| 103 |
token=os.environ.get("HF_TOKEN"),
|
| 104 |
load_into_transformer_2=True
|
| 105 |
)
|
| 106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
|
| 108 |
pipe.set_adapters(["lightx2v", "lightx2v_2",
|
| 109 |
"high_noise_lora", "low_noise_lora",
|
| 110 |
-
"high_noise_lora1", "low_noise_lora1"
|
|
|
|
| 111 |
# 修改了lora_scale
|
| 112 |
-
pipe.fuse_lora(adapter_names=["lightx2v", "high_noise_lora", "high_noise_lora1"], lora_scales=[3.0, 3.0, 3.0], components=["transformer"])
|
| 113 |
# 修改了lora_scale
|
| 114 |
-
pipe.fuse_lora(adapter_names=["lightx2v_2", "low_noise_lora", "low_noise_lora1"], lora_scales=[1.0, 1.0, 1.0], components=["transformer_2"])
|
|
|
|
|
|
|
| 115 |
|
| 116 |
|
| 117 |
########testing all. 4 together
|
|
|
|
| 90 |
|
| 91 |
|
| 92 |
pipe.load_lora_weights(
|
| 93 |
+
"profpeng/wanlegupcutscenesex",
|
| 94 |
+
weight_name="sid3l3g_transition_v2.0_H.safetensors",
|
| 95 |
adapter_name="high_noise_lora1",
|
| 96 |
token=os.environ.get("HF_TOKEN")
|
| 97 |
)
|
| 98 |
# 新增:加载你提供的low noise LoRA
|
| 99 |
pipe.load_lora_weights(
|
| 100 |
+
"profpeng/wanlegupcutscenesex",
|
| 101 |
+
weight_name="sid3l3g_transition_v2.0_L.safetensors",
|
| 102 |
adapter_name="low_noise_lora1",
|
| 103 |
token=os.environ.get("HF_TOKEN"),
|
| 104 |
load_into_transformer_2=True
|
| 105 |
)
|
| 106 |
|
| 107 |
+
pipe.load_lora_weights(
|
| 108 |
+
"KeyOpening8063587/ZoomRevealI2V",
|
| 109 |
+
weight_name="wan22-zoom-reveal-400epoc-high-k3nk.safetensors",
|
| 110 |
+
adapter_name="high_noise_lora2",
|
| 111 |
+
token=os.environ.get("HF_TOKEN")
|
| 112 |
+
)
|
| 113 |
+
# 新增:加载你提供的low noise LoRA
|
| 114 |
+
pipe.load_lora_weights(
|
| 115 |
+
"KeyOpening8063587/ZoomRevealI2V",
|
| 116 |
+
weight_name="wan22-zoom-reveal-295epoc-low-k3nk.safetensors",
|
| 117 |
+
adapter_name="low_noise_lora2",
|
| 118 |
+
token=os.environ.get("HF_TOKEN"),
|
| 119 |
+
load_into_transformer_2=True
|
| 120 |
+
)
|
| 121 |
|
| 122 |
pipe.set_adapters(["lightx2v", "lightx2v_2",
|
| 123 |
"high_noise_lora", "low_noise_lora",
|
| 124 |
+
"high_noise_lora1", "low_noise_lora1",
|
| 125 |
+
"high_noise_lora2", "low_noise_lora2"], adapter_weights=[1.5, 1., 1., 1., 1., 1., 0.6, 0.6])
|
| 126 |
# 修改了lora_scale
|
| 127 |
+
pipe.fuse_lora(adapter_names=["lightx2v", "high_noise_lora", "high_noise_lora1", "high_noise_lora2"], lora_scales=[3.0, 3.0, 3.0, 3.0], components=["transformer"])
|
| 128 |
# 修改了lora_scale
|
| 129 |
+
pipe.fuse_lora(adapter_names=["lightx2v_2", "low_noise_lora", "low_noise_lora1", "low_noise_lora2"], lora_scales=[1.0, 1.0, 1.0, 1.0], components=["transformer_2"])
|
| 130 |
+
|
| 131 |
+
|
| 132 |
|
| 133 |
|
| 134 |
########testing all. 4 together
|