做数据集增强时,训练一半出现IndexError: tuple index out of range这种错误,不知道怎么改,有神仙赐教一下嘛?

在用YOLOv5做图像训练时,首先做了数据集的增强,但是增强中出现了如下的错误
首先出现这样的警告
(A:/stdy py37-g/agu_img.py:153: DeprecationWarning: An exception was ignored while fetching the attribute __array_interface__ from an object of type ‘JpegImageFile’. With the exception of AttributeError NumPy will always raise this exception in the future. Raise this deprecation warning to see the original exception. (Warning added NumPy 1.21)
img = np.array(img)
![Alt]做数据集增强时,训练一半出现IndexError: tuple index out of range这种错误,不知道怎么改,有神仙赐教一下嘛?_第1张图片
然后出现这样报错,就很懵逼,具体报错如下,不知道怎么下手改
A:/stdy py37-g/agu_img.py:153: DeprecationWarning: An exception was ignored while fetching the attribute __array_interface__ from an object of type ‘JpegImageFile’. With the exception of AttributeError NumPy will always raise this exception in the future. Raise this deprecation warning to see the original exception. (Warning added NumPy 1.21)
img = np.array(img)
Traceback (most recent call last):
File “”, line 1, in
File “A:\PyCharm 2019\helpers\pydev_pydev_bundle\pydev_umd.py”, line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File “A:\PyCharm 2019\helpers\pydev_pydev_imps_pydev_execfile.py”, line 18, in execfile
exec(compile(contents+“\n”, file, ‘exec’), glob, loc)
File “A:/stdy py37-g/agu_img.py”, line 161, in
bbs_aug = seq_det.augment_bounding_boxes([bbs])[0]
File “A:\Anaconda3\envs\pytorch_gpu\lib\site-packages\imgaug\augmenters\meta.py”, line 1183, in augment_bounding_boxes
hooks=hooks
File “A:\Anaconda3\envs\pytorch_gpu\lib\site-packages\imgaug\augmenters\meta.py”, line 645, in augment_batch_
hooks=hooks)
File “A:\Anaconda3\envs\pytorch_gpu\lib\site-packages\imgaug\augmenters\meta.py”, line 3127, in augment_batch
hooks=hooks
File “A:\Anaconda3\envs\pytorch_gpu\lib\site-packages\imgaug\augmenters\meta.py”, line 645, in augment_batch_
hooks=hooks)
File “A:\Anaconda3\envs\pytorch_gpu\lib\site-packages\imgaug\augmenters\flip.py”, line 1016, in augment_batch
height = bbsoi.shape[0]
IndexError: tuple index out of range

求各路大神赐教

你可能感兴趣的:(数据集增强,python,开发语言,数据集增强,深度学习,yolov5)