KittiSeg
KittiSeg copied to clipboard
OOM problem.
Hello, when I run the demo using
python demo.py --input_image data/demo/demo.png
the following error occurs:
ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[7,7,512,4096] [[Node: save/Assign_27 = Assign[T=DT_FLOAT, _class=["loc:@fc6/weights"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](fc6/weights, save/RestoreV2_27/_25)]]
It seems that my RAM is not large enough. I use my laptop, with 8G RAM and GeForce 940M (1G memory). What is the minimum size required?
Thanks.
my desktop computer :4GB RAM,940M(1GB),and program is running in Virtual Machine,it runs well.
The RAM required is a function of the input image size. What happens when you try a smaller image? Additionally, higher up in the stack trace there should be some info about memory usage to see if all of your RAM is actually being eaten up by demo.py
You need more GPU memory. 2GB should be fine for inference. Training is possible with 8GB. You use the cpu version of tensorflow to run demo.py. 8GB CPU memory will be fine.
@daixiaogang Which version of tensorflow are you using, CPU or GPU?
@RichardChe ,CPU
Hi, How to configure train.py to run in CPU mode only?
you need to install the cpu version of tensorflow.
You can also cutoff GPU access to the script running train.py.