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

TypeError: Descriptors should not be created directly, but only retrieved from their parent #114

Open
scm-ns opened this issue May 8, 2017 · 4 comments

Comments

@scm-ns
Copy link

scm-ns commented May 8, 2017

I was having this issue,when I run convert. The solution is to rename the caffepb.py to caffe_pb2.py at caffe-tensorflow/kaffe/caffe. Remove the pyc files in the folder and run convert again.
Possible reason for this might be some python module name conflicts.

Solution from :
http://stackoverflow.com/questions/38616620/caffe-to-tensorflow-kaffe-by-ethereon-typeerror-descriptors-should-not-be-c

@scm-ns scm-ns closed this as completed May 8, 2017
@scm-ns scm-ns reopened this May 8, 2017
@jzstark
Copy link

jzstark commented May 22, 2017

Thanks a lot for this solution! Of course I also need to change the resolver.py file accordingly:

from . import caffe_pb2
self.caffepb = caffe_pb2

@BryceCicada
Copy link

BryceCicada commented Jun 21, 2017

This is fixed for me in #105.

Try it out with:
git pull origin pull/105/head

@yesyu
Copy link

yesyu commented Sep 16, 2017

worked fine.
thx!

@xinyu391
Copy link

xinyu391 commented May 16, 2018

“git pull origin pull/105/head”
works for me, It should be protobuf version probelm
pull 105 解决了我的问题,
应该是protobuf版本的问题

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

5 participants