yerfor / GeneFace

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

How to solve this error ''raise ValueError('Unknown mat file type, version %s, %s' % ret) ValueError: Unknown mat file type, version 97, 116'' #224

Open Anthony0u opened 8 months ago

Anthony0u commented 8 months ago

(geneface) root@autodl-container-b94c46a1f4-577005f2:~/GeneFace-1.1.0/data_util/face_tracking# python convert_BFM.py Traceback (most recent call last): File "/root/GeneFace-1.1.0/data_util/face_tracking/convert_BFM.py", line 5, in original_BFM = loadmat('/root/GeneFace-1.1.0/data_util/face_tracking/convertBFM.py') File "/root/miniconda3/envs/geneface/lib/python3.9/site-packages/scipy/io/matlab/mio.py", line 225, in loadmat MR, = mat_reader_factory(f, **kwargs) File "/root/miniconda3/envs/geneface/lib/python3.9/site-packages/scipy/io/matlab/mio.py", line 74, in mat_reader_factory mjv, mnv = get_matfile_version(byte_stream) File "/root/miniconda3/envs/geneface/lib/python3.9/site-packages/scipy/io/matlab/miobase.py", line 231, in get_matfile_version raise ValueError('Unknown mat file type, version %s, %s' % ret) ValueError: Unknown mat file type, version 97, 116

Anthony0u commented 8 months ago

I have asked ChatGPT ,and tried the suggestions it offered,but it still doesn't works.

husthzy commented 8 months ago

Please read the docs/prepare_env/install_guide.md, download the BFM2009 model

You can obtain a file named BaselFaceModel.tgz, extract a file named 01_MorphableModel.mat from it and save it into the directory ./deep_3drecon/BFM/