google-coral / edgetpu

Coral issue tracker (and legacy Edge TPU API source)
https://coral.ai
Apache License 2.0
422 stars 125 forks source link

Support Coral USB in WSL2 Docker #623

Open lamaks opened 2 years ago

lamaks commented 2 years ago

Description

I am trying to run Coral USB version on WSL2 in Docker Ubuntu 20.04 container. The USB Coral device is shared using usbipd-win tool. The Coral example works but still getting the error at the end of the detection run. This error prevent using Coral USB with other apps.

Is there any way to resolve this issue in this setup?

Host OS: Windows 10 WSL2: 5.10.102.1-microsoft-standard-WSL2 Docker Image: Ubuntu 20.04 Error: F driver/usb/usb_driver.cc:1148] HandleQueuedBulkIn transfer in failed. Invalid argument: USB transfer error 4 [LibUsbDataInCallback]

# python3 examples/classify_image.py \
--model test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite \
--labels test_data/inat_bird_labels.txt \
--input test_data/parrot.jpg> > >
----INFERENCE TIME----
Note: The first inference on Edge TPU is slow because it includes loading the model into Edge TPU memory.
83.4ms
11.6ms
14.4ms
13.0ms
11.2ms
-------RESULTS--------
Ara macao (Scarlet Macaw): 0.76953
F driver/usb/usb_driver.cc:1148] HandleQueuedBulkIn transfer in failed. Invalid argument: USB transfer error 4 [LibUsbDataInCallback]
Aborted
Click to expand! ### Issue Type Support ### Operating System Ubuntu ### Coral Device USB Accelerator ### Other Devices _No response_ ### Programming Language Python 3.9 ### Relevant Log Output _No response_
Aryankids commented 1 year ago

have the same issue, Is there any way to resolve this issue in this setup, pls?