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

RuntimeError: all tensors must be on devices[0] #118

Open
2429581027 opened this issue Apr 29, 2020 · 1 comment
Open

RuntimeError: all tensors must be on devices[0] #118

2429581027 opened this issue Apr 29, 2020 · 1 comment

Comments

@2429581027
Copy link

2429581027 commented Apr 29, 2020

When I run the code
CUDA_VISIBLE_DEVICES=0,1,2,3 python train.py -c=configs/m2det512_vgg.py --ngpu 4 -t True
There is a error:
RuntimeError: all tensors must be on devices[0]
Does anyone know how to solve it? I tried a lot of methods but they couldn't do it.eg: link Thank you very much!

@2429581027 2429581027 changed the title AttributeError: 'DataParallel' object has no attribute 'model' RuntimeError: all tensors must be on devices[0] Apr 30, 2020
@RoyLeeDongHee
Copy link

RoyLeeDongHee commented May 6, 2020

same error
CUDA_VISIBLE_DEVICES=0,1,2,3,4 python train.py -c=configs/m2det512_vgg.py --ngpu 5 -t True

image

how to train on multi-gpus ?

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

2 participants