-
Notifications
You must be signed in to change notification settings - Fork 74
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
Inception V3 gives wrong predictions #7
Comments
The model is converted from TensorFlow model. Note preprocessing code is different, see preprocessing.py in the zip. Also 1008 is from Google, and 1-1000 is ILVRC2012 label. |
I used the provided processing code but still same problem. |
I am not sure what is your problem, but on my side it works well, and I verified on ILSVRC 2012 validation set and TensorFlow sample image. |
I happen the same problem as erogol, could you show the code how you verify on ILSVRC 2012 validation set? |
Same here. |
What does wrong result mean? What is your accuracy on imagenet? |
First, resize the raw image into 384, then you can do in this way (code I used a month ago)
|
i couldn't download the model, who can share the model with me? |
synset.txt might wrong in this model. This leads to a wrong mapping. |
Accuracy is not important since the results are obviously flawed for couple of obvious class images that my previous net solves successfully. I also believe that the synset.txt is wrong since number of output nodes and the number of lines in the synset is not matching. |
The synset is correct. Again, in Google's released model, there is only 1008 outputs. There is a mapping in old synset and new synset, which I have provided code above. If it wrong, it can't produce 77% accuracy. |
The question is where can we find the old_synset.txt? |
You can find old_synset.txt in old Inception-BN model. On Thu, Jan 14, 2016 at 4:07 PM, Shuo Zhang [email protected]
|
I use the code above to test the validation set again, but still get the very low accuracy. I guess there are something wrong in either the Inception-7-0001.params or the synset.txt. Can you test again and add your code here https://s3.amazonaws.com/dmlc/model/inception-v3.tar.gz ,so we can run it directly to get the right result? |
I observe that the model works fine with cpu but not with gpu. All top predictions are skewed in gpu setting. |
I've also had some problems with this model: it gaves me wrong predictions with cudnn v3. mxnet without cudnn, with cudnn v4, and cpu version worked fine for me. |
something wrong with cudnn v3? |
Yeap I update to cudnn 4 and problem barely resolved. Thanks for pointing @u1234x1234 . But still gpu execution gives different top5 ordering in relation to cpu. At least results make sense for both cases. |
I guess there is something wrong about the released network or at least the preprocessing code. I tried to use prediction-with-pretrained example but the results are mistaken.
I also realized that output layer has 1008 nodes where as the label txt has 1001 classes
The text was updated successfully, but these errors were encountered: