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

How to get the pydot graph of the following model? #5375

Closed
yxchng opened this issue Mar 8, 2017 · 5 comments
Closed

How to get the pydot graph of the following model? #5375

yxchng opened this issue Mar 8, 2017 · 5 comments

Comments

@yxchng
Copy link

yxchng commented Mar 8, 2017

https://github.com/rbgirshick/py-faster-rcnn/blob/master/models/coco/VGG16/faster_rcnn_end2end/train.prototxt

I understand that there are a lot of discussion going on but i have tried all of them and none of them work. Is there any reason why there are so many people having this problem and yet it is still not updated.

Error message as follows:
TypeError: %d format: a number is required, not google.protobuf.pyext._message.RepeatedScalarContainer

This is the same as another github issue but the solutions suggested just don't work.

@yxchng
Copy link
Author

yxchng commented Mar 8, 2017

Or sometimes it gives

AttributeError: 'google.protobuf.pyext._message.RepeatedScalarConta' object has no attribute '_values'

@yxchng
Copy link
Author

yxchng commented Mar 8, 2017

Error messages are different because i tried the different fixes suggested but all don't work

@zhaodaolimeng
Copy link

zhaodaolimeng commented Mar 11, 2017

Same issue, but I managed to fixed it by rewriting line 94,96,98,107,109,111 with the following code:

layer.convolution_param.kernel_size[0],
layer.convolution_param.stride[0] if len(layer.convolution_param.stride) > 0 else 1,
layer.convolution_param.pad[0] if len(layer.convolution_param.pad) else 0)

layer.pooling_param.kernel_size,
layer.pooling_param.stride,
layer.pooling_param.pad)

Hope it helps.

@shelhamer
Copy link
Member

Fixed by #5477 and #5487

@kritikaksu
Copy link

Thanks zhaodaolimeng. It works for me.

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

4 participants