mmdetection报错:AttributeError: ‘VOCDataset‘ object has no attribute ‘dataset‘

训练验证时,报错:
 File "/home/user/mmdetection/mmdet/datasets/voc.py", line 43, in evaluate
    ds_name = self.dataset.CLASSES
AttributeError: 'VOCDataset' object has no attribute 'dataset'

查了下是mmdetection的一个bug, 在voc.py里的 self.dataset.CLASSES去掉dataset,改为 ds_name = self.CLASSES即可。

 

解决方法原链接:

https://github.com/open-mmlab/mmdetection/issues/3128#issuecomment-650696387

你可能感兴趣的:(bug)