Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,9 +60,16 @@ pipe.load_lora_weights(
|
|
| 60 |
weight_name="Lightx2v/lightx2v_I2V_14B_480p_cfg_step_distill_rank128_bf16.safetensors",
|
| 61 |
adapter_name="lightx2v_2", **kwargs_lora
|
| 62 |
)
|
| 63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
pipe.fuse_lora(adapter_names=["lightx2v"], lora_scale=3., components=["transformer"])
|
| 65 |
pipe.fuse_lora(adapter_names=["lightx2v_2"], lora_scale=1., components=["transformer_2"])
|
|
|
|
| 66 |
pipe.unload_lora_weights()
|
| 67 |
|
| 68 |
quantize_(pipe.text_encoder, Int8WeightOnlyConfig())
|
|
|
|
| 60 |
weight_name="Lightx2v/lightx2v_I2V_14B_480p_cfg_step_distill_rank128_bf16.safetensors",
|
| 61 |
adapter_name="lightx2v_2", **kwargs_lora
|
| 62 |
)
|
| 63 |
+
# livewallpaper
|
| 64 |
+
pipe.load_lora_weights(
|
| 65 |
+
"voxvici/flux-lora",
|
| 66 |
+
weight_name="livewallpaper_wan22_14b_i2v_low_model_0_1_e26.safetensors",
|
| 67 |
+
adapter_name="livewallpaper"
|
| 68 |
+
)
|
| 69 |
+
pipe.set_adapters(["lightx2v", "lightx2v_2", "livewallpaper"], adapter_weights=[1., 1., 2.])
|
| 70 |
pipe.fuse_lora(adapter_names=["lightx2v"], lora_scale=3., components=["transformer"])
|
| 71 |
pipe.fuse_lora(adapter_names=["lightx2v_2"], lora_scale=1., components=["transformer_2"])
|
| 72 |
+
pipe.fuse_lora(adapter_names=["livewallpaper"], lora_scale=2., components=["transformer"])
|
| 73 |
pipe.unload_lora_weights()
|
| 74 |
|
| 75 |
quantize_(pipe.text_encoder, Int8WeightOnlyConfig())
|