ascust / 3DMM-Fitting-Pytorch

A 3DMM fitting framework using Pytorch.
594 stars 95 forks source link

mat file on load create problem #9

Closed hasrh885 closed 2 years ago

hasrh885 commented 3 years ago

Traceback (most recent call last): File "C:\Users\user\Downloads\3DMM-Fitting-Pytorch-master\3DMM-Fitting-Pytorch-master\3DMM-Fitting-Pytorch\convert_bfm09_data.py", line 105, in <m transferBFM09() File "C:\Users\user\Downloads\3DMM-Fitting-Pytorch-master\3DMM-Fitting-Pytorch-master\3DMM-Fitting-Pytorch\convert_bfm09_data.py", line 32, in transferBFM09 original_BFM = loadmat('BFM/01MorphableModel.mat')#loadmat File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\scipy\io\matlab\mio.py", line 223, in loadmat MR, = mat_reader_factory(f, kwargs) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\scipy\io\matlab\mio.py", line 72, in mat_reader_factory mjv, mnv = get_matfile_version(byte_stream) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\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 0, 0 PS C:\Users\user\Downloads\3DMM-Fitting-Pytorch-master\3DMM-Fitting-Pytorch-master\3DMM-Fitting-Pytorch> python convert_bfm09_data.py Traceback (most recent call last): File "C:\Users\user\Downloads\3DMM-Fitting-Pytorch-master\3DMM-Fitting-Pytorch-master\3DMM-Fitting-Pytorch\convert_bfm09_data.py", line 105, in transferBFM09() File "C:\Users\user\Downloads\3DMM-Fitting-Pytorch-master\3DMM-Fitting-Pytorch-master\3DMM-Fitting-Pytorch\convert_bfm09_data.py", line 32, in transferBFM09 original_BFM = loadmat('01MorphableModel.mat')#loadmat File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\scipy\io\matlab\mio.py", line 223, in loadmat MR, = mat_reader_factory(f,
kwargs) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\scipy\io\matlab\mio.py", line 72, in mat_reader_factory mjv, mnv = get_matfile_version(byte_stream) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\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 0, 0

ascust commented 3 years ago

Did you use the same scipy version?