zhaoweicai / cascade-rcnn

Caffe implementation of multiple popular object detection frameworks
1.04k stars 293 forks source link

how to build my own VOC dataset? #7

Open jjprincess opened 6 years ago

jjprincess commented 6 years ago

Hi,I tired your voc_window_file.m scripts in data/voc/ ,but it did not work. I am not familiar with Matlab,can anybody help?Thank you.

zhaoweicai commented 6 years ago

Why didn't it work? As long as you set up VOC dataset and VOCdevkit correctly, it should be working. They are all standard setting. If you just want to work on VOC, you can simply use the window files I provide. If you want to work on your own dataset, you may need to generate your own window files having the same structure.

jjprincess commented 6 years ago

I want to build my own dataset's window file, when I run the matlab scripts,an error thrown, shown below: `Error using VOCxml2struct>gettag (line 73) expected tag

Error in VOCxml2struct>parse (line 20) [tag,ind]=gettag(xml,ind);

Error in VOCxml2struct>parse (line 24) [sub,ind]=parse(xml,ind,tag);

Error in VOCxml2struct (line 5) [res,xml]=parse(xml,1,[]);

Error in VOCreadxml (line 10) rec=VOCxml2struct(xml);

Error in VOCreadrecxml (line 3) x=VOCreadxml(path);

Error in PASreadrecord (line 10) rec=VOCreadrecxml(path);

Error in voc_window_file (line 40) R=PASreadrecord(f); object=R.objects;` I have tried the scripts on the real VOC2007 dataset, it went well. Maybe there are some format differences between my datasets and real VOC2007.

jjprincess commented 6 years ago

@zhaoweicai I find my problem and solve it! Thank you very much!(^▽^)

moyans commented 6 years ago

need python scripts =。=

moyans commented 6 years ago

python scripts by myself, please don't laugh at my pool code =. = https://github.com/moyans/My_TOOLS/blob/master/cascade_tools/voc_window_file.py

tianmo88 commented 6 years ago

@jjprincess when I run the matlab scripts,an error thrown the same sa yours, can you tell me how to solve it thanks very much~