question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'ConfigDict' object has no attribute 'device'

See original GitHub issue

Thanks for your error report and we appreciate it a lot.

Checklist

  1. I have searched related issues but cannot get the expected help.
  2. I have read the FAQ documentation but cannot get the expected help.
  3. The bug has not been fixed in the latest version.

Describe the bug A clear and concise description of what the bug is.

Reproduction

  1. What command or script did you run?
A placeholder for the command.
  1. Did you make any modifications on the code or config? Did you understand what you have modified?
  2. What dataset did you use?

Environment

  1. Please run python mmdet/utils/collect_env.py to collect necessary environment information and paste it here.
  2. 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:closed
  • Created a year ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
Hiyao-yycommented, Jul 14, 2022

AttributeError: ‘ConfigDict’ object has no attribute ‘device’

0reactions
ding19980201commented, Nov 23, 2022

@BIGWangYuDong dear sir ,what does update your train.py mean i still can not fix even i add cfg.device=‘cuda’

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found