minji-o-j / YOLOv2

💻 YOLOv2 pytorch
MIT License
0 stars 0 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '000001.xml' #10

Closed minji-o-j closed 4 years ago

minji-o-j commented 4 years ago

pascal_voc.py code:

def _do_python_eval(self, output_dir='output'):
        annopath = os.path.join(
            self._devkit_path,
            'VOC' + self._year,
            'Annotations',
            '{:s}.xml')

Change to:

def _do_python_eval(self, output_dir='output'):
        annopath = os.path.join(
            self._devkit_path,
            'VOC' + self._year,
            'Annotations',
            '{}.xml')

Short version: {:s}.xml > {}.xml

minji-o-j commented 4 years ago

https://github.com/jwyang/faster-rcnn.pytorch/issues/654