open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
29.22k stars 9.4k forks source link

AttributeError: 'InstanceData' object has no attribute 'masks' #10877

Open yz80325 opened 1 year ago

yz80325 commented 1 year ago

在使用mask-rcnn r101 时报了这个,是因为版本问题吗 image

hhaAndroid commented 1 year ago

应该是你的配置不对,或者说没有 mask。建议你检查下配置或者数据集

yuanfangshang888 commented 11 months ago

你好,我今天在训练mask-rcnn_r50_fpn_2x_coco.py这个文件的时候还是报错AttributeError: 'InstanceData' object has no attribute 'masks',请问有什么解决方法吗?因为我在网络上查找了很久都没有找到合适的解决方案,麻烦运行成功的人给出一些指导,谢谢

yuanfangshang888 commented 11 months ago

我也是报了相同的错误,错误如图: 1697734288199

Zerow003 commented 10 months ago

image The same error as above:(

wonjun-dev commented 9 months ago

"rtmdet_ins_head.py" has same error.

jryxxx commented 8 months ago

same error

jryxxx commented 8 months ago

same error

Solved, change num_classes in 'mask-rcnn_r50_fpn.py' or your config

KismetR commented 6 months ago

same error

Solved, change num_classes in 'mask-rcnn_r50_fpn.py' or your cofig how much should i change?how can i know the num i should change plz...

KismetR commented 6 months ago

same error

Solved, change num_classes in 'mask-rcnn_r50_fpn.py' or your config

and now i have changed the num you mentioned about,but still the bug happened

jryxxx commented 6 months ago

same error

Solved, change num_classes in 'mask-rcnn_r50_fpn.py' or your config

and now i have changed the num you mentioned about,but still the bug happened

Hi, what is the dataset used in your config?May be it is the problem of your dataset.I forget the details how i solved it,may be you can change another config such as Retinanet.

KELISBU commented 3 months ago

Same error, I am doing objective detection without mask annotation.

JaggerGu commented 3 months ago

I am encountering the same error.

nabiroro commented 3 months ago

Same error, I am doing objective detection without mask annotation. Have you solved it? I encountered the same problem

JaggerGu commented 1 month ago

Same error, I am doing objective detection without mask annotation. Have you solved it? I encountered the same problem

Nope