-
Notifications
You must be signed in to change notification settings - Fork 117
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
size mismatch when run "python i3d_tf_to_pt.py --rgb" #20
Comments
你解决这个问题了吗 |
Hi ! If you look at the error the size mismatches are between tensors which have the same number of elements, also they only happen on the batchnorm parameters. An alternate solution might be to add the extra dimensions (using something like view(1, 1, 1, 1, -1) on each of the weights obtained from tensorflow probably somewhere here Right now is pretty busy and I won't be able to look more into depth into this (meaning actually running code, experimenting with pytorch versions...) before the next 10 days :) Let me know if you could solve this :) Best ! Yana |
fix the bug "size mismatch",bug description: hassony2#20
Hi, $ python i3d_tf_to_pt.py --rgb max diff : 0.0115141868591, mean diff : 2.91702690447e-05 max diff : 0.00800371170044, mean diff : 4.55450135632e-05 max diff : 0.0120238959789, mean diff : 4.93937077408e-05 |
Thank you for the pull request ! Before accepting it, I would like to look at what causes the problem (I still think it might be pytorch or tensorflow-version specific, so best before I merge would be to understand why it happened to you and not to me ! :) ) Best ! Yana |
Yes, you reminded me ! I updated my Pytorch from 0.3 to 0.4.1 recently, and yesterday I found the similar problem in another program. Best ! |
Hi,
Thank you for your work, firstly.
I want to transfer the pre-training parameters in Tensorflow to PyTorch. But when I run "python i3d_tf_to_pt.py --rgb", I have the bugs as follows:
Additionally, I want to know, the pre-training parameters (model/model_rgb.pth) in PyTorch you provide if as same as the Tensorflow ? Thank you very much !
The text was updated successfully, but these errors were encountered: