Comments (12)
I have now gotten it to work using the instructions you linked. Thank you so much for getting back to me regarding this issue. I will happily close it now.
from doods.
It could be the host system. It could be a power related issue. Do you have it plugged into a USB 3.0? You could try plugging it into a powered USB hub and it might work. It's really hard to say.
from doods.
I understand that it's hard to say. At least it doesn't seem to be anything obvious that I'm missing. It's plugged into a USB 3.1 port (this is its line from lsusb: < |__2-1 1a6e:089a:0100 00 3.10 5000MBit/s 896mA 1IF ( ffffffd1ffffffb2ffffffdbffffffa0)
). I'll try with a powered hub to see if it makes a difference, which would make sense as 0.9 A is a lot of juice.
What would the container need from the host system? This is a heavily modified Debian distribution that's missing a lot of common stuff but I figured it wouldn't matter when running Docker.
from doods.
It's a little funky how it actually works. The first time you run it, it actually loads a driver onto the EdgeTPU and all the USB identifiers change. That's why it can't detect the EdgeTPU the first time it runs. I don't think it will actually need much from the host system that I can think of unless something funky happens between the USB drivers being loaded and the host system. The only other thing I can suggest is try running it with --privileged
to see if that does anything different. The EdgeTPU is a bit of a black box for me. I just compile the drivers for it and tensorflow and it mostly just works. I can't say I can provide much insight to how it actually functions/interacts with the system sadly.
from doods.
Thanks for your input. I went out and bought a powered hub with a 3 A power supply but I still get the same error. I have run the container with privileged flag as well without success. I'll take a look at the code and see if I can come up with something else.
from doods.
Another thought... Is docker running under virtualization? I have never been able to get the edgetpu to work in a VM with a virtual usb port. I was able to get it to work with pci passthrough and passing through the entire usb controller. Not sure how the synology does it.
from doods.
No, Docker is running directly on the host system. Did DOODS display a similar error message to mine when running Docker within a VM? I wish there would be more information in the log but I guess the Coral does not provide it. All I can gather now it that it seems to fail at line 42 in edgetpu.go. I'm not very familiar with Go but it seems like a call to a C library, which gives me pretty bad vibes.
from doods.
@SebbeM there was a recent update to Docker 20.10.3 in Synology DSM 6 (along with previous updates since february)
Any chance you could try to get the EdgeTPU up again?
Also I assume this was not a problem with doods but with the combination synology + EdgeTPU, right? Or did you manage to get the TPU working for any other application on the NAS?
from doods.
Is this a recent update, though? If it was released on October third of last year, it should be the version I was running when I last tried to get this working. I don't recall any updates to Docker being released since my last comment on February 27.
You are absolutely right that the problem does not seem to be with Doods at all but rather that I can't install the EdgeTPU runtime on the Synology OS. I have thought about trying to compile and package it on another machine but I haven't figured out how to do it and don't want to spend too much time on it as I assume that there would be a whole bunch of dependency issues anyway.
from doods.
i found this post on home-assistant - he claims the edgetpu works in docker on his ds920+ https://community.home-assistant.io/t/image-processing-with-usb-acceleration-all-pi-archived/118445/185
in regards of the docker update : https://www.synology.com/en-in/releaseNote/Docker
the upgrade vom docker v18 to v20 was made last month.
from doods.
Damn, the version number looks way too much like a date! I will look at the guide and see if I can get it to work. Thanks!
from doods.
oh. now i see :)
from doods.
Related Issues (20)
- Expected memory / log rotate? HOT 1
- Label variable in DOODS intergration doco for HA HOT 4
- REALLY slow performance with Arm H3 HOT 14
- Updating Tensorflow version HOT 5
- Text/Labels appear too small in 4K camera HOT 1
- Dog detected as a person HOT 1
- https HOT 3
- coral usb accelerator HOT 1
- Feature request: Angle of the area Lines HOT 6
- Run with Jetson Nano and got platform error HOT 2
- Detecting Eggs HOT 7
- Green and glitches HOT 2
- DOODS with Node-RED HOT 1
- Custom model returns Invalid Graphdef HOT 10
- [FR] option to convert images to black and white before inference. HOT 10
- Can't do docker build on RPi3b HOT 3
- dlerror: libcuda.so.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: HOT 7
- How could i implement my own database? HOT 2
- How do you build a new model HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doods.