Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Caffe ResNet model, net.predict() function predict same probability #4012
Comments
|
From https://github.com/BVLC/caffe/blob/master/CONTRIBUTING.md:
|
bearpaw
commented
Apr 23, 2016
|
@JudeLee19 Hi. Just a little shift away from your question: how you visualize the training? Thank you! |
BobLiu20
commented
Jul 12, 2017
•
|
you can get answer of this question in here answer: So please close this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JudeLee19 commentedApr 19, 2016
•
edited
I trained ResNet-101 following caffe model(https://github.com/KaimingHe/deep-residual-networks) with 800000 data for training and 200000 data for validation. After I train this model, I got 59% accuracy for 1st and accuracy-top5 is 82% with 30 epoch as seen below picture.

But when I tried predict some images with this model(net.forward()), the results always produce same probability like below even though I tried with other images.

First thing I thought was image preprocessing problem in predict step like subtracting mean values or adequating batch size corresponding with training step. But all of these step was correctly set up. I checked all other questions having a same problem with me but couldn't find a solution. As the above picture(1) is showing, I assume the training process wasn't something wrong.
I followed "Image Classification and Filter Visualization(http://nbviewer.jupyter.org/github/BVLC/caffe/blob/master/examples/00-classification.ipynb)" file provided from Caffe editing model_def and model_weights with my model_def and model_weights having a 30 epoch.