You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/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
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'
`
The text was updated successfully, but these errors were encountered: