Traceback (most recent call last):
File "train.py", line 456, in
train(hyp, opt, device, tb_writer)
File "train.py", line 242, in train
for i, (imgs, targets, paths, _) in pbar: # batch
File "/home/shu/anaconda3/lib/python3.8/site-packages/tqdm/std.py", line 1167, in iter
for obj in iterable:
File "/home/shu/yolov5-master-ubuntu/utils/datasets.py", line 91, in iter
yield next(self.iterator)
File "/home/shu/anaconda3/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 435, in next
data = self._next_data()
File "/home/shu/anaconda3/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 475, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "/home/shu/anaconda3/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/shu/anaconda3/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/shu/yolov5-master-ubuntu/utils/datasets.py", line 522, in getitem
img, labels = load_mosaic(self, index)
File "/home/shu/yolov5-master-ubuntu/utils/datasets.py", line 652, in load_mosaic
img, _, (h, w) = load_image(self, index)
File "/home/shu/yolov5-master-ubuntu/utils/datasets.py", line 613, in load_image
assert img is not None, 'Image Not Found ' + path
AssertionError: Image Not Found data/coco/images/train2017/bag135.jpg
我看了三种改法,1是删除cache文件,无用
2.改detasets文件,我已经改了。
并且我明明没有中文路径