FaceFitting icon indicating copy to clipboard operation
FaceFitting copied to clipboard

get_landmarks.py issue

Open boomberung opened this issue 6 years ago • 3 comments

When I run get_landmarks.py i get this issue: Traceback (most recent call last): File "get_landmarks.py", line 23, in bfm = MorphabelModel('models/BFM.mat') File "/home/computers/projects/FaceFitting/MorphabelModel.py", line 10, in init self.load(model_path) File "/home/computers/projects/FaceFitting/MorphabelModel.py", line 23, in load model = scipy.io.loadmat(model_path)['model'][0, 0] File "/usr/local/lib/python3.6/dist-packages/scipy/io/matlab/mio.py", line 217, in loadmat MR, _ = mat_reader_factory(f, **kwargs) File "/usr/local/lib/python3.6/dist-packages/scipy/io/matlab/mio.py", line 72, in mat_reader_factory mjv, mnv = get_matfile_version(byte_stream) File "/usr/local/lib/python3.6/dist-packages/scipy/io/matlab/miobase.py", line 241, in get_matfile_version raise ValueError('Unknown mat file type, version %s, %s' % ret) ValueError: Unknown mat file type, version 50, 5

boomberung avatar May 19 '19 10:05 boomberung

Try this? https://github.com/scipy/scipy/issues/1845

Shade5 avatar May 20 '19 14:05 Shade5

Are you using Windows system? It is better not to use the .mat file provided in the download file, but generate it following https://github.com/YadiraF/face3d/tree/master/examples.

Leong1230 avatar Aug 07 '19 11:08 Leong1230

@Leong1230 right

fashionguy avatar Oct 08 '20 08:10 fashionguy