Open YXB-NKU opened 3 months ago
当我在训练MMrotate时, 在config配置文件中加入optim_wrapper = dict( type='OptimWrapper', optimizer = dict( type='AdamW', lr=0.0002, #/8*gpu_number, betas=(0.9, 0.999), weight_decay=0.05), accumulative_counts=2)时, 发现optim_wrapper并没有被解析,用的是schedule_1x.py里面的默认optimizer, optimizer = dict(type='SGD', lr=0.0025, momentum=0.9, weight_decay=0.0001), 相关库的版本: mmcv-full:1.7.0 mmengine:0.10.4 mmrotate:0.3.4 在MMrotate中怎样正确使用梯度累积呢
Thanks for your error report and we appreciate it a lot.
Checklist
Describe the bug A clear and concise description of what the bug is.
Reproduction
Environment
python mmdet/utils/collect_env.py
to collect necessary environment information and paste it here.$PATH
,$LD_LIBRARY_PATH
,$PYTHONPATH
, etc.)Error traceback If applicable, paste the error trackback here.
Bug fix If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!