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: 'encode1' #24

Open
Vullan opened this issue Mar 4, 2019 · 1 comment
Open

KeyError: 'encode1' #24

Vullan opened this issue Mar 4, 2019 · 1 comment

Comments

@Vullan
Copy link

Vullan commented Mar 4, 2019

I can run the estimate_plausible_tags function just fine- the model seems to be working, but calling extract_feature or extract_binary_feature returns KeyError: 'encode1'

looking in to it a little, it seems the error was generated as the output of :
feature = self._extract(imgs, layername='encode1')
and in the illust2vec model, the layers are only iterations of convX_Y, reluX_Y, and poolX.
Passing actual layer names doesn't seem to get rid of the error or produce any results so I'm lost with this...
On windows, chainer is v5.2

@mbatuhancelik
Copy link

Had the same issue, using illust2vec_ver200.caffemodel instead of illust2vec_tag_ver200.caffemodel when creating illust2vec solved the problem.
This is also demonstrated in how to use, yet it is easy to unsee.

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

2 participants