holy-edge icon indicating copy to clipboard operation
holy-edge copied to clipboard

Memory

Open WangZhouTao opened this issue 7 years ago • 10 comments

hello, I am a student.recently,I am reading the HED paper. I found that your code is very interesting,but some error is happened when I try to train the model with my own data.Error message show that Memory error.My computer in-build 32GB memory, would you give me some suggestion.Think you very much.

WangZhouTao avatar Dec 17 '17 08:12 WangZhouTao

my GPU only has 6G memory which is fine to run the code. dont know your setting

CangHaiQingYue avatar Dec 18 '17 12:12 CangHaiQingYue

Sorry,I forgot to tell you.I use 1080ti GPU and 32GB memory.I can run your code with my own data.But Memory error is happened when the iteration is about 13000.I obverse top command in ubuntu, i find Memory is insufficient(not gpu memory, is computer memory).If you could tell me some suggestion,I really appreciate what you’ve done。

WangZhouTao avatar Dec 18 '17 13:12 WangZhouTao

Sorry, I have not had such error. This code will save a checkpoint each 100 steps, maybe 13000 is too big in your dataset( I trained at 30000 steps without memory error).

CangHaiQingYue avatar Dec 18 '17 13:12 CangHaiQingYue

I already changed to save a checkpoint with each 1000 steps, but the error is still happen.Did you run this code on windows? Thank you.

WangZhouTao avatar Dec 19 '17 07:12 WangZhouTao

I run it on Ubuntu 16.04.

CangHaiQingYue avatar Dec 19 '17 07:12 CangHaiQingYue

Could you please give details of your data-set ? It might be the case that your image sizes are quite large and since the VGG base model is full convolutional the intermediate representations overflow they GPU memory.

sandhawalia avatar Dec 21 '17 10:12 sandhawalia

I also encountered the same problem with you, my server configuration is 8 Tesla p20, memory is 512G. Even with this configuration, memory error occurs after approximately 13,000 iterations during training. Will you solve the problem?@CangHaiQingYue

wutachiang avatar May 28 '18 06:05 wutachiang

@Jasontachiangwu Well, when I cancelled the 'summary_write' operator, this problem was gone. So I guess there maybe some bug in 'summary'. You may rebuild your own code.

CangHaiQingYue avatar May 28 '18 09:05 CangHaiQingYue

@CangHaiQingYue,After I updated the tensorflow version to r1.8, no problem was found after training. It may be that there is a bug in the summary.

wutachiang avatar May 29 '18 08:05 wutachiang

with same code on windows 10 and ubuntu 16.04, tensorflow v1.4.0, 20000 iterations: memory error occurs in ubuntu 16.04 while no error occurs in windows 10

yuezhilanyi avatar Jun 26 '18 01:06 yuezhilanyi