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

07_Inception_Model.ipynb give different results ? #37

Closed
shamanez opened this issue May 3, 2017 · 7 comments
Closed

07_Inception_Model.ipynb give different results ? #37

shamanez opened this issue May 3, 2017 · 7 comments

Comments

@shamanez
Copy link

shamanez commented May 3, 2017

I went through this notebook with given introduction. But when I use classify(image_path) function in the notebook it doesn't give correct predictions all the time.
If I test it on the given panda image it will first predict correct labels. But if I run in again in will give results like website, web .. etc

@Hvass-Labs
Copy link
Owner

I have just now tested this, and it works fine on my system which is Ubuntu 16.04, Python 3.6, TensorFlow 1.0. It gives the exact same outputs each time I call the function.

How do you expect me to help, when you don't give details about the system and software versions you are using, and the output / error messages you are seeing?

@shamanez
Copy link
Author

shamanez commented May 3, 2017

I am sorry. My tensorflow version is 1.01. Ubuntu version is 16.04 and python version is 3.5.
When I run the notebook for several times in each instance it gives different predicted results. No error messages.

This is the original result in the tutorial
1

This is what I got as correct results
2

This is what I got after running the same cell which classify panda again
3

@Hvass-Labs
Copy link
Owner

OK, that was a better error-report.

Unfortunately, I don't know what is wrong as it works fine for me. You will have to debug to find out what the problem is. It will be a good exercise for you to learn TensorFlow better. A wild guess might be that you have too little RAM, although that should probably give an error somewhere. You could try running it on a friend's PC and see if it works there.

If you find the solution then please report it here so it may help others in the future.

@shamanez
Copy link
Author

shamanez commented May 4, 2017

Well no errors at all. Thanks a lot for the support. I will surely update if I found a solution. Well I think you are correct. I tried this with tensorflow tutorial on CNN. It happened the same. Different probabilities and answers.

@manselag123
Copy link

i pretrained the inception model in tutorial #9 on my dataset but i want to classify my images like the one in tutorial#07

@Hvass-Labs
Copy link
Owner

@shamanez It is strange that the error happens when you rerun the entire Notebook and apparently gets worse when you just rerun a part of the Notebook. Try and download the Notebook and this entire repo again, perhaps it has been corrupted. Anyway, I can't help you so I'm closing this topic, but please leave a comment if you find the solution so it may help others in the future.

@manselag123 Your question is off-topic for this thread and I cannot help you with a question like this. You will have to do it yourself or ask on StackOverflow.

@shamanez
Copy link
Author

shamanez commented May 8, 2017

@Hvass-Labs Well it's not a problem with repo or the notebook. I tried the same with the tensorflow tutorial on image classification with tensorflow. (https://github.com/tensorflow/models)
It gave me the same errors. I think it's something to do with tf version I am using and the ram. Thanks a lot for responses.

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

3 participants