GiorgioV commited on
Commit
b3b01d5
·
verified ·
1 Parent(s): 08d6e5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -21
app.py CHANGED
@@ -70,36 +70,28 @@ pipe.load_lora_weights(
70
 
71
  # 新增:加载你提供的high noise LoRA
72
 
73
- # pipe.load_lora_weights(
74
- # "GiorgioV/LoRA_for_WAN_22",
75
- # weight_name="DR34ML4Y_I2V_14B_HIGH.safetensors",
76
- # adapter_name="high_noise_lora",
77
- # token=os.environ.get("HF_TOKEN")
78
- # )
79
- # # 新增:加载你提供的low noise LoRA
80
- # pipe.load_lora_weights(
81
- # "GiorgioV/LoRA_for_WAN_22",
82
- # weight_name="DR34ML4Y_I2V_14B_LOW.safetensors",
83
- # adapter_name="low_noise_lora",
84
- # token=os.environ.get("HF_TOKEN"),
85
- # load_into_transformer_2=True
86
- # )
87
-
88
  pipe.load_lora_weights(
89
- "profpeng/nsfwv2",
90
- weight_name="DR34ML4Y_I2V_14B_HIGH_V2.safetensors",
91
  adapter_name="high_noise_lora",
92
  token=os.environ.get("HF_TOKEN")
93
  )
94
  # 新增:加载你提供的low noise LoRA
95
  pipe.load_lora_weights(
96
- "profpeng/nsfwv2",
97
- weight_name="DR34ML4Y_I2V_14B_LOW_V2.safetensors",
98
  adapter_name="low_noise_lora",
99
  token=os.environ.get("HF_TOKEN"),
100
  load_into_transformer_2=True
101
  )
102
 
 
 
 
 
 
 
 
103
 
104
  pipe.load_lora_weights(
105
  "profpeng/wanlegupcutscenesex",
@@ -118,10 +110,11 @@ pipe.load_lora_weights(
118
 
119
 
120
  pipe.set_adapters(["lightx2v", "lightx2v_2",
 
121
  "high_noise_lora", "low_noise_lora",
122
- "high_noise_lora1", "low_noise_lora1"], adapter_weights=[1.5, 1., 1., 1., 1., 1.])
123
  # 修改了lora_scale
124
- pipe.fuse_lora(adapter_names=["lightx2v", "high_noise_lora", "high_noise_lora1"], lora_scales=[3.0, 3.0, 3.0], components=["transformer"])
125
  # 修改了lora_scale
126
  pipe.fuse_lora(adapter_names=["lightx2v_2", "low_noise_lora", "low_noise_lora1"], lora_scales=[1.0, 1.0, 1.0], components=["transformer_2"])
127
 
 
70
 
71
  # 新增:加载你提供的high noise LoRA
72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  pipe.load_lora_weights(
74
+ "GiorgioV/LoRA_for_WAN_22",
75
+ weight_name="DR34ML4Y_I2V_14B_HIGH.safetensors",
76
  adapter_name="high_noise_lora",
77
  token=os.environ.get("HF_TOKEN")
78
  )
79
  # 新增:加载你提供的low noise LoRA
80
  pipe.load_lora_weights(
81
+ "GiorgioV/LoRA_for_WAN_22",
82
+ weight_name="DR34ML4Y_I2V_14B_LOW.safetensors",
83
  adapter_name="low_noise_lora",
84
  token=os.environ.get("HF_TOKEN"),
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
 
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., 1.])
116
  # 修改了lora_scale
117
+ pipe.fuse_lora(adapter_names=["lightx2v", "high_noise_lora", "high_noise_loraHC", "high_noise_lora1"], lora_scales=[3.0, 3.0, 3.0, 3.0], components=["transformer"])
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