Closed norton-chris closed 2 years ago
@norton-chris can you please try these and paste the logs here.
Thanks
@hjonnala Yep, here's the logs:
Python 3.8.12 (default, Oct 12 2021, 03:01:40) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pycoral.pybind._pywrap_coral import SetVerbosity as set_verbosity
>>> set_verbosity(10)
True
>>> import argparse
>>> import time
>>> import numpy as np
>>> from PIL import Image
>>> from pycoral.adapters import classify
>>> from pycoral.adapters import common
>>> from pycoral.utils.dataset import read_label_file
>>> from pycoral.utils.edgetpu import make_interpreter
>>> labels = read_label_file("pycoral/test_data/inat_bird_labels.txt")
>>> interpreter = make_interpreter(["pycoral/test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite"])
I tflite/edgetpu_manager_direct.cc:453] No matching device is already opened for shared ownership.
I driver/usb/local_usb_device.cc:944] EnumerateDevices: vendor:0x1a6e, product:0x89a
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:998] EnumerateDevices: found [/sys/bus/usb/devices/1-14]
I driver/usb/local_usb_device.cc:944] EnumerateDevices: vendor:0x18d1, product:0x9302
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[14]
I driver/beagle/beagle_usb_driver_provider.cc:218] Enumerate: adding path [/sys/bus/usb/devices/1-14]
I driver/driver_factory_windows.cc:29] DriverFactoryWin::EnumerateByClass()...
I driver/driver_factory_windows.cc:75] DriverFactoryWin::EnumerateByClass returns empty list.
I tflite/edgetpu_manager_direct.cc:471] No device of type Apex (PCIe) is available.
I tflite/edgetpu_context_direct.cc:106] USB always DFU: False (default)
I tflite/edgetpu_context_direct.cc:147] USB bulk-in queue capacity: 8
I tflite/edgetpu_context_direct.cc:63] Performance expectation: High when USB connected EdgeTpu is throttled
I driver/usb/usb_driver.cc:1383] Open device and check if DFU is needed
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/1-14]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:1081] OpenDevice: device opened 00000265E4070170
I driver/usb/local_usb_device.cc:184] LocalUsbDevice
I driver/usb/usb_standard_commands.cc:36] UsbStandardCommands
I driver/usb/usb_dfu_commands.cc:37] UsbDfuCommands
I driver/usb/usb_standard_commands.cc:43] GetDeviceDescriptor
I driver/usb/local_usb_device.cc:398] GetDescriptor
I driver/usb/usb_standard_commands.cc:78] Vender ID: 0x1a6e
I driver/usb/usb_standard_commands.cc:79] Product ID: 0x89a
I driver/usb/usb_driver.cc:1417] Device is in DFU mode
I driver/usb/usb_driver.cc:1422] Resetting device
I driver/usb/local_usb_device.cc:243] Close: closing device 00000265E4070170
I driver/usb/local_usb_device.cc:216] DoCancelAllTransfers: cancelling 0 async transfers
I driver/usb/local_usb_device.cc:224] DoCancelAllTransfers: waiting for all async transfers to complete
I driver/usb/local_usb_device.cc:234] DoCancelAllTransfers: all async transfers have completed
I driver/usb/local_usb_device.cc:276] Close: releasing 0 transfer buffers
I driver/usb/local_usb_device.cc:289] Close: performing graceful reset
(tf-3.8) C:\Users\chris\OneDrive\Documents\RSE\norts-ai>
Is it the same model (mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite) you are not getting print statements after make_interpreter call or a different model. If its different model, can you please share the model.
Also, are you working with custom build libraries or pre build ones?
Using a custom model, but just tried that model and I get the same results.
Here's the code snippet I'm running:
print("make interpreter", args.model)
interpreter = edgetpu.make_interpreter("pycoral/test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite")
#interpreter = make_interpreter("model.tflite@:0")
print("allocate_tensors")
interpreter.allocate_tensors()
It would hit make interpreter and stall and then quit after a 10 seconds or so.
I'm actually seeing this error that was previously in a try except so I took that out and got this error.
ImportError: generic_type: type "InterpreterWrapper" is already registered!
However another thing that is weird, if I run the semantic_segmentation.py file in the examples. It runs and give that same output (if verbosity is set, else it does nothing) and then just quits.
Here's that output:
(tf-3.8) C:\Users\chris\OneDrive\Documents\RSE\pycoral>python examples/semantic_segmentation.py --model test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite --input test_data/bird.bmp --keep_aspect_ratio --output segmentation_result.jpg
I driver/usb/local_usb_device.cc:944] EnumerateDevices: vendor:0x1a6e, product:0x89a
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:998] EnumerateDevices: found [/sys/bus/usb/devices/1-14]
I driver/usb/local_usb_device.cc:944] EnumerateDevices: vendor:0x18d1, product:0x9302
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[14]
I driver/beagle/beagle_usb_driver_provider.cc:218] Enumerate: adding path [/sys/bus/usb/devices/1-14]
I driver/driver_factory_windows.cc:29] DriverFactoryWin::EnumerateByClass()...
I driver/driver_factory_windows.cc:75] DriverFactoryWin::EnumerateByClass returns empty list.
I tflite/edgetpu_manager_direct.cc:453] No matching device is already opened for shared ownership.
I driver/usb/local_usb_device.cc:944] EnumerateDevices: vendor:0x1a6e, product:0x89a
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:998] EnumerateDevices: found [/sys/bus/usb/devices/1-14]
I driver/usb/local_usb_device.cc:944] EnumerateDevices: vendor:0x18d1, product:0x9302
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[14]
I driver/beagle/beagle_usb_driver_provider.cc:218] Enumerate: adding path [/sys/bus/usb/devices/1-14]
I driver/driver_factory_windows.cc:29] DriverFactoryWin::EnumerateByClass()...
I driver/driver_factory_windows.cc:75] DriverFactoryWin::EnumerateByClass returns empty list.
I tflite/edgetpu_context_direct.cc:106] USB always DFU: False (default)
I tflite/edgetpu_context_direct.cc:147] USB bulk-in queue capacity: 8
I tflite/edgetpu_context_direct.cc:63] Performance expectation: High when USB connected EdgeTpu is throttled
I driver/usb/usb_driver.cc:1383] Open device and check if DFU is needed
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/1-14]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:1081] OpenDevice: device opened 000001B47CC9D250
I driver/usb/local_usb_device.cc:184] LocalUsbDevice
I driver/usb/usb_standard_commands.cc:36] UsbStandardCommands
I driver/usb/usb_dfu_commands.cc:37] UsbDfuCommands
I driver/usb/usb_standard_commands.cc:43] GetDeviceDescriptor
I driver/usb/local_usb_device.cc:398] GetDescriptor
I driver/usb/usb_standard_commands.cc:78] Vender ID: 0x1a6e
I driver/usb/usb_standard_commands.cc:79] Product ID: 0x89a
I driver/usb/usb_driver.cc:1417] Device is in DFU mode
I driver/usb/usb_driver.cc:1422] Resetting device
I driver/usb/local_usb_device.cc:243] Close: closing device 000001B47CC9D250
I driver/usb/local_usb_device.cc:216] DoCancelAllTransfers: cancelling 0 async transfers
I driver/usb/local_usb_device.cc:224] DoCancelAllTransfers: waiting for all async transfers to complete
I driver/usb/local_usb_device.cc:234] DoCancelAllTransfers: all async transfers have completed
I driver/usb/local_usb_device.cc:276] Close: releasing 0 transfer buffers
I driver/usb/local_usb_device.cc:289] Close: performing graceful reset
(tf-3.8) C:\Users\chris\OneDrive\Documents\RSE\pycoral>
can you please share the below information:
Python 3.9.7 (default, Sep 3 2021, 06:18:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> import tflite_runtime as tflite
>>> import pycoral
>>> from pycoral.utils.edgetpu import get_runtime_version
>>> get_runtime_version()
'BuildLabel(COMPILER=6.3.0 20170516,DATE=redacted,TIME=redacted), RuntimeVersion(14)'
>>> numpy.__version__
'1.19.5'
>>> tflite.__version__
'2.5.0.post1'
>>> pycoral.__version__
'2.0.0'
>>>
Yes, here are the logs:
Python 3.8.12 (default, Oct 12 2021, 03:01:40) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> import tflite_runtime as tflite
>>> import pycoral
>>> from pycoral.utils.edgetpu import get_runtime_version
>>> get_runtime_version()
'BuildLabel(COMPILER=MSVC 192528612,DATE=Jul 20 2021,TIME=14:31:41), RuntimeVersion(14)'
>>> numpy.__version__
'1.20.3'
>>> tflite.__version__
'2.5.0.post1'
>>> pycoral.__version__
'2.0.0'
>>>
on windows edgetpu runtime 14(edgetpu_runtime_20210726.zip) is not working. Can you try with edgetpu_runtime_20210119.zip from https://coral.ai/software/#edgetpu-runtime
Downloaded and installed. Checked to make sure it installed correctly:
Python 3.8.12 (default, Oct 12 2021, 03:01:40) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pycoral
>>> import numpy
>>> import tflite_runtime as tflite
>>> from pycoral.utils.edgetpu import get_runtime_version
>>> get_runtime_version()
'BuildLabel(COMPILER=MSVC 192628805,DATE=Nov 4 2020,TIME=11:05:43), RuntimeVersion(13)'
>>>
Got the same error with my script though:
Traceback (most recent call last):
File "coral_inference1.py", line 38, in <module>
from pycoral.utils import edgetpu
File "C:\Users\chris\AppData\Local\Continuum\anaconda3\envs\tf-3.8\lib\site-packages\pycoral\utils\edgetpu.py", line 32, in <module>
import tflite_runtime.interpreter as tflite
File "C:\Users\chris\AppData\Local\Continuum\anaconda3\envs\tf-3.8\lib\site-packages\tflite_runtime\interpreter.py", line 42, in <module>
from tflite_runtime import _pywrap_tensorflow_interpreter_wrapper as _interpreter_wrapper
ImportError: generic_type: type "InterpreterWrapper" is already registered!
Can you please share the all import statements from coral_inference1.py
.
Here are the imports from coral_inference1.py
from pycoral.pybind._pywrap_coral import SetVerbosity as set_verbosity
set_verbosity(10)
import argparse
import platform
from array import array
import numpy as np
from PIL import Image
import cv2
import time
import tensorflow as tf
from pycoral.adapters import common
from pycoral.adapters import segment
from pycoral.utils import edgetpu
which tensorflow version are you using?
2.6.0
>>> import tensorflow
>>> print(tensorflow.__version__)
2.6.0
Can you please add try and except block at this line and try your script.
You can find this script here: tf-3.8\lib\site-packages\tensorflow\lite\python\interpreter.py
import argparse
import platform
from array import array
import numpy as np
from PIL import Image
import cv2
import time
from pycoral.adapters import common
from pycoral.adapters import segment
from pycoral.utils import edgetpu
import tensorflow as tf
Doesn't look like it's going into tf-3.8\lib\site-packages\tensorflow\lite\python\interpreter.py , it's going into tf-3.8\lib\site-packages\tflite_runtime\interpreter.py
Also the error is coming from line: from tflite_runtime import _pywrap_tensorflow_interpreter_wrapper as _interpreter_wrapper
not from tensorflow.lite.python.interpreter_wrapper import _pywrap_tensorflow_interpreter_wrapper as _interpreter_wrapper
I put a try except on both files and both lines and got this output:
(tf-3.8) C:\Users\chris\OneDrive\Documents\RSE\norts-ai>python coral_inference1.py
error at: /mnt/c/Users/chris/AppData/Local/Continuum/anaconda3/envs/tf-3.8/lib/site-packages/tflite_runtime/interpreter.py
generic_type: type "InterpreterWrapper" is already registered!
starting main
make interpreter model.tflite@:0
I tflite/edgetpu_manager_direct.cc:453] No matching device is already opened for shared ownership.
I driver/usb/local_usb_device.cc:944] EnumerateDevices: vendor:0x1a6e, product:0x89a
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:998] EnumerateDevices: found [/sys/bus/usb/devices/1-14]
I driver/usb/local_usb_device.cc:944] EnumerateDevices: vendor:0x18d1, product:0x9302
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[14]
I driver/beagle/beagle_usb_driver_provider.cc:218] Enumerate: adding path [/sys/bus/usb/devices/1-14]
I driver/driver_factory_windows.cc:29] DriverFactoryWin::EnumerateByClass()...
I driver/driver_factory_windows.cc:75] DriverFactoryWin::EnumerateByClass returns empty list.
I tflite/edgetpu_manager_direct.cc:471] No device of type Apex (PCIe) is available.
I tflite/edgetpu_context_direct.cc:104] USB always DFU: False (default)
I tflite/edgetpu_context_direct.cc:145] USB bulk-in queue capacity: 8
I tflite/edgetpu_context_direct.cc:65] Performance expectation: Max (default)
I driver/usb/usb_driver.cc:1386] Open device and check if DFU is needed
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/1-14]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:60] ConvertLibUsbError: USB error -99 [OpenDevice]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/1-14]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:60] ConvertLibUsbError: USB error -99 [OpenDevice]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/1-14]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:60] ConvertLibUsbError: USB error -99 [OpenDevice]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/1-14]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:60] ConvertLibUsbError: USB error -99 [OpenDevice]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/1-14]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:60] ConvertLibUsbError: USB error -99 [OpenDevice]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/1-14]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:60] ConvertLibUsbError: USB error -99 [OpenDevice]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/1-14]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:60] ConvertLibUsbError: USB error -99 [OpenDevice]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/1-14]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[14]
and it doesn't seem to end, just keeps repeating the USB error. I have the USB accelerator connected and the light it on, so not sure what the problem is.
@norton-chris Please share the output of below commands after trying to run the demo:
@norton-chris the issue is conflict between tensorflow (_interpreter_wrapper) and tflite_runtime (_interpreter_wrapper). Please try the pycoal imports first and then import tensorflow after adding try and except block at this line.
import argparse
import platform
from array import array
import numpy as np
from PIL import Image
import cv2
import time
from pycoral.adapters import common
from pycoral.adapters import segment
from pycoral.utils import edgetpu
import tensorflow as tf
@norton-chris Please share the output of below commands after trying to run the demo:
- lsusb
- dmesg
@manoj7410 Here are the outputs:
root@Chris-Huawei:/mnt/c/Users/chris/OneDrive/Documents/RSE# lsusb
root@Chris-Huawei:/mnt/c/Users/chris/OneDrive/Documents/RSE# dmesg
[ 0.051879] Microsoft 4.4.0-22478.1000-Microsoft 4.4.35
I am running this on windows through WSL (which is not where I'm running the program, I am using anaconda prompt, but the commands don't work there)
@hjonnala Put the try except in and moved the tensorflow import down. But getting the same output as before.
Hmm.. Are you able to run this demo? can you please confirm you are making changes at /mnt/c/Users/chris/AppData/Local/Continuum/anaconda3/envs/tf-3.8/lib/site-packages/tensorflow/lite/python/interpreter.py
Demo stalls just like my program does (when I don't have the verbosity set). Had no output.
Here's the interpreter.py in my IDE.
can you try this demo on Git Bash.
Also, please share the output of following snippet on both anaconda terminal and bash terminal.
root@root ~# python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pycoral.pybind._pywrap_coral import ListEdgeTpus as list_edge_tpus
>>> list_edge_tpus()
[{'type': 'pci', 'path': '/dev/apex_0'}]
For some reason I'm getting a permission denied error when running python on git bash. Tried fixing that, but couldn't get it to work. Here is the output from Anaconda:
Python 3.8.12 (default, Oct 12 2021, 03:01:40) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pycoral.pybind._pywrap_coral import ListEdgeTpus as list_edge_tpus
>>> list_edge_tpus()
[{'type': 'usb', 'path': '/sys/bus/usb/devices/1-2'}]
>>>
Also tried it on WSL and got a different output:
Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pycoral.pybind._pywrap_coral import ListEdgeTpus as list_edge_tpus
>>> list_edge_tpus()
[]
>>>
Anaconda prompt is able to detect the USB accelerator. Can you try the demo with any other USB ports with Anaconda?
I only have one usb a port on my computer, but just tried with a dongle on my type c ports and I get the following error:
(tf-3.8) C:\Users\chris\OneDrive\Documents\RSE\norts-ai>python coral_inference1.py
error at: /mnt/c/Users/chris/AppData/Local/Continuum/anaconda3/envs/tf-3.8/lib/site-packages/tensorflow/lite/python/interpreter.py
generic_type: type "InterpreterWrapper" is already registered!
starting main
make interpreter model.tflite@:0
I tflite/edgetpu_manager_direct.cc:453] No matching device is already opened for shared ownership.
I driver/usb/local_usb_device.cc:944] EnumerateDevices: vendor:0x1a6e, product:0x89a
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[5] port[1]
I driver/usb/local_usb_device.cc:998] EnumerateDevices: found [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:944] EnumerateDevices: vendor:0x18d1, product:0x9302
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[5] port[1]
I driver/beagle/beagle_usb_driver_provider.cc:218] Enumerate: adding path [/sys/bus/usb/devices/5-1]
I driver/driver_factory_windows.cc:29] DriverFactoryWin::EnumerateByClass()...
I driver/driver_factory_windows.cc:75] DriverFactoryWin::EnumerateByClass returns empty list.
I tflite/edgetpu_manager_direct.cc:471] No device of type Apex (PCIe) is available.
I tflite/edgetpu_context_direct.cc:104] USB always DFU: False (default)
I tflite/edgetpu_context_direct.cc:145] USB bulk-in queue capacity: 8
I tflite/edgetpu_context_direct.cc:65] Performance expectation: Max (default)
I driver/usb/usb_driver.cc:1386] Open device and check if DFU is needed
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[5] port[1]
I driver/usb/local_usb_device.cc:60] ConvertLibUsbError: USB error -99 [OpenDevice]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/5-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[5]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[7]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[4] port[3]
I tflite/edgetpu_context_direct.cc:384] Failed to open device [Apex (USB)] at [/sys/bus/usb/devices/5-1]: Not found: OpenDevice
Traceback (most recent call last):
File "C:\Users\chris\AppData\Local\Continuum\anaconda3\envs\tf-3.8\lib\site-packages\tflite_runtime\interpreter.py", line 171, in load_delegate
delegate = Delegate(library, options)
File "C:\Users\chris\AppData\Local\Continuum\anaconda3\envs\tf-3.8\lib\site-packages\tflite_runtime\interpreter.py", line 130, in __init__
raise ValueError(capture.message)
ValueError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "coral_inference1.py", line 192, in <module>
main()
File "coral_inference1.py", line 123, in main
interpreter = edgetpu.make_interpreter("test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite")
File "C:\Users\chris\AppData\Local\Continuum\anaconda3\envs\tf-3.8\lib\site-packages\pycoral\utils\edgetpu.py", line 87, in make_interpreter
delegates = [load_edgetpu_delegate({'device': device} if device else {})]
File "C:\Users\chris\AppData\Local\Continuum\anaconda3\envs\tf-3.8\lib\site-packages\pycoral\utils\edgetpu.py", line 52, in load_edgetpu_delegate
return tflite.load_delegate(_EDGETPU_SHARED_LIB, options or {})
File "C:\Users\chris\AppData\Local\Continuum\anaconda3\envs\tf-3.8\lib\site-packages\tflite_runtime\interpreter.py", line 173, in load_delegate
raise ValueError('Failed to load delegate from {}\n{}'.format(
ValueError: Failed to load delegate from edgetpu.dll
(tf-3.8) C:\Users\chris\OneDrive\Documents\RSE\norts-ai>
Have you restarted the machine after RuntimeVersion(13) installation? Can you please try the demo after restart.
Yep tried that and getting no output still :(
looks like not able access USB accelerator due to permission error[I driver/usb/local_usb_device.cc:60] ConvertLibUsbError: USB error -99 [OpenDevice].
https://github.com/google-coral/libedgetpu/blob/master/driver/usb/local_usb_device.cc#L66
Can you please check this if it works for you on Git Bash.
I have the same issue? The same code + USB Device that used to work now does not work anymore, since I ran it last, some time ago. I might overlook a change here but the only significant difference I have is my upgrade to Windows 11...?
BuildLabel(COMPILER=MSVC 192628805,DATE=Nov 4 2020,TIME=11:05:43), RuntimeVersion(13)
I driver/usb/local_usb_device.cc:944] EnumerateDevices: vendor:0x1a6e, product:0x89a
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[10]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[4]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[11]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[2] port[3]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[3] port[1]
I driver/usb/local_usb_device.cc:998] EnumerateDevices: found [/sys/bus/usb/devices/3-1]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[5] port[2]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[8] port[1]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[8] port[2]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[9] port[3]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[4]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[5]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[6]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[7]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[8]
I driver/usb/local_usb_device.cc:944] EnumerateDevices: vendor:0x18d1, product:0x9302
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[10]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[4]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[11]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[2] port[3]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[3] port[1]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[5] port[2]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[8] port[1]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[8] port[2]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[9] port[3]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[4]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[5]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[6]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[7]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[8]
I driver/beagle/beagle_usb_driver_provider.cc:218] Enumerate: adding path [/sys/bus/usb/devices/3-1]
I driver/driver_factory_windows.cc:29] DriverFactoryWin::EnumerateByClass()...
I driver/driver_factory_windows.cc:75] DriverFactoryWin::EnumerateByClass returns empty list.
Device 0: EDGETPU_APEX_USB, /sys/bus/usb/devices/3-1
I tflite/edgetpu_manager_direct.cc:453] No matching device is already opened for shared ownership.
I driver/usb/local_usb_device.cc:944] EnumerateDevices: vendor:0x1a6e, product:0x89a
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[10]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[4]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[11]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[2] port[3]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[3] port[1]
I driver/usb/local_usb_device.cc:998] EnumerateDevices: found [/sys/bus/usb/devices/3-1]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[5] port[2]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[8] port[1]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[8] port[2]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[9] port[3]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[4]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[5]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[6]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[7]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[8]
I driver/usb/local_usb_device.cc:944] EnumerateDevices: vendor:0x18d1, product:0x9302
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[10]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[4]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[1] port[11]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[2] port[3]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[3] port[1]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[5] port[2]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[8] port[1]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[8] port[2]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[9] port[3]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[4]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[5]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[6]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[7]
I driver/usb/local_usb_device.cc:979] EnumerateDevices: checking bus[10] port[8]
I driver/beagle/beagle_usb_driver_provider.cc:218] Enumerate: adding path [/sys/bus/usb/devices/3-1]
I driver/driver_factory_windows.cc:29] DriverFactoryWin::EnumerateByClass()...
I driver/driver_factory_windows.cc:75] DriverFactoryWin::EnumerateByClass returns empty list.
I tflite/edgetpu_context_direct.cc:107] USB always DFU: True
I tflite/edgetpu_context_direct.cc:145] USB bulk-in queue capacity: 8
I tflite/edgetpu_context_direct.cc:65] Performance expectation: Max (default)
I driver/usb/usb_driver.cc:1386] Open device and check if DFU is needed
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/3-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[10]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[4]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[11]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[2] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[3] port[1]
I driver/usb/local_usb_device.cc:60] ConvertLibUsbError: USB error -99 [OpenDevice]
I driver/usb/local_usb_device.cc:1013] OpenDevice: [/sys/bus/usb/devices/3-1]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[10]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[4]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[14]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[1] port[11]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[2] port[3]
I driver/usb/local_usb_device.cc:1050] OpenDevice: checking bus[3] port[1]
And then repeating this loop ^^ eventually ending with
I tflite/edgetpu_context_direct.cc:384] Failed to open device [Apex (USB)] at [/sys/bus/usb/devices/3-1]: Not found: OpenDevice
I'm not running Python, I use C#bindings to work with edgetpu.dll, similar to these. I'm running my app as administrator and tried multiple USB ports. Upgrading/Downgrading from/to Grouper did not make any difference (other than the output of edgetpu_version
. I did reboot my machine in between upgrade/downgrades.
Is this the same issue or do you want me to create a new issue?
Observation. Not sure if it is of value, but... Sometimes, when I disconnect during the loop, I get a lot of messages. To me, that is unexpected, I disconnect the cable so I expenct an error, not a lot of log statements. As if the logging is not being flushed, or something...
Hi @keesschollaart81 we haven't tested the USB accelerator and software with windows 11 yet. If possible, can you please test with windows 10?
Yeah, will test on the laptop of my colleague tomorrow morning (CEST), will report back here!
Can confirm: same code/device/model-file/driver-version does work on Windows 10 machine. So at least for me, it seems to be an issue with either my machine or Windows 11.
Sorry school kinda took over my life the last few weeks. Yes, I was having this problem with Windows 11. @keesschollaart81 thanks for testing that out, will try a windows 10 machine.
@norton-chris @keesschollaart81 I have tested Coral USB accelerator with windows 11 and it is working. Please make sure you are running runtime version 13: https://github.com/google-coral/libedgetpu/releases/download/release-frogfish/edgetpu_runtime_20210119.zip
Feel free to reopen if you are still having the issue. Thanks!
Description
Hi, Been having a lot of trouble building and getting pycoral to work. Running on Windows, anaconda prompt, and python 3.8 is the only setup I've been able to get to run without any build or import errors. I am running into a problem with edgetpu.make_interpreter specifically. When I run my program it gets to
interpreter = edgetpu.make_interpreter("model.tflite")
and then the program just ends. I have print statements on both sides of it and the one after doesn't show up.Any ideas on how to fix this?
Click to expand!
### Issue Type Bug ### Operating System Windows 10 ### Coral Device USB Accelerator ### Other Devices _No response_ ### Programming Language Python 3.8 ### Relevant Log Output _No response_