TNTWEN / OpenVINO-YOLOV4

This is implementation of YOLOv4,YOLOv4-relu,YOLOv4-tiny,YOLOv4-tiny-3l,Scaled-YOLOv4 and INT8 Quantization in OpenVINO2021.3
MIT License
238 stars 66 forks source link

Device didn't appear after reboot if I used MYRIAD rather than CPU #59

Open Hsien0802 opened 2 years ago

Hsien0802 commented 2 years ago

I am trying for using NCS2 with openvino_2021.4.752 version. But I get an error about "device didn't appear after reboot", and it can work if I use CPU rather than MYRIAD.

(base) C:\Program Files (x86)\Intel\openvino_2021.4.752\inference_engine\demos\object_detection_demo\python>python object_detection_demo.py  -m C:\Users\Hsien\Desktop\frozen_darknet_yolov4_model.xml -i C:\Users\Hsien\Desktop\OCT_test_ing\yolo_v4\mp\1215539E-2.jpg -d MYRIAD -at yolov4
C:\Users\Hsien\anaconda3\lib\site-packages\win32\lib\pywintypes.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp, sys, os
[ INFO ] Initializing Inference Engine...
[ INFO ] Loading network...
[ INFO ] Reading network from IR...
[ INFO ] Loading network to MYRIAD plugin...
F: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.

F: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.

F: [xLink] [         0] [Scheduler00Thr] dispatcherResponseServe:852       no request for this response: XLINK_WRITE_RESP 1

E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=433

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=433

F: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP

F: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.
E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   
Event sending failedF: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92    
Duplicate id detected.

E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=433
F: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.


E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP

F: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
F: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=433


E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_READ_REL_REQ
F: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.


E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   F: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Event sending failedDuplicate id detected.


F: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467  

WinUsb_WritePipe failed with error:=433
E: [global] [         0] [EventRead00Thr] handleIncomingEvent:665  
Assertion Failed: stream

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP
F: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        
Duplicate id detected.
E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   
Event sending failed
F: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467  

WinUsb_WritePipe failed with error:=433

F: [global] [         0] [EventRead00Thr] dispatcherEventReceive:92        Duplicate id detected.
E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_CREATE_STREAM_REQ


E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_READ_REL_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_CREATE_STREAM_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
E: [ncAPI] [         0] [] checkGraphMonitorResponse:1934  Graph monitor request returned error 556750880

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_READ_REL_REQ
E: [ncAPI] [         0] [] ncFifoAllocate:3081     myriad NACK


E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_RESP

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
E: [ncAPI] [         0] [] checkGraphMonitorResponse:1934  Graph monitor request returned error 228373552

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_READ_REL_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [ncAPI] [         0] [] checkGraphMonitorResponse:1934  Graph monitor request returned error 549973040E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22


E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_READ_REL_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
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
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_READ_REL_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [ncAPI] [         0] [] checkGraphMonitorResponse:1934  Graph monitor request returned error 549972400
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22
E: [ncAPI] [         0] [] checkGraphMonitorResponse:1934  Graph monitor request returned error 553885968

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_READ_REL_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_CLOSE_STREAM_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_WRITE_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_READ_REL_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_CLOSE_STREAM_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [xLinkWinUsb] [         0] [Scheduler00Thr] usb_bulk_write:467
WinUsb_WritePipe failed with error:=22

E: [global] [         0] [Scheduler00Thr] dispatcherEventSend:54   Write failed (header) (err -2) | event XLINK_RESET_REQ

E: [xLink] [         0] [Scheduler00Thr] sendEvents:1132   Event sending failed
E: [ncAPI] [         0] [] ncDeviceClose:1852      Device didn't appear after reboot
TNTWEN commented 2 years ago

I met this before. And i remember openvino offered solutions in official document. That's openvino or intel device's bug,you could also open a question in openvino forum.

Hsien0802 commented 2 years ago

I have reported the issue, appreciate! https://stackoverflow.com/questions/70553690/openvino-yolov4-inference-device-didnt-appear-after-reboot-with-myriad-but-coul