differents results using caffe demo and opencv

asked 2019-05-22 02:32:46 -0600

LBerger gravatar image

updated 2019-05-22 03:50:44 -0600

Hi,

Model is http://dl.caffe.berkeleyvision.org/bv.... When I use opencv dnn my results are :

0.9998 space shuttle

0.0001 airliner

0.0 bullet train, bullet

using http://demo.caffe.berkeleyvision.org/ and image

results are image description

why are the results different?

converting image in png does not solve problem

edit retag flag offensive close merge delete

Comments

You should build caffe locally to be sure that the same input (normalization, swap RB, ...) are sent to the two methods. There is also a possibility that the demo webpage uses an outdated version of Caffe. How do you know which model/weights is used for the demo? See also this issue for the accuracy number.

You should also put your code.

Eduardo gravatar imageEduardo ( 2019-05-22 06:39:35 -0600 )edit

thanks. I will try to rebuild caffe on windows. my caffe version is out of order.

LBerger gravatar imageLBerger ( 2019-05-22 08:13:05 -0600 )edit
1

@Eduardo about issue I found this. In source code I think red and blue plan is not swap? blobFromImage(swapRB=True)?

LBerger gravatar imageLBerger ( 2019-05-22 14:51:41 -0600 )edit