Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -102,44 +102,44 @@ pipe.load_lora_weights(
|
|
| 102 |
# load_into_transformer_2=True
|
| 103 |
# )
|
| 104 |
|
| 105 |
-
# pipe.load_lora_weights(
|
| 106 |
-
# "GiorgioV/LoRA_for_WAN_22",
|
| 107 |
-
# weight_name="Pornmaster_wan 2.2_14b_I2V_69_position_blowjob_v1_high_noise.safetensors",
|
| 108 |
-
# adapter_name="high_noise_lora2",
|
| 109 |
-
# token=os.environ.get("HF_TOKEN"),
|
| 110 |
-
# )
|
| 111 |
-
|
| 112 |
-
# pipe.load_lora_weights(
|
| 113 |
-
# "GiorgioV/LoRA_for_WAN_22",
|
| 114 |
-
# weight_name="Pornmaster_wan 2.2_14b_I2V_69_position_blowjob_v1_low_noise.safetensors",
|
| 115 |
-
# adapter_name="low_noise_lora2",
|
| 116 |
-
# token=os.environ.get("HF_TOKEN"),
|
| 117 |
-
# load_into_transformer_2=True
|
| 118 |
-
# )
|
| 119 |
-
|
| 120 |
pipe.load_lora_weights(
|
| 121 |
-
"
|
| 122 |
-
weight_name="
|
| 123 |
-
adapter_name="
|
| 124 |
-
token=os.environ.get("HF_TOKEN")
|
| 125 |
)
|
| 126 |
-
|
| 127 |
pipe.load_lora_weights(
|
| 128 |
-
"
|
| 129 |
-
weight_name="
|
| 130 |
-
adapter_name="
|
| 131 |
token=os.environ.get("HF_TOKEN"),
|
| 132 |
load_into_transformer_2=True
|
| 133 |
)
|
| 134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
-
pipe.set_adapters(["lightx2v", "lightx2v_2", "high_noise_lora", "low_noise_lora", "
|
| 139 |
# 修改了lora_scale
|
| 140 |
-
pipe.fuse_lora(adapter_names=["lightx2v", "high_noise_lora", "
|
| 141 |
# 修改了lora_scale
|
| 142 |
-
pipe.fuse_lora(adapter_names=["lightx2v_2", "low_noise_lora", "
|
| 143 |
|
| 144 |
|
| 145 |
|
|
|
|
| 102 |
# load_into_transformer_2=True
|
| 103 |
# )
|
| 104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
pipe.load_lora_weights(
|
| 106 |
+
"GiorgioV/LoRA_for_WAN_22",
|
| 107 |
+
weight_name="Pornmaster_wan 2.2_14b_I2V_69_position_blowjob_v1_high_noise.safetensors",
|
| 108 |
+
adapter_name="high_noise_lora2",
|
| 109 |
+
token=os.environ.get("HF_TOKEN"),
|
| 110 |
)
|
| 111 |
+
|
| 112 |
pipe.load_lora_weights(
|
| 113 |
+
"GiorgioV/LoRA_for_WAN_22",
|
| 114 |
+
weight_name="Pornmaster_wan 2.2_14b_I2V_69_position_blowjob_v1_low_noise.safetensors",
|
| 115 |
+
adapter_name="low_noise_lora2",
|
| 116 |
token=os.environ.get("HF_TOKEN"),
|
| 117 |
load_into_transformer_2=True
|
| 118 |
)
|
| 119 |
|
| 120 |
+
# pipe.load_lora_weights(
|
| 121 |
+
# "profpeng/bbcride",
|
| 122 |
+
# weight_name="bbcRide_wan22_I2V_high_e30.safetensors",
|
| 123 |
+
# adapter_name="high_noise_lora1",
|
| 124 |
+
# token=os.environ.get("HF_TOKEN")
|
| 125 |
+
# )
|
| 126 |
+
# # 新增:加载你提供的low noise LoRA
|
| 127 |
+
# pipe.load_lora_weights(
|
| 128 |
+
# "profpeng/bbcride",
|
| 129 |
+
# weight_name="bbcRide_wan22_I2V_low_e30.safetensors",
|
| 130 |
+
# adapter_name="low_noise_lora1",
|
| 131 |
+
# token=os.environ.get("HF_TOKEN"),
|
| 132 |
+
# load_into_transformer_2=True
|
| 133 |
+
# )
|
| 134 |
+
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
+
pipe.set_adapters(["lightx2v", "lightx2v_2", "high_noise_lora", "low_noise_lora", "high_noise_lora2", "low_noise_lora2"], adapter_weights=[1.5, 1., 1., 1., 1., 1.])
|
| 139 |
# 修改了lora_scale
|
| 140 |
+
pipe.fuse_lora(adapter_names=["lightx2v", "high_noise_lora", "high_noise_lora2"], lora_scales=[3.0, 3.0, 3.0], components=["transformer"])
|
| 141 |
# 修改了lora_scale
|
| 142 |
+
pipe.fuse_lora(adapter_names=["lightx2v_2", "low_noise_lora", "low_noise_lora2"], lora_scales=[1.0, 1.0, 1.0], components=["transformer_2"])
|
| 143 |
|
| 144 |
|
| 145 |
|