Mask_RCNN class_ids=class_ids[_idx]&IndexError: boolean index did not match indexed array...问题

用Mask_RCNN制作自己的训练集
https://blog.youkuaiyun.com/heiheiya/article/details/81532914
参考的这篇文章,用via制作了自己的数据集,为Json文件,训练的时候出现

IndexError: boolean index did not match indexed array along dimension 0; dimension is 0 but corresponding boolean dimension is 1

解决办法: 一般是对应图片的训练集格式出了问题,训练集的Json文件的type和代码中的不一致, balloon.py代码注释中提到了Json文件的格式:

    # Load annotations
    # VGG Image Annotator (up to version 1.6) saves each image in the form:
    # { 'filename': '28503151_5b5b7ec140_b.jpg',
    #   'regions': {
    #       '0': {
    #           'region_attributes': {},
    #           'shape_attributes': {
    #               'all_points_x': [...],
    #               'all_points_y': [...],
    #               'name': 'p
评论 27
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值