针对你提出的问题“attributeerror: 'configdict' object has no attribute 'train_cfg'”,以下是我根据提供的参考信息和你的要求给出的回答: 确认ConfigDict类的定义和来源: ConfigDict通常是一个用于存储配置信息的类,在多个Python项目中都有使用,特别是在一些深度学习框架或工具包中,如MMDetection。 要确认Config...
I still have a question about the old error 'ConfigDict' object has no attribute 'train_cfg'. I modified my model = build_detector( cfg.model, train_cfg=cfg.train_cfg, test_cfg=cfg.test_cfg) to model = build_detector( cfg.model, train_cfg=cfg.get('train_cfg'), test_cfg=cfg.get...