Different results in train/validation and predicition #5764

Open
cisi17 opened this Issue Jul 11, 2017 · 0 comments

Comments

Projects
None yet
1 participant

cisi17 commented Jul 11, 2017

Hello,

I have implemented my own neural network with my own dataset.

Firstly. I train and test my network using transfer learning. I have achieved 95% train/test accuaracy:

  /usr/local/micaffe1/bin/caffe train --solver=/home/ubuntu/example/modelcsl/solver_csl.prototxt --weights /home/ubuntu/example/bvlc_reference_caffenet.caffemodel 2>&1 | tee /ubuntu/example/modelcsl/resultados_TL.log

But when I am going to do a prediction, the precision is over 70%:

  net = caffe.Net('/home/marcelo/ejemplosCaffe1/legImgLaser/modelcsl/caffenet_deploy_csl.prototxt',
            '/home/marcelo/ejemplosCaffe1/legImgLaser/modelcsl_iter_500.caffemodel',
            caffe.TEST)

......

   net.blobs['data'].data[...] = transformer.preprocess('data', img)
   out = net.forward()
   pred_probas = out['prob']

.......

I think that the deploy.prototxt and the train_test.prototxt have got the same net. And the preprocess is the same.

Could you help me?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment