PSPNet-tensorflow icon indicating copy to clipboard operation
PSPNet-tensorflow copied to clipboard

OOM when allocating tensor with shape

Open TingZhang08 opened this issue 7 years ago • 4 comments

Hi, thank you very much for contributing this codes.

However, when I evaluate with ade20k dataset, I got the error:

"OOM when allocating tensor with shape"

I'm using two Tesla K40c with total memory 12G.

Could you help me?

Thank you in advance!

TingZhang08 avatar Feb 05 '18 01:02 TingZhang08

I have solved my problem by changing

config.gpu_options.allow_growth = True

with

config.gpu_options.allow_growth = 0.9

Thanks for your contribution.

TingZhang08 avatar Feb 05 '18 03:02 TingZhang08

Hey, I get a same issue while training on cityscapes. I tried your solution but it doesn't work, any help would be appreciated.

rahul411 avatar Apr 09 '18 03:04 rahul411

change BATCH_SIZE = 1 in train.py

ybxbupt avatar Nov 14 '18 02:11 ybxbupt

hi, I had the same problem with inference.py I tried changing "config.gpu_options.allow_growth = True" to "config.gpu_options.allow_growth = 0.9" but I get a TypeError how can i change the BATCH_SIZE ?or any other solutions? Thank you.

yacineDZ44 avatar Dec 13 '18 10:12 yacineDZ44