yerfor / GeneFace

GeneFace: Generalized and High-Fidelity 3D Talking Face Synthesis; ICLR 2023; Official code
MIT License
2.51k stars 294 forks source link

Unknow hparams: [] when running on a custom video #254

Open natalya118 opened 9 months ago

natalya118 commented 9 months ago

Hi! I'm getting an error when trying to binarize a custom video. Everything is working ok with May (after changing _2D to TWO_D). Did anyone have the same one?

Error: ... Hubert extracted at data/processed/videos/BabsResized/aud_hubert.npy Mel and F0 extracted at data/processed/videos/BabsResized/aud_mel_f0.npy loading the model from deep_3drecon/checkpoints/facerecon/epoch_20.pth loading video ... extracting 2D facial landmarks ...: 100%|█████| 597/597 [00:49<00:00, 12.03it/s] start extracting 3DMM...: 0%| | 0/18 [00:00<?, ?it/s]create rasterizer on device cuda:0 start extracting 3DMM...: 100%|█████████████████| 18/18 [00:05<00:00, 3.16it/s] 3DMM coeff extracted at data/processed/videos/BabsResized/vid_coeff.npy | Unknow hparams: [] Traceback (most recent call last): File "/home/d/GeneFace/data_gen/nerf/binarizer.py", line 14, in set_hparams() File "/home/d/GeneFace/utils/commons/hparams.py", line 46, in set_hparams assert os.path.exists(args.config) AssertionError

kikiloveswift commented 8 months ago

Change your video name to May.mp4 or read the code structure at egs/datasets/videos

kikiloveswift commented 8 months ago

Make sure your video is 25 FPS and refs=1.