Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -282,11 +282,11 @@ def generate_video(uploaded_img, uploaded_audio, infer_type,
|
|
| 282 |
return None, gr.Markdown("Error: Input image or audio file is empty. Please check and upload both files.")
|
| 283 |
|
| 284 |
model_mapping = {
|
| 285 |
-
"mfcc_pose_only": "
|
| 286 |
-
"mfcc_full_control": "
|
| 287 |
-
"hubert_audio_only": "
|
| 288 |
-
"hubert_pose_only": "
|
| 289 |
-
"hubert_full_control": "
|
| 290 |
}
|
| 291 |
|
| 292 |
# if face_crop:
|
|
@@ -305,7 +305,7 @@ def generate_video(uploaded_img, uploaded_audio, infer_type,
|
|
| 305 |
test_audio_path=uploaded_audio,
|
| 306 |
test_hubert_path='',
|
| 307 |
result_path='./outputs/',
|
| 308 |
-
stage1_checkpoint_path='
|
| 309 |
stage2_checkpoint_path=stage2_checkpoint_path,
|
| 310 |
seed=seed,
|
| 311 |
control_flag=True,
|
|
|
|
| 282 |
return None, gr.Markdown("Error: Input image or audio file is empty. Please check and upload both files.")
|
| 283 |
|
| 284 |
model_mapping = {
|
| 285 |
+
"mfcc_pose_only": "ckpt/stage2_pose_only_mfcc.ckpt",
|
| 286 |
+
"mfcc_full_control": "ckpt/stage2_more_controllable_mfcc.ckpt",
|
| 287 |
+
"hubert_audio_only": "ckpt/stage2_audio_only_hubert.ckpt",
|
| 288 |
+
"hubert_pose_only": "ckpt/stage2_pose_only_hubert.ckpt",
|
| 289 |
+
"hubert_full_control": "ckpt/stage2_full_control_hubert.ckpt",
|
| 290 |
}
|
| 291 |
|
| 292 |
# if face_crop:
|
|
|
|
| 305 |
test_audio_path=uploaded_audio,
|
| 306 |
test_hubert_path='',
|
| 307 |
result_path='./outputs/',
|
| 308 |
+
stage1_checkpoint_path='ckpt/stage1.ckpt',
|
| 309 |
stage2_checkpoint_path=stage2_checkpoint_path,
|
| 310 |
seed=seed,
|
| 311 |
control_flag=True,
|