rahul7star commited on
Commit
3f7b9a5
·
verified ·
1 Parent(s): 49decff

Update wan2_fast.py

Browse files
Files changed (1) hide show
  1. wan2_fast.py +11 -12
wan2_fast.py CHANGED
@@ -19,17 +19,9 @@ MODEL_ID = "FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers"
19
  #MODEL_ID ="FastWan/FastWan_T2V_14B_480p_lora_rank_128_bf16.safetensors"
20
 
21
 
22
- LORA_REPO_ID = "Kijai/WanVideo_comfy"
23
- LORA_FILENAME = "Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank256_bf16.safetensors"
24
- #LORA_FILENAME = "Pusa/Wan21_PusaV1_LoRA_14B_rank512_bf16.safetensors"
25
-
26
 
27
 
28
 
29
- # LORA_REPO_ID = "RaphaelLiu/PusaV1"
30
- # LORA_FILENAME="pusa_v1.safetensors"
31
- #LORA_REPO_ID = "Kijai/WanVideo_comfy"
32
- #LORA_FILENAME = "Wan21_CausVid_14B_T2V_lora_rank32.safetensors"
33
 
34
 
35
 
@@ -45,10 +37,17 @@ pipe = WanPipeline.from_pretrained(
45
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=8.0)
46
  pipe.to("cuda")
47
 
48
- # causvid_path = hf_hub_download(repo_id=LORA_REPO_ID, filename=LORA_FILENAME)
49
- # pipe.load_lora_weights(causvid_path, adapter_name="causvid_lora")
50
- # pipe.set_adapters(["causvid_lora"], adapter_weights=[0.95])
51
- # pipe.fuse_lora()
 
 
 
 
 
 
 
52
 
53
  # MOD_VALUE = 32
54
  # DEFAULT_H_SLIDER_VALUE = 512
 
19
  #MODEL_ID ="FastWan/FastWan_T2V_14B_480p_lora_rank_128_bf16.safetensors"
20
 
21
 
 
 
 
 
22
 
23
 
24
 
 
 
 
 
25
 
26
 
27
 
 
37
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=8.0)
38
  pipe.to("cuda")
39
 
40
+
41
+
42
+
43
+
44
+
45
+ LORA_REPO_ID = "Kijai/WanVideo_comfy"
46
+ LORA_FILENAME = "Wan22-Lightning/Wan2.2-Lightning_T2V-A14B-4steps-lora_LOW_fp16.safetensors"
47
+ causvid_path = hf_hub_download(repo_id=LORA_REPO_ID, filename=LORA_FILENAME)
48
+ pipe.load_lora_weights(causvid_path, adapter_name="causvid_lora")
49
+ pipe.set_adapters(["causvid_lora"], adapter_weights=[0.95])
50
+ pipe.fuse_lora()
51
 
52
  # MOD_VALUE = 32
53
  # DEFAULT_H_SLIDER_VALUE = 512