Spaces:
Running
on
Zero
Running
on
Zero
Antoni Bigata
commited on
Commit
·
2fb3e22
1
Parent(s):
fe23184
requirements
Browse files
app.py
CHANGED
@@ -131,16 +131,16 @@ if torch.cuda.is_available():
|
|
131 |
print(f"Warning: Failed to compile wavlm_model: {e}")
|
132 |
|
133 |
landmarks_extractor = LandmarksExtractor()
|
134 |
-
keyframe_model = load_model(
|
135 |
-
|
136 |
-
|
137 |
-
)
|
138 |
-
interpolation_model = load_model(
|
139 |
-
|
140 |
-
|
141 |
-
)
|
142 |
-
keyframe_model.en_and_decode_n_samples_a_time = 2
|
143 |
-
interpolation_model.en_and_decode_n_samples_a_time = 2
|
144 |
|
145 |
# Default media paths
|
146 |
DEFAULT_VIDEO_PATH = os.path.join(
|
|
|
131 |
print(f"Warning: Failed to compile wavlm_model: {e}")
|
132 |
|
133 |
landmarks_extractor = LandmarksExtractor()
|
134 |
+
# keyframe_model = load_model(
|
135 |
+
# config="/vol/paramonos2/projects/antoni/code/Personal/code_prep/keysync/scripts/sampling/configs/keyframe.yaml",
|
136 |
+
# ckpt="/vol/paramonos2/projects/antoni/code/Personal/code_prep/keysync/pretrained_models/checkpoints/keyframe_dub.pt",
|
137 |
+
# )
|
138 |
+
# interpolation_model = load_model(
|
139 |
+
# config="/vol/paramonos2/projects/antoni/code/Personal/code_prep/keysync/scripts/sampling/configs/interpolation.yaml",
|
140 |
+
# ckpt="/vol/paramonos2/projects/antoni/code/Personal/code_prep/keysync/pretrained_models/checkpoints/interpolation_dub.pt",
|
141 |
+
# )
|
142 |
+
# keyframe_model.en_and_decode_n_samples_a_time = 2
|
143 |
+
# interpolation_model.en_and_decode_n_samples_a_time = 2
|
144 |
|
145 |
# Default media paths
|
146 |
DEFAULT_VIDEO_PATH = os.path.join(
|