yzqxy / Yolov8_obb_Prune_Track

GNU General Public License v3.0
176 stars 13 forks source link

图像或标签数据存在数据类型不匹配 #27

Closed kbjhouse closed 10 months ago

kbjhouse commented 10 months ago

train: WARNING: autodl-tmp/Body/datasets/MyData/images/train/202310212248461824_824.jpg: ignoring corrupt image/label: The DType <class 'numpy._IntegerAbstractDType'> could not be promoted by <class 'numpy.dtypes.StrDType'>. This means that no common DType exists for the given inputs. For example they cannot be stored in a single array unless the dtype is object. The full list of DTypes is: (<class 'numpy._IntegerAbstractDType'>, <class 'numpy.dtypes.StrDType'>) train: New cache created: /root/autodl-tmp/Body/datasets/train.cache Traceback (most recent call last): File "/root/autodl-tmp/Body/Yolov8_obb/train.py", line 648, in main(opt) File "/root/autodl-tmp/Body/Yolov8_obb/train.py", line 545, in main train(opt.hyp, opt, device, callbacks) File "/root/autodl-tmp/Body/Yolov8_obb/train.py", line 222, in train train_loader, dataset = create_dataloader(train_path, imgsz, batch_size // WORLD_SIZE, gs, names, single_cls, File "/root/autodl-tmp/Body/Yolov8_obb/utils/datasets.py", line 101, in create_dataloader dataset = LoadImagesAndLabels(path, names, imgsz, batch_size, File "/root/autodl-tmp/Body/Yolov8_obb/utils/datasets.py", line 448, in init__ labels, shapes, self.segments = zip(*cache.values()) ValueError: not enough values to unpack (expected 3, got 0)