TensorFlow-Object-Detection-on-the-Raspberry-Pi icon indicating copy to clipboard operation
TensorFlow-Object-Detection-on-the-Raspberry-Pi copied to clipboard

Allocation of 2764800 exceeds 10% of system memory - error. any help?

Open alexandrugai opened this issue 6 years ago • 4 comments
trafficstars

pi@raspberrypi:~/tensorflow1/models/research/object_detection $ python3 Object_detection_picamera.py --usbcam 2019-02-01 01:25:45.681330: W tensorflow/core/framework/allocator.cc:122] Allocation of 2764800 exceeds 10% of system memory. 2019-02-01 01:25:47.063722: W tensorflow/core/framework/allocator.cc:122] Allocation of 2795520 exceeds 10% of system memory. 2019-02-01 01:25:48.364439: W tensorflow/core/framework/allocator.cc:122] Allocation of 2795520 exceeds 10% of system memory. 2019-02-01 01:25:49.651463: W tensorflow/core/framework/allocator.cc:122] Allocation of 2795520 exceeds 10% of system memory. 2019-02-01 01:25:51.249713: W tensorflow/core/framework/allocator.cc:122] Allocation of 2795520 exceeds 10% of system memory. : cannot connect to X server

alexandrugai avatar Jan 31 '19 23:01 alexandrugai

Hi, I tried to reduce the batch size in config to "batch_size: 1" and it works for me

chunyinlai1997 avatar Mar 21 '19 03:03 chunyinlai1997

@chunyinlai1997 question where do you change the batch size?

B0B234 avatar May 15 '19 17:05 B0B234

@B0B234 change it in the configuration file.

chunyinlai1997 avatar May 16 '19 02:05 chunyinlai1997

where is config file?

iAshishVerma avatar May 16 '19 07:05 iAshishVerma