Skip to content
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

'ConfigDict' object has no attribute 'device' #43

Open
jongwoopark7978 opened this issue Jun 13, 2022 · 0 comments
Open

'ConfigDict' object has no attribute 'device' #43

jongwoopark7978 opened this issue Jun 13, 2022 · 0 comments

Comments

@jongwoopark7978
Copy link

jongwoopark7978 commented Jun 13, 2022

Hi,

I run train.py and get the error below

tools/dist_train.sh /home_shared/jongwoo/detr3d/projects/configs/detr3d/detr3d_res101_gridmask.py 8

Traceback (most recent call last): File "tools/train.py", line 248, in <module> main() File "tools/train.py", line 237, in main train_model( File "/home_shared/jongwoo/detr3d/mmdetection3d/mmdet3d/apis/train.py", line 28, in train_model train_detector( File "/home_shared/jongwoo/miniconda3/envs/cuda11_1/lib/python3.8/site-packages/mmdet/apis/train.py", line 158, in train_detector cfg.device, File "/home_shared/jongwoo/miniconda3/envs/cuda11_1/lib/python3.8/site-packages/mmcv/utils/config.py", line 48, in __getattr__ raise ex **AttributeError: 'ConfigDict' object has no attribute 'device'**

I am using Ubuntu 18.04.5 LTS and I train with a single node and 8 GPUs. This device issue happens only when I run training.

I can run dist_test.sh without any problem. I can successfully run the following code.

nohup tools/dist_test.sh /home_shared/jongwoo/detr3d/projects/configs/detr3d/detr3d_res101_gridmask.py /home_shared/jongwoo/detr3d/pretrain_weight/detr3d_resnet101.pth 8 --eval=bbox &

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant