rahul7star commited on
Commit
5869eb8
·
verified ·
1 Parent(s): 8a8e3b8

Update app_fast.py

Browse files
Files changed (1) hide show
  1. app_fast.py +14 -0
app_fast.py CHANGED
@@ -20,6 +20,20 @@ for pipe in [text_to_video_pipe, image_to_video_pipe]:
20
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=8.0)
21
  pipe.to("cuda")
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  # Constants
24
  MOD_VALUE = 32
25
  DEFAULT_H_SLIDER_VALUE = 896
 
20
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=8.0)
21
  pipe.to("cuda")
22
 
23
+
24
+
25
+
26
+ ##Lora testing
27
+ LORA_REPO_ID = "AlekseyCalvin/HSToric_Color_Wan2.2_5B_LoRA_BySilverAgePoets"
28
+ LORA_FILENAME = "HSToric_color_Wan22_5b_LoRA.safetensors"
29
+ causvid_path = hf_hub_download(repo_id=LORA_REPO_ID, filename=LORA_FILENAME)
30
+ pipe.load_lora_weights(causvid_path, adapter_name="causvid_lora")
31
+ pipe.set_adapters(["causvid_lora"], adapter_weights=[0.95])
32
+ pipe.fuse_lora()
33
+
34
+
35
+
36
+
37
  # Constants
38
  MOD_VALUE = 32
39
  DEFAULT_H_SLIDER_VALUE = 896