EGRGIO commited on
Commit
2da2933
·
verified ·
1 Parent(s): aeb1f97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +41 -44
app.py CHANGED
@@ -74,14 +74,14 @@ pipe.load_lora_weights(
74
  # 新增:加载你提供的high noise LoRA
75
 
76
  pipe.load_lora_weights(
77
- "rahul7star/wan2.2Lora",
78
  weight_name="DR34ML4Y_I2V_14B_HIGH.safetensors",
79
  adapter_name="high_noise_lora",
80
  token=os.environ.get("HF_TOKEN")
81
  )
82
  # 新增:加载你提供的low noise LoRA
83
  pipe.load_lora_weights(
84
- "rahul7star/wan2.2Lora",
85
  weight_name="DR34ML4Y_I2V_14B_LOW.safetensors",
86
  adapter_name="low_noise_lora",
87
  token=os.environ.get("HF_TOKEN"),
@@ -89,65 +89,62 @@ pipe.load_lora_weights(
89
  )
90
 
91
 
92
- ## 2 attempt
93
  pipe.load_lora_weights(
94
- "GiorgioV/LoRA_for_WAN_22",
95
- weight_name="wan2.2-i2v-high-smashcut-v1.0.safetensors",
96
  adapter_name="high_noise_lora1",
97
  token=os.environ.get("HF_TOKEN")
98
  )
99
  # 新增:加载你提供的low noise LoRA
100
  pipe.load_lora_weights(
101
- "GiorgioV/LoRA_for_WAN_22",
102
- weight_name="wan2.2-i2v-low-smashcut-v1.0.safetensors",
103
  adapter_name="low_noise_lora1",
104
  token=os.environ.get("HF_TOKEN"),
105
  load_into_transformer_2=True
106
  )
107
 
108
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
 
110
- # pipe.set_adapters(["lightx2v", "lightx2v_2", "high_noise_lora", "low_noise_lora","high_noise_lora1", "low_noise_lora1","high_noise_lora2", "low_noise_lora2"], adapter_weights=[1., 1., 1., 1.,1.,1.,1.,1.])
111
- # # 修改了lora_scale
112
- # pipe.fuse_lora(adapter_names=["lightx2v", "high_noise_lora","high_noise_lora1","high_noise_lora2"], lora_scales=[3.0, 3.0,3.0,1.0], components=["transformer"])
113
- # # 修改了lora_scale
114
- # 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"])
115
-
116
-
117
- ###### use this for 3rd Lora
118
-
119
- # # ## 3rd
120
- # pipe.load_lora_weights(
121
- # "rahul7star/wan2.2Lora",
122
- # weight_name="Wan2.2-Doggy_high_noise.safetensors",
123
- # adapter_name="high_noise_lora2",
124
- # token=os.environ.get("HF_TOKEN")
125
- # )
126
- # # 新增:加载你提供的low noise LoRA
127
- # pipe.load_lora_weights(
128
- # "rahul7star/wan2.2Lora",
129
- # weight_name="Wan2.2-Doggy_low_noise.safetensors",
130
- # adapter_name="low_noise_lora2",
131
- # token=os.environ.get("HF_TOKEN"),
132
- # load_into_transformer_2=True
133
- # )
134
-
135
-
136
- # pipe.set_adapters(["lightx2v", "lightx2v_2", "high_noise_lora", "low_noise_lora","high_noise_lora1", "low_noise_lora1","high_noise_lora2", "low_noise_lora2"], adapter_weights=[1., 1., 1., 1.,1.,1.,1.,1.])
137
- # # 修改了lora_scale
138
- # 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"])
139
- # # 修改了lora_scale
140
- # 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"])
141
-
142
- # #### 3rd lora ends @######
143
-
144
 
145
 
146
- pipe.set_adapters(["lightx2v", "lightx2v_2", "high_noise_lora", "low_noise_lora","high_noise_lora1", "low_noise_lora1"], adapter_weights=[1.5, 1., 1., 1., 1., 1.])
 
 
 
 
147
  # 修改了lora_scale
148
- pipe.fuse_lora(adapter_names=["lightx2v", "high_noise_lora","high_noise_lora1"], lora_scales=[3.0, 3.0, 3.0], components=["transformer"])
149
  # 修改了lora_scale
150
- pipe.fuse_lora(adapter_names=["lightx2v_2", "low_noise_lora","low_noise_lora1"], lora_scales=[1.0, 1.0, 1.0], components=["transformer_2"])
151
 
152
 
153
 
 
74
  # 新增:加载你提供的high noise LoRA
75
 
76
  pipe.load_lora_weights(
77
+ "GiorgioV/LoRA_for_WAN_22",
78
  weight_name="DR34ML4Y_I2V_14B_HIGH.safetensors",
79
  adapter_name="high_noise_lora",
80
  token=os.environ.get("HF_TOKEN")
81
  )
82
  # 新增:加载你提供的low noise LoRA
83
  pipe.load_lora_weights(
84
+ "GiorgioV/LoRA_for_WAN_22",
85
  weight_name="DR34ML4Y_I2V_14B_LOW.safetensors",
86
  adapter_name="low_noise_lora",
87
  token=os.environ.get("HF_TOKEN"),
 
89
  )
90
 
91
 
 
92
  pipe.load_lora_weights(
93
+ "profpeng/wansquirt",
94
+ weight_name="wan22-squirt-i2v-118epoc-high-k3nk.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/wansquirt",
101
+ weight_name="wan22-squirt-i2v-160epoc-low-k3nk.safetensors",
102
  adapter_name="low_noise_lora1",
103
  token=os.environ.get("HF_TOKEN"),
104
  load_into_transformer_2=True
105
  )
106
 
107
 
108
+ pipe.load_lora_weights(
109
+ "profpeng/pussyasshelper",
110
+ weight_name="wan2.2_i2v_high_ulitmate_pussy_asshole.safetensors",
111
+ adapter_name="high_noise_lora3",
112
+ token=os.environ.get("HF_TOKEN")
113
+ )
114
+ # 新增:加载你提供的low noise LoRA
115
+ pipe.load_lora_weights(
116
+ "profpeng/pussyasshelper",
117
+ weight_name="wan2.2_i2v_low_ulitmate_pussy_asshole.safetensors",
118
+ adapter_name="low_noise_lora3",
119
+ token=os.environ.get("HF_TOKEN"),
120
+ load_into_transformer_2=True
121
+ )
122
 
123
+ pipe.load_lora_weights(
124
+ "profpeng/blinkmissionaryv2",
125
+ weight_name="iGoon_Blink_Missionary_I2V_HIGH v2.safetensors",
126
+ adapter_name="high_noise_lora2",
127
+ token=os.environ.get("HF_TOKEN")
128
+ )
129
+ # 新增:加载你提供的low noise LoRA
130
+ pipe.load_lora_weights(
131
+ "profpeng/blinkmissionaryv2",
132
+ weight_name="iGoon - Blink_Missionary_I2V_LOW v2.safetensors",
133
+ adapter_name="low_noise_lora2",
134
+ token=os.environ.get("HF_TOKEN"),
135
+ load_into_transformer_2=True
136
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
 
138
 
139
+ pipe.set_adapters(["lightx2v", "lightx2v_2",
140
+ "high_noise_lora", "low_noise_lora",
141
+ "high_noise_lora1", "low_noise_lora1",
142
+ "high_noise_lora2", "low_noise_lora2",
143
+ "high_noise_lora3", "low_noise_lora3"], adapter_weights=[1.5, 1., 1., 1., 1., 1., 0.2, 0.4, 0.5, 0.5])
144
  # 修改了lora_scale
145
+ pipe.fuse_lora(adapter_names=["lightx2v", "high_noise_lora", "high_noise_lora1", "high_noise_lora2", "high_noise_lora3"], lora_scales=[3.0, 3.0, 3.0, 3.0, 3.0], components=["transformer"])
146
  # 修改了lora_scale
147
+ pipe.fuse_lora(adapter_names=["lightx2v_2", "low_noise_lora", "low_noise_lora1", "low_noise_lora2", "low_noise_lora3"], lora_scales=[1.0, 1.0, 1.0, 1.0, 1.0], components=["transformer_2"])
148
 
149
 
150