资讯动态

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问题定位

读完文章,也想定制专属网站?

尧图设计师 24 小时内与您沟通定制方案

免费获取报价 →
↑