Delik commited on
Commit
041d964
·
verified ·
1 Parent(s): b3c9075

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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": "./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,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='./ckpt/stage1.ckpt',
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,