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

How to train on only one GPU? #12

Open
carshadi opened this issue Dec 24, 2018 · 2 comments
Open

How to train on only one GPU? #12

carshadi opened this issue Dec 24, 2018 · 2 comments

Comments

@carshadi
Copy link

Hello,
Which parameters do I need to change to make this train and evaluate on one GPU?
I am currently getting an OOM Resource Exhausted Error when i try to train on one GTX 1080.
I tried setting num_towers=1 in train_imagenet.py but this did not help.

@carshadi
Copy link
Author

Also tried reducing the batch size to 32,16,etc but the program got stuck before even starting to iterate

@ArashHosseini
Copy link

ArashHosseini commented Feb 20, 2019

@carshadi, hi

session_config = tf.ConfigProto(

did you try config.gpu_options.allow_growth=True ? or config.gpu_options.per_process_gpu_memory_fraction = 0.4

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