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

Can't training with GPU #259

Closed
lovekittynine opened this issue Nov 20, 2019 · 9 comments
Closed

Can't training with GPU #259

lovekittynine opened this issue Nov 20, 2019 · 9 comments

Comments

@lovekittynine
Copy link

In the version of pytorch 1.3.1, OsNet can't train with GPU, report CUDA out of memory, but the gpu is not occupied。Bug?

@lovekittynine
Copy link
Author

even set bs=1, also report CUDA out of memor

@KaiyangZhou
Copy link
Owner

what's the full command line to reproduce ur error?

pls provide more info such as system ...

@ljx6666
Copy link

ljx6666 commented Nov 27, 2019

I have the same problem, my computer system is linux, and the processor is AMD FX(tm)-8150 Eight-Core Processor *8,please help me! Thank you !

@KaiyangZhou
Copy link
Owner

@lovekittynine did you find what's going on?

@ljx6666
Copy link

ljx6666 commented Nov 27, 2019

My video card is GTX1080ti with 11G . I only have this one. Is there not enough video memory?

@KaiyangZhou
Copy link
Owner

@ljx6666 are you using scripts/main.py to run the code? if so, what's the full command you used?

@lovekittynine
Copy link
Author

@KaiyangZhou @ljx6666 maybe you can try train with script: CUDA_VISIBLE_DEVICES=0 python3 train.py,explictly set GPU

@ljx6666
Copy link

ljx6666 commented Dec 11, 2019 via email

@KaiyangZhou
Copy link
Owner

please note that in the latest commit, you need to explicitly set CUDA_VISIBLE_DEVICES

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

3 participants