AttributeError: 'ConfigDict' object has no attribute 'device'
See original GitHub issueThanks for your error report and we appreciate it a lot.
Checklist
- I have searched related issues but cannot get the expected help.
- I have read the FAQ documentation but cannot get the expected help.
- The bug has not been fixed in the latest version.
Describe the bug A clear and concise description of what the bug is.
Reproduction
- What command or script did you run?
A placeholder for the command.
- Did you make any modifications on the code or config? Did you understand what you have modified?
- What dataset did you use?
Environment
- Please run
python mmdet/utils/collect_env.py
to collect necessary environment information and paste it here. - You may add addition that may be helpful for locating the problem, such as
- How you installed PyTorch [e.g., pip, conda, source]
- Other environment variables that may be related (such as
$PATH
,$LD_LIBRARY_PATH
,$PYTHONPATH
, etc.)
Error traceback If applicable, paste the error trackback here.
A placeholder for trackback.
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!
Issue Analytics
- State:
- Created a year ago
- Comments:9
Top Results From Across the Web
'ConfigDict' object has no attribute 'device' #7901 - GitHub
I was recently able to successfully fine-tune mask r-cnn and mask scoring r-cnn on my costume dataset. Training and inference both worked ...
Read more >How to fix AttributeError: 'ConfigDict' object has no attribute ...
I have no idea what is wrong with the code and why it is not working. from argparse import ArgumentParser from mmdet.apis import...
Read more >AttributeError: 'ConfigDict' object has no attribute 'device'
mmdetection训练自己的coco数据集通过命令行运行tools/train.py文件时,报错:AttributeError: 'ConfigDict' object has no attribute 'device'
Read more >Changelog — MMDetection 2.26.0 documentation
Fix single GPU distributed training of cuda device specifying (#8176) ... Fix PALETTE AttributeError in downstream task (#7230) ...
Read more >Source code for recbole.config.configurator
[docs]class Config(object): """Configurator module that load the defined parameters. ... __dict__: raise AttributeError( f"'Config' object has no attribute ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
AttributeError: ‘ConfigDict’ object has no attribute ‘device’
@BIGWangYuDong dear sir ,what does update your train.py mean i still can not fix even i add cfg.device=‘cuda’