使用 MYRIAD 重启后 OpenVINO YOLOv4 推理设备未出现,但可以使用 CPU

OpenVINO YOLOv4 inference device didn't appear after reboot with MYRIAD but could work with CPU

我的环境是Windows11,版本openvino_2021.4.752。

当我尝试 运行 object_detection_demo.py 在推理引擎的 demos 文件夹中时, N/A 结果将使用 CPU,我稍后会提到的 MYRIAD 问题将发生在我的 NCS2 上。

[ INFO ] Initializing Inference Engine...
[ INFO ] Loading network...
[ INFO ] Reading network from IR...
[ INFO ] Loading network to CPU plugin...
[ INFO ] Starting inference...
To close the application, press 'CTRL+C' here or switch to the output window and press ESC key
Latency: N/A
FPS: N/A

因此,我尝试在 GitHub 上 运行 TNTWEN/OpenVINO-YOLOV4,并且它与 CPU 一起使用很有帮助。

但是,如果我使用 MYRIAD 作为我的推理设备,NCS2 会出现错误 ncDeviceClose:1852 Device didn't appear after reboot

[ INFO ] Initializing Inference Engine...
[ INFO ] Loading network...
[ INFO ] Reading network from IR...
[ INFO ] Loading network to MYRIAD plugin...
[31mF: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.
[0m
[31mF: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.
[0m
[31mF: [xLink] [         0] [Scheduler00Thr] dispatcherResponseServe:852       no request for this response: XLINK_WRITE_RESP 1
[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=433
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=433
[0m
[31mF: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP
[0m
[31mF: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   [0m
Event sending failed[31mF: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92    [0m
Duplicate id detected.
[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=433
[31mF: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.
[0m
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP
[0m
[31mF: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[31mF: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=433
[0m
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_READ_REL_REQ
[31mF: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.
[0m
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   [31mF: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Event sending failedDuplicate id detected.
[0m
[0m
[31mF: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467  [0m

WinUsb_WritePipe failed with error:=433
[35mE: [global] [         0] [EventRead00Thr] handleIncomingEvent:665  [0m
Assertion Failed: stream
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP
[31mF: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        [0m
Duplicate id detected.
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   [0m
Event sending failed[0m
[31mF: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467  [0m

WinUsb_WritePipe failed with error:=433
[0m
[31mF: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_CREATE_STREAM_REQ
[0m
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_READ_REL_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_CREATE_STREAM_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[35mE: [ncAPI] [         0] [] checkGraphMonitorResponse:1934  Graph monitor request returned error 556750880[0m
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_READ_REL_REQ
[35mE: [ncAPI] [         0] [] ncFifoAllocate:3081     myriad NACK
[0m
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[35mE: [ncAPI] [         0] [] checkGraphMonitorResponse:1934  Graph monitor request returned error 228373552[0m
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_READ_REL_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [ncAPI] [         0] [] checkGraphMonitorResponse:1934  Graph monitor request returned error 549973040[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_READ_REL_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
Traceback (most recent call last):
  File "C:\Program Files (x86)\Intel\openvino_2021.4.752\inference_engine\demos\object_detection_demo\python\object_detection_demo.py", line 361, in <module>
    sys.exit(main() or 0)
  File "C:\Program Files (x86)\Intel\openvino_2021.4.752\inference_engine\demos\object_detection_demo\python\object_detection_demo.py", line 250, in main
    detector_pipeline = AsyncPipeline(ie, model, plugin_config,
  File "C:\Program Files (x86)\Intel\openvino_2021.4.752\deployment_tools\open_model_zoo\demos\common\python\pipelines\async_pipeline.py", line 94, in __init__
    self.exec_net = ie.load_network(network=self.model.net, device_name=device,
  File "ie_api.pyx", line 403, in openvino.inference_engine.ie_api.IECore.load_network
  File "ie_api.pyx", line 442, in openvino.inference_engine.ie_api.IECore.load_network
RuntimeError: Failed to create output FIFO: NC_ERROR
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_READ_REL_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [ncAPI] [         0] [] checkGraphMonitorResponse:1934  Graph monitor request returned error 549972400[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[35mE: [ncAPI] [         0] [] checkGraphMonitorResponse:1934  Graph monitor request returned error 553885968[0m
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_READ_REL_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_CLOSE_STREAM_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_READ_REL_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_CLOSE_STREAM_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
[0m
[35mE: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_RESET_REQ
[0m
[35mE: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed[0m
[35mE: [ncAPI] [         0] [] ncDeviceClose:1852      Device didn't appear after reboot[0m

我认为这是使用 NCS2 的 YOLOv4 的错误。

毕竟,我可以使用我的 CPU 在此 GitHub 实现中成功完成 YOLOv4 推理工作,其中 object_detection_demo_yolov3_async.py 2021.3 pythondemo文件夹.

此问题(运行 带有对象检测的 YOLOv4 模型 Python MYRIAD 设备上的演示)是 OpenVINO 2021.4.752 中的一个已知错误。我们的开发人员正在修复它。
另一方面,我已经使用对象检测 C++ 演示验证了 YOLOv4 模型,它运行良好。现在,请使用对象检测 C++ 演示作为替代演示。