EdjeElectronics / TensorFlow-Object-Detection-on-the-Raspberry-Pi

A tutorial showing how to set up TensorFlow's Object Detection API on the Raspberry Pi
Apache License 2.0
1.14k stars 365 forks source link

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

Open alexandrugai opened 5 years ago

alexandrugai commented 5 years ago

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

chunyinlai1997 commented 5 years ago

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

B0B234 commented 5 years ago

@chunyinlai1997 question where do you change the batch size?

chunyinlai1997 commented 5 years ago

@B0B234 change it in the configuration file.

iAshishVerma commented 5 years ago

where is config file?