rahul7star commited on
Commit
cd9f0d2
·
verified ·
1 Parent(s): dd68063

Update app_fast_CPU.py

Browse files
Files changed (1) hide show
  1. app_fast_CPU.py +11 -0
app_fast_CPU.py CHANGED
@@ -72,6 +72,17 @@ for pipe in [text_to_video_pipe, image_to_video_pipe]:
72
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=8.0)
73
  pipe.to("cuda")
74
 
 
 
 
 
 
 
 
 
 
 
 
75
  # --- Constants ---
76
  MOD_VALUE = 32
77
  DEFAULT_H_SLIDER_VALUE = 896
 
72
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=8.0)
73
  pipe.to("cuda")
74
 
75
+
76
+
77
+ LORA_REPO_ID = "UnifiedHorusRA/Missionary_POV_Wan_2.2_5B_LoRA"
78
+ LORA_FILENAME = "missionary-pov-wan2.2_5b-v1.0-vfxai.safetensors"
79
+ causvid_path = hf_hub_download(repo_id=LORA_REPO_ID, filename=LORA_FILENAME)
80
+ pipe.load_lora_weights(causvid_path, adapter_name="causvid_lora")
81
+ pipe.set_adapters(["causvid_lora"], adapter_weights=[0.95])
82
+ pipe.fuse_lora()
83
+
84
+
85
+
86
  # --- Constants ---
87
  MOD_VALUE = 32
88
  DEFAULT_H_SLIDER_VALUE = 896