Hello, I am using the openvino_2019.2.242 toolkit and trying to run a GAN exported from Keras to ONNX and then converted to IR on the Intel Neural Compute Stick 2. I am trying to run it using the benchmark_app, in both it's compiled and Python versions.
The model runs on the CPU, but fails when I try to run it on the NCS2 (using the -d MYRIAD option):
python benchmark_app.py -m /home/tzeny/Other/Projects/XVision/Benchmarks/BogdanKerasONNX/OpenVinoFP16/bogdan_onlyh5.xml -d MYRIAD [Step 1/11] Parsing and validating input arguments [Step 2/11] Loading Inference Engine [ INFO ] InferenceEngine: 2.0.custom_releases/2019/R2_f5827d4773ebbe727c9acac5f007f7d94dd4be4e [ INFO ] Device is MYRIAD MYRIAD myriadPlugin............ version 2.0 Build................... 27579 [Step 3/11] Read the Intermediate Representation of the network [Step 4/11] Resizing network to match image sizes and given batch [ INFO ] Network batch size: 1, precision MIXED [Step 5/11] Configuring input of the model [Step 6/11] Setting device configuration [Step 7/11] Loading the model to the device [Info ][VPU][MyriadPlugin] Device #0 MYRIAD-X (USB protocol) allocated E: [xLink] [ 395328] [EventRead00Thr] handleIncomingEvent:267 handleIncomingEvent() Read failed (err -4) E: [xLink] [ 395328] [Scheduler00Thr] dispatcherEventSend:923 Write failed (event) (err -4) E: [xLink] [ 395328] [EventRead00Thr] dispatcherEventReceive:336 dispatcherEventReceive() Read failed (err -4) | event 0x7fc94e701e40 XLINK_WRITE_REQ E: [xLink] [ 395328] [EventRead00Thr] eventReader:223 eventReader thread stopped (err -4) E: [xLink] [ 395328] [python] XLinkReadDataWithTimeOut:1323 Event data is invalid E: [ncAPI] [ 395328] [python] ncGraphAllocate:1911 Can't read input tensor descriptors of the graph, rc: X_LINK_ERROR E: [watchdog] [ 395328] [WatchdogThread] sendPingMessage:120 Failed send ping message: X_LINK_ERROR [ ERROR ] Failed to allocate graph: NC_ERROR Traceback (most recent call last): File "/opt/intel/openvino_2019.2.242/deployment_tools/inference_engine/samples/python_samples/benchmark_app/benchmark/benchmark.py", line 193, in main num_requests=args.number_infer_requests if args.number_infer_requests else 0) File "ie_api.pyx", line 85, in openvino.inference_engine.ie_api.IECore.load_network File "ie_api.pyx", line 92, in openvino.inference_engine.ie_api.IECore.load_network RuntimeError: Failed to allocate graph: NC_ERROR W: [ncAPI] [ 395342] [python] ncDeviceClose:1629 Failed to close stream, rc: X_LINK_ERROR W: [ncAPI] [ 395342] [python] ncDeviceClose:1635 Failed to close stream, rc: X_LINK_ERROR W: [ncAPI] [ 395342] [python] ncDeviceClose:1647 Failed to reset, rc: X_LINK_ERROR
I tried running another model (a basic densenet121) on the NCS2 and it worked. Do you have any idea what I'm doing wrong?