-
Notifications
You must be signed in to change notification settings - Fork 124
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
train.py is using cpu instead of gpu #75
Comments
@iamnaazib , you can add your gpu id(s) here: https://github.com/minar09/cp-vton-plus/blob/master/train.py#L21 as |
I did that but its still using cpu idk why its doing that. A single image is taking 3-4 hours to train. Can I know which hardware you used to train your dataset?? |
@iamnaazib, please check your GPU drivers and environments maybe. We used TITAN Xp GPUs for our experiments. |
have checked and there doesn't seem to be any issue with the drivers and environments |
could you still tell me what are the driver and environment requirements for a nvidia graphics card to run this training |
the gpu spikes to 100% usage at the start but doesn't get used anymore |
I think you can first check if pytorch can access your gpus. For example, please check this: https://stackoverflow.com/questions/48152674/how-to-check-if-pytorch-is-using-the-gpu or this: https://discuss.pytorch.org/t/torch-cuda-is-available-is-true-while-i-am-using-the-gpu/29470 |
after I started the train.py with this command:
python train.py --name GMM --stage GMM --workers 1 --save_count 5000 --shuffle
and after 1000 steps, this is the cpu and gpu usage:
what can I do to solve this? I want to train using my gpu
The text was updated successfully, but these errors were encountered: