Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -29,16 +29,14 @@ class PatchedModelManager(BaseModelManager):
|
|
29 |
def __init__(self, *args, **kwargs):
|
30 |
super().__init__(*args, **kwargs)
|
31 |
|
32 |
-
#
|
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,
|