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

Multi GPU training #43

Open
mauku opened this issue Mar 22, 2021 · 2 comments
Open

Multi GPU training #43

mauku opened this issue Mar 22, 2021 · 2 comments

Comments

@mauku
Copy link

mauku commented Mar 22, 2021

Hello,

I am currently training to run your training script for single view pose estimation model on multi GPU. I can run the script on 1 GPU and it trains as expected. However, when i try to run the script with the steps described in section "Note on GPU parallelization", i get the following error:

File "../cosypose/cosypose/utils/multiepoch_dataloader.py", line 44, in next
idx, batch = self.dataloader_iter._get_data()
AttributeError: '_DataLoaderIter' object has no attribute '_get_data'

Would be thankfull for any help.
Thanks in advance !

@hannes56a
Copy link

hannes56a commented Oct 15, 2021

Hi,
same problem. It worked for me until I updated my GPU to RTX3080ti and have to update nvidia driver, cuda, cudnn, pytorch, ...

Does anyone succesfully updated all these stuff??

@hannes56a
Copy link

Hey, I found a solution for me. I setted the "N_WORKERS" to 0 for some debug case and forgot to set it back. So the iterator runs over "_SingleProcessDataLoaderIter" instead of "_MultiProcessDataLoaderIter" (torch.utils.data.dataloader), which has no "_get_data".
So, after setting "N_WORKERS" back to standard ("min(N_CPUS - 2, 8)") this failure was gone.

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