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

Use non-standard version of caffe for model conversion. #41

Closed
yash0307 opened this issue Jun 1, 2017 · 3 comments
Closed

Use non-standard version of caffe for model conversion. #41

yash0307 opened this issue Jun 1, 2017 · 3 comments

Comments

@yash0307
Copy link

yash0307 commented Jun 1, 2017

I used non-standard version of caffe for training my model. When I tried to convert it to keras model, this is the error I got : "caffe.LayerParameter" has no field named "transpose_param". Could you please tell me how can I use caffe2keras.py script specifying a different built of caffe.

@yash0307 yash0307 closed this as completed Jun 1, 2017
@yash0307 yash0307 reopened this Jun 1, 2017
@yash0307
Copy link
Author

yash0307 commented Jun 1, 2017

I've managed a workaround for previous error. However, I'm getting a ValueError now.

ValueError: Shape must be rank 4 but is rank 5 for 'caffe.SpatialConvolution_0_zeropadding/Pad' (op: 'Pad') with input shapes: [1,?,1,100,32], [4,2].

@MarcBS
Copy link
Owner

MarcBS commented Jun 1, 2017

I am not sure about that last error, but if you what to use a different version of Caffe you should change the caffe_pb2.py file. You should find it in the python directory in your version of Caffe.

@yash0307
Copy link
Author

yash0307 commented Jun 1, 2017

@MarcBS Thank you for the quick response.

@yash0307 yash0307 closed this as completed Jun 1, 2017
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