-
Notifications
You must be signed in to change notification settings - Fork 67
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
Error: Using Coral USB Accelerator in Docker (ValueError: Failed to load delegate from libedgetpu.so.1) #3
Comments
@jjimin
|
@jjimin UPDATE:
Hope this helps! P.S. Unrelated, but out of curiosity, any reasons for using the gnu tensorflow image? |
@Namburger how did you verify that the container didn't have access to usb devices? I'm currently testing it in a container (on rpi4) in which I can see the device being recognized (I see the coral USB with I'll make an independent issue if I can't figure it out in the next couple of days. |
@jjimin
|
Hi @Namburger , thanks for your quick reply. I'll be debugging it later this evening (CET), so I'll be able to provide more info. I'm using docker compose to build the container and I'm mounting the volume Thanks again for your quick response :) I'll update info and/or fix if I found it later today. |
@Namburger thanks for your input. I could run on the TPU inside a container by using the API instead of using |
@jjrugui hi, make sure you are using an updated version of the tflite_runtime library also, this will mostlikely solve your tflite runtime API issue. The new package should now be this: |
I'm way too late to the party, but here is what I have discovered regarding this
Environment:
Hopefully this may help someone in the future! 😄 |
can you explain (better with example) how to use --restart always flag? |
@hvn2 Thanks for reaching out! Sorry that I forgot to mention that If you're using Docker Compose, you can set an equivalent option services:
ai:
# ...
# Restart the docker on failure, and after the system boot
restart: always
# Mount Coral TPU
devices:
- "/dev/bus/usb:/dev/bus/usb"
# Needs privileged access to the host OS
privileged: true then run We've recently open-sourced a project that utilizes Coral TPU & Raspberry Pi & Docker, which you might be interested in as a reference implementation:
(Comments are written in Japanese; you can use machine-translation if necessary!) Cheers! |
System information
tensorflow/tensorflow:nightly-devel-gpu-py3
)I am trying to get started with my USB Accelerator using the
classify_image.py
source code in a Docker container.My Dockerfile for this project is like this:
And I made the container with this command:
docker run -it -v /dev/bus/usb:/dev/bus/usb --gpus all coral-usb:0.1 /bin/bash
In the container, I followed the manual in 'Get started with the USB Accelerator'.
And after running the code above, I got some errors like this:
How could I solve this problem?
The text was updated successfully, but these errors were encountered: