AttributeError: 'ConfigDict' object has no attribute 'data
时间: 2023-10-01 20:09:30 浏览: 419
bcremoveobjectimageattributecontent:BC Remove Object Image Attribute Content 提供了一个稳定而灵活的解决方案,允许用户根据当前版本、所有版本或新版本动态删除内容对象图像属性内容。 提供对图像属性内容的脚本化操作!
AttributeError: 'ConfigDict' object has no attribute 'data' 这个错误通常是由于在代码中访问了一个没有定义的属性引起的。根据引用的信息,这个错误在执行mmdetection的训练脚本时出现。根据GitHub上的解决方法,我们可以在tools/train.py文件的meta['config'] = cfg.pretty_text下面添加一行代码 cfg.data=None 来解决这个问题。这样就可以解决AttributeError: 'ConfigDict' object has no attribute 'data'的错误了。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [AttributeError: ‘ConfigDict‘ object has no attribute ‘device](https://blog.csdn.net/m0_60772977/article/details/125689187)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [# Pycharm关于AttributeError: ‘DataFrame’ object has no attribute ‘score’的错误](https://download.csdn.net/download/weixin_38720756/13749766)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文