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

the AAm problems #113

Open
redforg opened this issue Jul 16, 2018 · 0 comments
Open

the AAm problems #113

redforg opened this issue Jul 16, 2018 · 0 comments

Comments

@redforg
Copy link

redforg commented Jul 16, 2018

when i use the doc in http://www.menpo.org/menpofit/aam.html
`%matplotlib inline

from menpowidgets import visualize_images

visualize_images(training_images)`
i get something wrong like this

ValueError Traceback (most recent call last)
in ()
17 get_ipython().magic('matplotlib inline')
18 from menpowidgets import visualize_images
---> 19 visualize_images(training_images)

D:\ProgramFiles\Anaconda\envs\test\lib\site-packages\menpowidgets\base.py in visualize_images(images, figure_size, browser_style, custom_info_callback)
586 n_channels=images[0].n_channels,
587 image_is_masked=isinstance(images[0], MaskedImage),
--> 588 render_function=render_function)
589 landmark_options_wid = LandmarkOptionsWidget(
590 group_keys=groups_keys, labels_keys=labels_keys,

D:\ProgramFiles\Anaconda\envs\test\lib\site-packages\menpowidgets\options.py in init(self, n_channels, image_is_masked, render_function, style)
1574
1575 # Set values
-> 1576 self.set_widget_state(n_channels, image_is_masked, allow_callback=False)
1577
1578 # Set slider update

D:\ProgramFiles\Anaconda\envs\test\lib\site-packages\menpowidgets\options.py in set_widget_state(self, n_channels, image_is_masked, allow_callback)
1856 render_function = self._render_function
1857 self.remove_render_function()
-> 1858 self.remove_callbacks()
1859
1860 # Assign properties

D:\ProgramFiles\Anaconda\envs\test\lib\site-packages\menpowidgets\options.py in remove_callbacks(self)
1627 self._save_glyph, names='selected_values', type='change')
1628 self.cmap_select.unobserve(
-> 1629 self._save_options, names='value', type='change')
1630 self.alpha_slider.unobserve(
1631 self._save_options, names='value', type='change')

D:\ProgramFiles\Anaconda\envs\test\lib\site-packages\traitlets\traitlets.py in unobserve(self, handler, names, type)
1284 names = parse_notifier_name(names)
1285 for n in names:
-> 1286 self._remove_notifiers(handler, n, type)
1287
1288 def unobserve_all(self, name=All):

D:\ProgramFiles\Anaconda\envs\test\lib\site-packages\traitlets\traitlets.py in _remove_notifiers(self, handler, name, type)
1194 del self._trait_notifiers[name][type]
1195 else:
-> 1196 self._trait_notifiers[name][type].remove(handler)
1197 except KeyError:
1198 pass

ValueError: list.remove(x): x not in list

how can i fix this?thanks very much.

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