-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run 'Getting started examples' for USB Accelerator on Windows 10: "ValueError: Failed to load delegate from edgetpu.dll" #39
Comments
@asylunatic Do you see any LED glowing on the USB Accelerator ? |
@manoj7410 yes! it is also listed in the device manager under USB devices, and I've added the path to edgetpu.dll to the environment variables to be sure |
@asylunatic could you please try with edgetpu_runtime_20210119.zip from this page https://coral.ai/software/#edgetpu-runtime |
I'm having the same issue but on an aarch64 system. I just updated everything to the latest versions. pycoral 2.0.0 I tried these trained models:
|
@Lennyz1988 can you paste the output of command |
|
@Lennyz1988 I assume you are using USB accelerator. If its connected you should see Global Unichip Corp. or Google in ouput.
|
$ python examples/classify_image.py -m test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite -l test_data/inat_bird_labels.txt -i test_data/parrot.jpg During handling of the above exception, another exception occurred: Traceback (most recent call last): I have installed edge tpu runtime - edgetpu_runtime_20210119.zip I think this has become a common isuue. I kindly request you to help all of us with this issue! Thank you! :) |
@AkkiSony can you paste the output of following command.
Please check if you have edgetpu.dll in this path C:\Windows\System32? |
python -c 'from pycoral.utils.edgetpu import get_runtime_version; print(get_runtime_version())'
|
@hjonnala It's strange that I am getting this output now. python -c 'from pycoral.utils.edgetpu import get_runtime_version; print(get_runtime_version())' |
@AkkiSony pycoral modules are fetching from this path C:\Users\asdf\Coral-USB\coral1\pycoral\pycoral\utils\edgetpu.py.. But they need to come from coral_env/lib/site-packages/pycoral.. |
@hjonnala Do you have any idea what modification should I do? |
@AkkiSony you can try renaming pycoral to pycoral1 or something else in coral1 directory.. |
It dint work even after renaming! :/ @hjonnala |
@AkkiSony please paste the error you are getting after renaming. |
$ python -c 'from pycoral.utils.edgetpu import get_runtime_version; print(get_runtime_version())' |
@AkkiSony please change pycoral name also inside pycoral1 directory |
After renaming it, I got the following output. BuildLabel(COMPILER=MSVC 192628805,DATE=Nov 4 2020,TIME=11:06:09), RuntimeVersion(13)When I run the example code, I get the following error. During handling of the above exception, another exception occurred: Traceback (most recent call last): |
@AkkiSony It should be working fine with runtime version 13. Please make sure USB accelerator connected to the machine. |
Thanks. I am getting this error when the USB accelerator is connected. Is there a way where I can explicitly mention the location of .dll file and avoid this error? @hjonnala |
@hjonnala I uninstalled the latest version and installed edgetpu_runtime_20210119.zip as you recommended and it runs now! Thanks |
On two different Windows 10 machines I run into the same problem when trying to run the pycoral example for the USB Accelerator. In both cases, I followed the steps from https://coral.ai/docs/accelerator/get-started/ . When trying to run classify_image.py, the script crashes when calling
make_interpreter
:On both machines, it the first time I did the installation, so I am pretty sure it does not have to do with versions (as was suggested in issues raised earlier: #281 and #46).
I have so far not been able to find out what causes this.
The text was updated successfully, but these errors were encountered: