rbgirshick / py-faster-rcnn

Faster R-CNN (Python implementation) -- see https://github.com/ShaoqingRen/faster_rcnn for the official MATLAB version
Other
8.1k stars 4.11k forks source link

I train my own dataset and got KeyError: u'\u3001' #678

Open pasonx opened 7 years ago

pasonx commented 7 years ago

recently I made my PASCAL format dataset and configure the following file for 22 classes(I add one my own class) py-faster-rcnn/models/pascal_voc/VGG16/faster_rcnn_alt_opt/stage1_fast_rcnn_train.pt py-faster-rcnn/models/pascal_voc/VGG16/faster_rcnn_alt_opt/stage1_rpn_train.pt py-faster-rcnn/models/pascal_voc/VGG16/faster_rcnn_alt_opt/stage2_fast_rcnn_train.pt py-faster-rcnn/models/pascal_voc/VGG16/faster_rcnn_alt_opt/stage2_rpn_train.pt py-faster-rcnn/models/pascal_voc/VGG16/faster_rcnn_alt_opt/faster_rcnn_test.pt py-faster-rcnn/lib/datasets/pascal_voc.py

and I execute the command: ./experiments/scripts/faster_rcnn_end2end.sh 0 VGG16 pascal_voc

the log are as following:

satya2550 commented 6 years ago

It looks like some of your annotations file is having wrong entries, mostly class names may be wrong.

You can check annotation file name by adding prints in below code, file pascal_voc.py def _load_pascal_annotation(self, index): """ Load image and bounding boxes info from XML file in the PASCAL VOC format. """ filename = os.path.join(self._data_path, 'Annotations', index + '.xml') //// Add print statement here