rahul7star commited on
Commit
681163e
·
verified ·
1 Parent(s): de49789

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -29,16 +29,14 @@ class PatchedModelManager(BaseModelManager):
29
  def __init__(self, *args, **kwargs):
30
  super().__init__(*args, **kwargs)
31
 
32
- # Your custom architecture dict entries to patch or add
33
  custom_architecture_dict = {
34
  "WanModel": ("diffsynth.models.wan_model", "WanModelPusa", None),
35
- # Add more fixes if needed
36
  }
37
-
38
- # Update or replace the architecture_dict
39
  self.architecture_dict.update(custom_architecture_dict)
40
 
41
 
 
42
  # Constants
43
  WAN_SUBFOLDER = "Wan2.1-T2V-14B"
44
  MODEL_REPO_ID = "RaphaelLiu/PusaV1"
@@ -98,6 +96,8 @@ def generate_video(prompt: str):
98
  # device="cuda"
99
  # )
100
 
 
 
101
  manager = PatchedModelManager(
102
  file_path_list=[WAN_MODEL_PATH],
103
  torch_dtype=torch.float16,
 
29
  def __init__(self, *args, **kwargs):
30
  super().__init__(*args, **kwargs)
31
 
32
+ # Patch architecture dict here
33
  custom_architecture_dict = {
34
  "WanModel": ("diffsynth.models.wan_model", "WanModelPusa", None),
 
35
  }
 
 
36
  self.architecture_dict.update(custom_architecture_dict)
37
 
38
 
39
+
40
  # Constants
41
  WAN_SUBFOLDER = "Wan2.1-T2V-14B"
42
  MODEL_REPO_ID = "RaphaelLiu/PusaV1"
 
96
  # device="cuda"
97
  # )
98
 
99
+
100
+
101
  manager = PatchedModelManager(
102
  file_path_list=[WAN_MODEL_PATH],
103
  torch_dtype=torch.float16,