-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'ConfigDict' object has no attribute 'device' #1445
Comments
I encounter the same issue. |
MMDetection: 2.24.0 can be downgraded to 2.23.0. https://github.com/open-mmlab/mmdetection/blame/master/mmdet/apis/train.py |
Yeh, current version can not be well compatible with mmdet v2.24.0, and the PR #1412 may cause potential bug when training. This will be fixed soon. |
I encounter the same issue when I trainning deepsort |
I fixed it by this way,maybe it's help for you
|
I think the potential bug has been fixed in #1443. |
I fixed just adding in my config file: |
How to reduce mmdetection2.24 to 2.23? Thank you for your reply |
Describe the issue
A clear and concise description of what the problem you meet and what have you done.
I want to train with existing models and standard datasets, so I follow the script "python tools/train.py ${CONFIG_FILE} [optional arguments]" and input the legal command. But it didn't work. Terminal gave the info like this:
[File "I:\Ana\envs\open-mmlab\lib\site-packages\mmcv\utils\config.py", line 513, in getattr
return getattr(self._cfg_dict, name)
File "I:\Ana\envs\open-mmlab\lib\site-packages\mmcv\utils\config.py", line 49, in getattr
raise ex
AttributeError: 'ConfigDict' object has no attribute 'device']
Frankly, I can't solve it, so I ask for help.
Reproduction
Environment
sys.platform: win32
Python: 3.7.13
CUDA available: True
GPU 0: NVIDIA GeForce RTX 3060
PyTorch: 1.8.2
TorchVision: 0.2.2
OpenCV: 4.5.5
MMCV: 1.5.0
MMCV Compiler: MSVC 192930137
MMCV CUDA Compiler: 11.1
MMDetection: 2.24.0
MMSegmentation: 0.23.0
MMDetection3D: 1.0.0rc1+ff159fe
$PATH
,$LD_LIBRARY_PATH
,$PYTHONPATH
, etc.)Results
If applicable, paste the related results here, e.g., what you expect and what you get.
Issue 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!
The text was updated successfully, but these errors were encountered: