caffe icon indicating copy to clipboard operation
caffe copied to clipboard

How to convert .xml file into train.txt and val.txt for LMDB conversion in caffe training for object detection?

Open Samjith888 opened this issue 5 years ago • 1 comments

I have read intel caffe tutorial.. By using that i have annotated each object in the image of train and validation directory .. Use LabelImg tool , it generated .xml file for each image separately.. now i have to convert this several.xml file into train m.txt and val.txt .. How can i do this ? Any suggestions please

Samjith888 avatar Aug 27 '19 17:08 Samjith888

you can refer to how examples/faster-rcnn/lib/datasets/pascal_voc.py _load_pascal_annotation() handles VOC2007 annotation xml file.

ftian1 avatar Aug 28 '19 03:08 ftian1