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

Output not completely match #1

Open
LaTieCheng opened this issue Feb 19, 2019 · 1 comment
Open

Output not completely match #1

LaTieCheng opened this issue Feb 19, 2019 · 1 comment

Comments

@LaTieCheng
Copy link

Hi there,

Thank you very much for providing such a helpful tutorial. I realize that in the example you provided, some of the outputs' last digits are not matching, is this a rounding difference between tensorflow and caffe, or there is an issue?

Many thx!

@lFatality
Copy link
Owner

As far as I remember there were no differences in the output of the Caffe and Tensorflow model. If you check out the last video in the series you can see that I compare the output of both models and they match (https://youtu.be/kvXHOIn3-8s?t=1081).

If you use Python 2 for Caffe and Python 3 for Tensorflow you have to import division in your Caffe code, otherwise the results don't match, so I included this line:
from __future__ import division
Maybe this doesn't fit your setup?

I'm not sure why the results shouldn't match. I didn't have problems then and you are the first to report any error. Maybe double check if your setup is different or anything else interferes, otherwise I'd recommend to check the weights/biases and outputs of every layer and see where the differences occur. I gave some hints on how to debug at the end of the last video.

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