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

RuntimeError: CUDA error: out of memory #9

Open
bdus opened this issue Jun 26, 2019 · 2 comments
Open

RuntimeError: CUDA error: out of memory #9

bdus opened this issue Jun 26, 2019 · 2 comments

Comments

@bdus
Copy link

bdus commented Jun 26, 2019

change:

gpu_options = tf.GPUOptions(per_process_gpu_memory_fraction=1.0)
[via]

into :

gpu_options = tf.GPUOptions(per_process_gpu_memory_fraction=0.9)
config = tf.ConfigProto(allow_soft_placement=True, gpu_options=gpu_options)
config.gpu_options.allow_growth = True
@shenGrant
Copy link

想问一下 这个问题解决了吗 我是运行demo的时候加载预训练参数 gpu 显存不够了

@guess3w
Copy link

guess3w commented Aug 30, 2019

@shenGrant 像上面这兄弟说的,将text_detect.py中gpu_options = tf.GPUOptions(per_process_gpu_memory_fraction=0.9)这个比例改小点,我的显示是TITAN V,改为了0.6,内存不溢出了。

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