Accuracy 0 or 1?

21 views
Skip to first unread message

Tanmay Saxena

unread,
Aug 17, 2017, 12:58:50 AM8/17/17
to Caffe Users
HI,
I am new to caffe. I have trained my model using

./build/tools/caffe train -solver /path/to/solver.prototxt -weights  /path/to/trained_model.caffemodel

and getting an accuracy of ~65% but when I am testing it using

/path/to/caffe/build/tools/caffe test -model /path/to/train_val.prototxt - weights /path/to/trained_model.caffemodel -iterations <num_iter>


for each iteration the accuracy is either 0 or 1, and the final accuracy is 0.02.

What could be the reason for this?

Jonathan R. Williford

unread,
Aug 17, 2017, 3:46:32 AM8/17/17
to Tanmay Saxena, Caffe Users
Are you putting a space between "- weights" when testing? Or is this a mistake when putting the command in email?

Jonathan

--
You received this message because you are subscribed to the Google Groups "Caffe Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caffe-users+unsubscribe@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/d221e331-8917-4828-9a79-8390d79c80a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tanmay Saxena

unread,
Aug 17, 2017, 4:30:06 AM8/17/17
to Caffe Users
It's a mistake in here only. Ran the command without a space between - and weights

Jonathan R. Williford

unread,
Aug 17, 2017, 11:14:37 AM8/17/17
to Tanmay Saxena, Caffe Users
I think you would need to post your model prototxt. Accuracy should indeed be between 0 and 1, even with batch size of 1. What does your model's predictions look like?

Jonathan

On Aug 17, 2017 10:30, "Tanmay Saxena" <tstanma...@gmail.com> wrote:
It's a mistake in here only. Ran the command without a space between - and weights
--
You received this message because you are subscribed to the Google Groups "Caffe Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caffe-users+unsubscribe@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages