尧图精选

mask-rcnn报错: IndexError: boolean index did not match indexed array along dimension 0; ......

🕒 发布时间:2026/10/1 9:28:54 📁 来源:尧图网络
mask-rcnn在执行train.py训练模型时报错如下image_id 769 ERROR:root:Error processing image {id: 769, source: shapes, path: train_data/pic/4A707SG3.jpg, width: 820, height: 706, mask_path: train_data/cv2_mask/4A707SG3.png, yaml_path: train_data/labelme_json/4A707SG3_json/info.yaml} Traceback (most recent call last): File D:\python-workspace\Mask_RCNN-master2\mrcnn\model.py, line 1712, in data_generator use_mini_maskconfig.USE_MINI_MASK) File D:\python-workspace\Mask_RCNN-master2\mrcnn\model.py, line 1268, in load_image_gt class_ids class_ids[_idx] IndexError: boolean index did not match indexed array along dimension 0; dimension is 0 but corresponding boolean dimension is 1问题定位
上一篇/下一篇内容由系统自动关联 返回资讯列表 →