dBeker / Faster-RCNN-TensorFlow-Python3

Tensorflow Faster R-CNN for Windows/Linux and Python 3 (3.5/3.6/3.7)
MIT License
609 stars 329 forks source link

AssertionError: Path does not exist: …………data/VOCdevkit2007/VOC2007/JPEGImages/showImages_(100).jpg #129

Open cowardless opened 4 months ago

cowardless commented 4 months ago

Loaded dataset voc_2007_trainval for training Set proposal method: gt Appending horizontally-flipped training examples... Traceback (most recent call last): File "train.py", line 215, in train = Train() File "train.py", line 69, in init self.imdb, self.roidb = combined_roidb("voc_2007_trainval") File "train.py", line 48, in combined_roidb roidbs = [get_roidb(s) for s in imdb_names.split('+')] File "train.py", line 48, in roidbs = [get_roidb(s) for s in imdb_names.split('+')] File "train.py", line 45, in get_roidb roidb = get_training_roidb(imdb) File "train.py", line 25, in get_training_roidb imdb.append_flipped_images() File "/media/amax/data/syq/yolov5detect/Faster-RCNN-TensorFlow-Python3-master/lib/datasets/imdb.py", line 112, in append_flipped_images widths = self._get_widths() File "/media/amax/data/syq/yolov5detect/Faster-RCNN-TensorFlow-Python3-master/lib/datasets/imdb.py", line 108, in _get_widths for i in range(self.num_images)] File "/media/amax/data/syq/yolov5detect/Faster-RCNN-TensorFlow-Python3-master/lib/datasets/imdb.py", line 108, in for i in range(self.num_images)] File "/media/amax/data/syq/yolov5detect/Faster-RCNN-TensorFlow-Python3-master/lib/datasets/pascal_voc.py", line 63, in image_path_at return self.image_path_from_index(self._image_index[i]) File "/media/amax/data/syq/yolov5detect/Faster-RCNN-TensorFlow-Python3-master/lib/datasets/pascal_voc.py", line 72, in image_path_from_index 'Path does not exist: {}'.format(imagepath) AssertionError: Path does not exist: /media/amax/data/syq/yolov5detect/Faster-RCNN-TensorFlow-Python3-master/data/VOCdevkit2007/VOC2007/JPEGImages/showImages(100).jpg

When I train on my own datasets, this error came out. But I do have this picture in the same folder. And I checked , the file path is correct。 How to solve this.