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

model mismatch between *.t7 and *.pth after conversion #7

Open
xychen9459 opened this issue Oct 29, 2017 · 0 comments
Open

model mismatch between *.t7 and *.pth after conversion #7

xychen9459 opened this issue Oct 29, 2017 · 0 comments

Comments

@xychen9459
Copy link

xychen9459 commented Oct 29, 2017

I have converted caffemodel to torch .t7 file and pytorch .pth file, but something wrong when I use test_model.py to verify consistency between .t7 file and .pth file.

Traceback (most recent call last):
  File "./test/test_model.py", line 41, in <module>
    assert y_diff == 0, 'y_diff = %f' % y_diff
AssertionError: y_diff = 69.316125

When I use vgg16 to classify an image by loading .t7 model and .pth model, I find the final results are not the same.

How can I solve the problem to correctly convert .t7 model to .pth model ? Thanks.

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