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 about GPU? #7

Open
Airotong opened this issue Jun 29, 2017 · 5 comments
Open

How about GPU? #7

Airotong opened this issue Jun 29, 2017 · 5 comments

Comments

@Airotong
Copy link

I could run these code in my cpu tensorflow, but the training time is quite long. So I downloaded GPU tensorflow and wanted to run model_RGB.py again, but there were many peoblems. The most biggest problem is ResourceExhaustedError:OMM when allocating tensor with shape[3000,4000].
I want to know if these codes just for CPU? And we cannot simply apply them to GPU environment?
Thank you for your reply! I am new to video description.

@siyilingting
Copy link

Hi, @Airotong , I have encountered a similar situation. Is this problem solved?

@knwng
Copy link

knwng commented Nov 17, 2017

ResourceExhaustedError means you don't have enough GPU memory, you can try to use smaller data shape or upgrade your GPU

@Airotong
Copy link
Author

How could I set the data size? I used smaller batch_size, but it lead to the same problem.

@siyilingting
Copy link

@Airotong You can try this. train_op = tf.train.AdamOptimizer(learning_rate).minimize(tf_loss,aggregation_method=tf.AggregationMethod.EXPERIMENTAL_ACCUMULATE_N)
or
train_op = tf.train.AdamOptimizer(learning_rate).minimize(tf_loss, aggregation_method=tf.AggregationMethod.EXPERIMENTAL_TREE)
Maybe can solve your problem.

@Airotong
Copy link
Author

Thank you for your reply!
But I still met the same problem though I usedtrain_op = tf.train.AdamOptimizer(learning_rate).minimize(tf_loss,aggregation_method=tf.AggregationMethod.EXPERIMENTAL_ACCUMULATE_N) or train_op = tf.train.AdamOptimizer(learning_rate).minimize(tf_loss, aggregation_method=tf.AggregationMethod.EXPERIMENTAL_TREE)

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