Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

[ ERROR ] Following layers are not supported by the plugin for specified device CPU #41

Open
handyzeng opened this issue May 27, 2019 · 5 comments

Comments

@handyzeng
Copy link

Hi, I have a problem with the sample. Would you please help me?

OpenVINO docker,
Ubuntu 1604,
x86_64,

I followed the steps in your script.txt file to generate the *.xml and *.bin file of Yolo-v3 model,
and use python3 to run the sample in /opt/intel/openvino/inference_engine/samples/python_samples/object_detection_demo_yolov3_async
I got error as flowing:

root@9b5f38ae6a55:/opt/intel/openvino/inference_engine/samples/python_samples/object_detection_demo_yolov3_async# python3 object_detection_demo_yolov3_async.py -m frozen_tiny_yolo_v3.xml -i ../../../../deployment_tools/demo/video.mp4 -d CPU
[ INFO ] Loading network files:
frozen_tiny_yolo_v3.xml
frozen_tiny_yolo_v3.bin
[ ERROR ] Following layers are not supported by the plugin for specified device CPU:
detector/yolo-v3-tiny/Conv_9/BiasAdd/YoloRegion, detector/yolo-v3-tiny/ResizeNearestNeighbor, detector/yolo-v3-tiny/Conv_12/BiasAdd/YoloRegion
[ ERROR ] Please try to specify cpu extensions library path in sample's command line parameters using -l or --cpu_extension command line argument

@PINTO0309
Copy link
Owner

Please use CPU Extension with "-l" option.

${HOME}/inference_engine_samples_build/intel64/Release/lib/libcpu_extension.so

https://github.com/PINTO0309/OpenVINO-YoloV3/blob/master/lib/libcpu_extension.so

https://github.com/PINTO0309/OpenVINO-YoloV3/tree/master/cpp#recompile

@handyzeng
Copy link
Author

Please use CPU Extension with "-l" option.

${HOME}/inference_engine_samples_build/intel64/Release/lib/libcpu_extension.so

https://github.com/PINTO0309/OpenVINO-YoloV3/blob/master/lib/libcpu_extension.so

https://github.com/PINTO0309/OpenVINO-YoloV3/tree/master/cpp#recompile

Thanks a lot!
It works well!

@jordanlai
Copy link

Hello: I have a question as follows
Using ncs2 is no problem.
But using the CPU, the error appears as follows:

(openvino) pi@raspberrypi:~/Downloads/OpenVINO-YoloV3-master $ python openvino_tiny-yolov3_test.py -d CPU
videosFPS = 0
Traceback (most recent call last):
File "openvino_tiny-yolov3_test.py", line 238, in
sys.exit(main_IE_infer() or 0)
File "openvino_tiny-yolov3_test.py", line 164, in main_IE_infer
plugin = IEPlugin(device=args.device)
File "ie_api.pyx", line 393, in openvino.inference_engine.ie_api.IEPlugin.cinit
RuntimeError: Cannot find plugin to use :

openvino_tiny-yolov3_test.py
args = build_argparser().parse_args()
model_xml = "/home/pi/Desktop/openvino_out/FP16/yolov3-tiny_best.xml" #<--- CPU
#model_xml = "/home/pi/Desktop/openvino_out/FP16/yolov3-tiny_best.xml" #<--- MYRIAD
model_bin = os.path.splitext(model_xml)[0] + ".bin"

How do I resolve it, thank you!

@PINTO0309
Copy link
Owner

@jordanlai
When using RaspberryPi (when using ARM device), only -d MYRIAD can be specified.

parser.add_argument("-d", "--device", help="Specify the target device to infer on; CPU, GPU, FPGA or MYRIAD is acceptable. \

@jordanlai
Copy link

Hello: I have a question as follows
Using ncs2 is no problem.
But using the CPU, the error appears as follows:

(openvino) pi@raspberrypi:~/Downloads/OpenVINO-YoloV3-master $ python openvino_tiny-yolov3_test.py -d CPU
videosFPS = 0
Traceback (most recent call last):
File "openvino_tiny-yolov3_test.py", line 238, in
sys.exit(main_IE_infer() or 0)
File "openvino_tiny-yolov3_test.py", line 164, in main_IE_infer
plugin = IEPlugin(device=args.device)
File "ie_api.pyx", line 393, in openvino.inference_engine.ie_api.IEPlugin.cinit
RuntimeError: Cannot find plugin to use :

openvino_tiny-yolov3_test.py
args = build_argparser().parse_args()
model_xml = "/home/pi/Desktop/openvino_out/FP16/yolov3-tiny_best.xml" #<--- CPU
#model_xml = "/home/pi/Desktop/openvino_out/FP16/yolov3-tiny_best.xml" #<--- MYRIAD
model_bin = os.path.splitext(model_xml)[0] + ".bin"

How do I resolve it, thank you!

@PINTO0309 I see, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants