GiorgioV commited on
Commit
dfea0ca
·
verified ·
1 Parent(s): 80ca828

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -3
app.py CHANGED
@@ -101,14 +101,29 @@ pipe.load_lora_weights(
101
  load_into_transformer_2=True
102
  )
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
 
113
 
114
 
 
101
  load_into_transformer_2=True
102
  )
103
 
104
+ pipe.load_lora_weights(
105
+ "KeyOpening8063587/ZoomRevealI2V",
106
+ weight_name="wan22-zoom-reveal-400epoc-high-k3nk.safetensors",
107
+ adapter_name="high_noise_lora2",
108
+ token=os.environ.get("HF_TOKEN")
109
+ )
110
+ # 新增:加载你提供的low noise LoRA
111
+ pipe.load_lora_weights(
112
+ "KeyOpening8063587/ZoomRevealI2V",
113
+ weight_name="wan22-zoom-reveal-295epoc-low-k3nk.safetensors",
114
+ adapter_name="low_noise_lora2",
115
+ token=os.environ.get("HF_TOKEN"),
116
+ load_into_transformer_2=True
117
+ )
118
 
119
  pipe.set_adapters(["lightx2v", "lightx2v_2",
120
  "high_noise_lora", "low_noise_lora",
121
+ "high_noise_lora1", "low_noise_lora1"
122
+ "high_noise_lora2", "low_noise_lora2"], adapter_weights=[1.5, 1., 1., 1., 1., 1., 1., 1.])
123
  # 修改了lora_scale
124
+ 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"])
125
  # 修改了lora_scale
126
+ 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"])
127
 
128
 
129