Traceback (most recent call last):
File "D:/Project_Code/YOLOv4-pytorch-master/train.py", line 360, in
fp_16=opt.fp_16,
File "D:/Project_Code/YOLOv4-pytorch-master/train.py", line 164, in train
) in enumerate(self.train_dataloader):
File "C:\ProgramData\Anaconda3\envs\gpupy\lib\site-packages\torch\utils\data\dataloader.py", line 363, in next
data = self._next_data()
File "C:\ProgramData\Anaconda3\envs\gpupy\lib\site-packages\torch\utils\data\dataloader.py", line 403, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "C:\ProgramData\Anaconda3\envs\gpupy\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\ProgramData\Anaconda3\envs\gpupy\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\Project_Code\YOLOv4-pytorch-master\utils\datasets.py", line 45, in getitem
self.annotations[item_mix]
File "D:\Project_Code\YOLOv4-pytorch-master\utils\datasets.py", line 113, in parse_annotation
img, bboxes = dataAug.RandomCrop()(np.copy(img), np.copy(bboxes))
File "D:\Project_Code\YOLOv4-pytorch-master\utils\data_augment.py", line 30, in call
np.min(bboxes[:, 0:2], axis=0),
IndexError: too many indices for array
Traceback (most recent call last): File "D:/Project_Code/YOLOv4-pytorch-master/train.py", line 360, in
fp_16=opt.fp_16,
File "D:/Project_Code/YOLOv4-pytorch-master/train.py", line 164, in train
) in enumerate(self.train_dataloader):
File "C:\ProgramData\Anaconda3\envs\gpupy\lib\site-packages\torch\utils\data\dataloader.py", line 363, in next
data = self._next_data()
File "C:\ProgramData\Anaconda3\envs\gpupy\lib\site-packages\torch\utils\data\dataloader.py", line 403, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "C:\ProgramData\Anaconda3\envs\gpupy\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\ProgramData\Anaconda3\envs\gpupy\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\Project_Code\YOLOv4-pytorch-master\utils\datasets.py", line 45, in getitem
self.annotations[item_mix]
File "D:\Project_Code\YOLOv4-pytorch-master\utils\datasets.py", line 113, in parse_annotation
img, bboxes = dataAug.RandomCrop()(np.copy(img), np.copy(bboxes))
File "D:\Project_Code\YOLOv4-pytorch-master\utils\data_augment.py", line 30, in call
np.min(bboxes[:, 0:2], axis=0),
IndexError: too many indices for array