Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'Fitted_Face' #6

Open
TianaCo opened this issue Sep 27, 2018 · 0 comments
Open

KeyError: 'Fitted_Face' #6

TianaCo opened this issue Sep 27, 2018 · 0 comments

Comments

@TianaCo
Copy link

TianaCo commented Sep 27, 2018

When running the 4th box of "1. Building an "in-the-wild" texture model":

%matplotlib inline img, feat, fit_trimesh_3d = imgs_features_and_fits[100]

it returns:
KeyError:'Fitted_Face'

Everything else seems to be working

`---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
in ()
1 get_ipython().run_line_magic('matplotlib', 'inline')
2 # Let's test one.
----> 3 img, feat, fit_trimesh_3d = imgs_features_and_fits[100]
4
5 # Visual check that everything looks sensible

~/anaconda3/envs/menpo/lib/python3.5/site-packages/menpo/base.py in getitem(self, slice_)
495 elif isinstance(slice_, int) or hasattr(slice_, 'index'):
496 # PEP 357 and single integer index access - returns element
--> 497 return self._callablesslice_
498 else:
499 # A slice or unknown type is passed - let List handle it

~/anaconda3/envs/menpo/lib/python3.5/site-packages/menpo/base.py in delayed(delay_f, delay_x)
583 # is passed the actual instantiated object and not the callable itself.
584 def delayed(delay_f, delay_x):
--> 585 return delay_f(delay_x())
586
587 if isinstance(f, collections.Iterable) and callable(f):

in load_data_with_feature_sample(img_path, err_proportion)
26
27 def load_data_with_feature_sample(img_path, err_proportion=0.0001):
---> 28 img, fit_trimesh_3d = load_img_and_fit(img_path)
29
30 # rescale the image to the diagonal range we are using

in load_img_and_fit(img_path)
20
21 img = mio.import_image(img_path).as_greyscale()
---> 22 raw_3d_fit = sio.loadmat(str(fit_path))['Fitted_Face']
23 fit_trimesh_3d = convert_raw_3d_fit_to_img_trimesh_fit(raw_3d_fit, img)
24 return img, fit_trimesh_3d

KeyError: 'Fitted_Face'
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant