edgetpu icon indicating copy to clipboard operation
edgetpu copied to clipboard

Support Coral USB in WSL2 Docker

Open lamaks opened this issue 3 years ago • 1 comments

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

lamaks avatar Jul 04 '22 20:07 lamaks

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

Aryankids avatar Oct 25 '22 13:10 Aryankids