Open pasonx opened 7 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
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:
voc_2007_trainval
for training Set proposal method: gt Appending horizontally-flipped training examples... Traceback (most recent call last): File "./tools/train_net.py", line 104, in