caffe icon indicating copy to clipboard operation
caffe copied to clipboard

voc2012test

Open foralliance opened this issue 7 years ago • 17 comments

how to test voc2012?? the code "score_ssd_pascal.py" Seems to fit only voc2007. because for voc2012, there is no VOC0712Plus_test_lmdb.

foralliance avatar Mar 01 '18 04:03 foralliance

Purpose: I want to use the " VGG_VOC0712Plus_SSD_300x300_iter_240000. Caffemodel" to test the voc2012test dataset.

Method1: with the help of the test file in Refinedet , the result of voc2012test was obtained. After submitting the server, the result was 0.75960. It's OK

Method2: because author didn't directly provide the test code for voc2012test, I imitate "score_ssd_pascal.py" write a code about voc2012test ,called "score_ssd_pascal0712plus.py". In particular, it is simple to modify some training set names, file path names, and test the number of images.

because the "create_data. sh" ( from data/VOC0712Plus) gets only LMDB files on the training set(VOC0712Plus_trainval_lmdb), in order to get LMDB files about test set, imitate "create_data. sh" (from data/VOC0712) to write,just change for subset in trainval to for subset in test trainval

then, running, point out: Annofation file: /home/xxx/data/VOCdevkit/VOC2012/Annotations/2008_000001.xml does not exist

so I randomly wrote a "2008_000001.xml file " under the Annotations folder, and run successfully, get "VOC0712Plus_test_lmdb"

then run "score_ssd_pascal0712plus.py" and get the result to the server, but the final result is only 0.32190.


Why is the result of method 2 so bad? What went wrong?

foralliance avatar Mar 01 '18 06:03 foralliance

@foralliance I meet the same problem. have you solve it? I use ImageDataLayer to test voc12-test dataset. but i got a bad result .

shiyuangogogo avatar Mar 02 '18 03:03 shiyuangogogo

Maybe you have shuffled the test set?

moothes avatar Mar 02 '18 07:03 moothes

@moothes each score is around 0.01-0.04, it's bad. I hadn't shuffle the test set. And i think whether shuffle doesn't matter.

shiyuangogogo avatar Mar 02 '18 07:03 shiyuangogogo

I use ImageDataLayer to test voc12-test, mAP=0.75640

shiyuangogogo avatar Mar 02 '18 10:03 shiyuangogogo

Hi, @moliqian what's your mean "ImageDataLayer to test"? specifically, what is your code?

foralliance avatar Mar 05 '18 04:03 foralliance

ImageDataLayer is one layer of Caffe to load image to CNN

shiyuangogogo avatar Mar 05 '18 04:03 shiyuangogogo

@foralliance Better than me. I also used fake annotations but got 0.298 mAP online. Are there any good ways to test VOC2012?

frostinassiky avatar Mar 13 '18 14:03 frostinassiky

Where can you download the correct voc2012 test?

XuanheLiu avatar Jun 26 '18 11:06 XuanheLiu

@XuanheLiu This is not possible

frostinassiky avatar Jun 26 '18 20:06 frostinassiky

@Frostinassiky Do everyone do experiments to take voc2012test to test, do they have to annotate data sets themselves?

XuanheLiu avatar Jun 27 '18 13:06 XuanheLiu

Hi @moliqian , I thought ImageData Layer is for classification task. How do you use ImageDataLayer as SSD's input? Another question is do you implement data augmentation in the layer? Could you please share the code with me? thanks!

ryusaeba avatar Aug 20 '18 10:08 ryusaeba

I have also met such a problem. I download VOCtest_2012 here:https://pjreddie.com/projects/pascal-voc-dataset-mirror/ . But there's no corresponding annotation files recorded in ImageSets/Main/test.txt .

Zxl19990529 avatar Feb 19 '19 12:02 Zxl19990529

@Zxl19990529 To test models on VOC2012 set, you can: 1、Generate some fake annotation files, for example, annotating each image with same boxes; 2、Run SSD testing code to detect on VOC2012 test set. You will get a very low mAP and it doesn't matter; 3、Copy the detection result files and upload them to official website. I get the VOC2012 test result through above steps. Here is our VOC12 result . The model is our ICCV2017 workshop paper CAD net . Sorry for my poor english.

moothes avatar Feb 21 '19 02:02 moothes

@moothes Aha, I see, thank you very much.

Zxl19990529 avatar Feb 21 '19 04:02 Zxl19990529

@Frostinassiky I also get the problem,my result is 0.32,do you solve the problem?

keyang1 avatar Mar 09 '19 07:03 keyang1

@moothes I do the all step as you ,but I get the result is 0.32,could you help me to solve the problem?

keyang1 avatar Mar 09 '19 07:03 keyang1