-
Notifications
You must be signed in to change notification settings - Fork 151
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: 'ExpandBackward' #6
Comments
I have met same problems. I guess the conversion code has not support 'ExpandBackward' currently. |
met same problems too! |
same problem, can anybody give some tips? |
met same problems too! |
Let pytorch=0.2, torchvision=0.1.8, the problem will be solved! |
does that mean any model trained in torch version 3 and above need to be retrained in torch 2 and then safe to be converted to caffe |
@wyfdodogod I think you needn't retrain in torch 2, you should understand the meaning of |
@autocyz ty for the explaination, as you mentioned using torch 0.2 and torchvision 0.1.8, i solved the problem more specifically torch0.2 post1 using post2 and 3 might raise error causing python crash at the time caffe is imported. |
@wangxc2006 did you retrain the model under torch 0.2? |
Any plan to support 0.4.x ? |
@autocyz @longcw met same issue when running demo.py. |
@autocyz Like you said, "should understand the meaning of ExpandBackward and add this key to layer_dict , then you should add some operater in function pytorch2prototxt, just like elif parent_type == 'BatchNormBackward':" |
I tried "python pytorch2caffe" and I've got below error message.
My pytorch version is the latest one, http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp27-cp27mu-linux_x86_64.whl
The text was updated successfully, but these errors were encountered: