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

Questuion: model reshaping caffe model in dump_tensorflow_weights.py #42

Open
ShihweiChen opened this issue Dec 25, 2018 · 0 comments
Open

Comments

@ShihweiChen
Copy link

Is there anybody able to explain why in dump_tensorflow_weights.py:
(1) line 67:
caffe_weights = data.transpose(3, 2, 0, 1)
(2) line 85-86:
new_weights[:, 0] = tmp[:, 1] * 0.5
new_weights[:, 1] = tmp[:, 0] * 0.5

In (1), I know tensorflow uses NHWC format and caffe uses NCHW format so that I cannot realize why transposes (3,2,0,1)

In(2), sincerely request a help to know why it has to make new caffe weight a half of old caffe weight if BoxPredictor_0/BoxEncodingPredictor/weights

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

1 participant