r3gm commited on
Commit
bec0f7b
·
verified ·
1 Parent(s): 1e80d22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -60,15 +60,20 @@ 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
  # 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
 
 
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.set_adapters(["lightx2v", "lightx2v_2", "livewallpaper"], adapter_weights=[1., 1., 2.])
65
+ pipe.fuse_lora(adapter_names=["lightx2v"], lora_scale=3., components=["transformer"])
66
+ pipe.fuse_lora(adapter_names=["lightx2v_2"], lora_scale=1., components=["transformer_2"])
67
+ pipe.fuse_lora(adapter_names=["livewallpaper"], lora_scale=2., components=["transformer"])
68
+ pipe.unload_lora_weights()
69
+
70
  # livewallpaper
71
  pipe.load_lora_weights(
72
  "voxvici/flux-lora",
73
  weight_name="livewallpaper_wan22_14b_i2v_low_model_0_1_e26.safetensors",
74
  adapter_name="livewallpaper"
75
  )
76
+ pipe.set_adapters(["livewallpaper"], adapter_weights=[2.])
 
 
77
  pipe.fuse_lora(adapter_names=["livewallpaper"], lora_scale=2., components=["transformer"])
78
  pipe.unload_lora_weights()
79