PINTO0309 / OpenVINO-YoloV3

YoloV3/tiny-YoloV3+RaspberryPi3/Ubuntu LaptopPC+NCS/NCS2+USB Camera+Python+OpenVINO
https://qiita.com/PINTO
Apache License 2.0
538 stars 167 forks source link

tiny yolo one NCS runtime error #44

Closed accateo closed 5 years ago

accateo commented 5 years ago

Hi, I'm working on Raspberry Pi3 Model B+ with a Raspbian OS and armv71 architecture. When I run:

python3 openvino_yolov3_MultiStick_test.py -numncs 1

all works well, but when I run:

python3 openvino_tiny-yolov3_MultiStick_test.py -numncs 1

I have this error:

Process Process-1: Traceback (most recent call last): File "/usr/lib/python3.5/multiprocessing/process.py", line 249, in _bootstrap self.run() File "/usr/lib/python3.5/multiprocessing/process.py", line 93, in run self._target(*self._args, **self._kwargs) File "/home/dev/aing/yolo/OpenVINO-YoloV3-master/openvino_tiny-yolov3_MultiStick_test.py", line 352, in inferencer thworker = threading.Thread(target=async_infer, args=(NcsWorker(devid, frameBuffer, results, camera_width, camera_height, number_of_ncs, vidfps),)) File "/home/dev/aing/yolo/OpenVINO-YoloV3-master/openvino_tiny-yolov3_MultiStick_test.py", line 261, in __init__ self.net = IENetwork(model=self.model_xml, weights=self.model_bin) File "ie_api.pyx", line 271, in openvino.inference_engine.ie_api.IENetwork.__cinit__ RuntimeError: segment exceeds given buffer limits. Please, validate weights file

the streaming window is open with no rectangle around the object, so no inference. Any idea? Thanks

PINTO0309 commented 5 years ago

As the error message indicates, the only way is to review the weights file (.bin).

accateo commented 5 years ago

Ok, but I'm using the same xml and bin file of your repository... The tiny-yolo bin is smaller than the yolo one, and the command:

python3 openvino_yolov3_test.py

works correctly.

accateo commented 5 years ago

Ok, i found the error. I don't know why but I have some smaller bin that doesn't work with your script. Now i re-downloaded the weights and the xml and all it works. Thanks