I’ve been very intrigued by this image processing platform and all the great work that a @Robmarkcole has done to date. So much so that I’d like to consolidate all my pi’s onto my new Intel NUC with Docker and a Google Coral stick.
My Image processing time on the Pi w/ the Coral is about a second. Deepstack on the NUC under docker takes about 6-8 seconds. That’s enough time in my use case to not work at all. I need sub second recognition.
I see this article doing it on a Pi. and its exactly what I’d like on to do on the NUC:
I suspect that because this image was built for the Pi, it won’t work on the NUC (I’ve tried it but get errors).
Has anyone done this on a NUC w/ Docker and the Google Coral stick?
I’m good enough at this to get this far, but lack the knowledge to go further. I’ve got Portainer.io running Deepstack, HOME ASSISTANT, etc now on the NUC.
Tell me what your setup looks like. Mine is very specific.
I have an Intel NUC with Ubuntu 20.4, google coral stick running home assistant supervised v243 under Docker with Portainer. It took me 5 hours today to get the coral stick working with Deepstack on the same NUC machine, so I’d have to backtrack a lot of steps to unwind what I did. There were a few key commands that did end up being breakthroughs though. I’m not sure what I did was the most efficient way to do this but it works…and it’s fast. -Jeff
Hi @jazzmonger
i have PC with Debian 10, coral stick, HA Supervised 243 running in docker.
Really would like to have my coral running with deepstack so i would be more than happy if you could tell how you did it.
Ok, sounds similar enough. Have you installed the coral stick and gotten far enough that it recognizes the Macaw bird example?
Should give you this:
INFO: Initialized TensorFlow Lite runtime.
----INFERENCE TIME----
Note: The first inference on Edge TPU is slow because it includes loading the model into Edge TPU memory.
11.8ms
3.0ms
2.8ms
2.9ms
2.9ms
-------RESULTS--------
Ara macao (Scarlet Macaw): 0.76562
Where are u located? It’s 4:30 am here in CA, so the wife is asleep… I need to get in front of my NUC for the rest if it and turning on that light will bring on the wrath… happy wife, happy life
You also have to modify coral-app.py to change all references to “pi”. Both in directories and the user name Pi to your NUC username.
There will be errors along the way calling out dependencies which need to be installed. But once it finally executes, this tests it, using whatever image you feed it:
curl -X POST -F image=@images/test-image3.jpg 'http://localhost:5000/v1/vision/detection'
Wow! Working at first try. Really good help @jazzmonger
Got 1 info/error in coral.log. Not sure it is important.
2020-09-14 14:43:30,423 WARNING root Thread-2 : From /home/hsadmin/coral-pi-rest-server/coral-app.py:61: The name DetectWithImage will be deprecated. Please use detect_with_image instead.
2020-09-14 14:43:30,445 INFO werkzeug Thread-2 : 127.0.0.1 - - [14/Sep/2020 14:43:30] "POST /v1/vision/detection HTTP/1.1" 200 -
FANTASTIC!
Interesting. my log file stays empty, though it used to work on my Pi. I tried to fix that but after spending 5 hours getting this far yesterday, I decided to start drinking wine instead :). I’m in my office now looking at it.
But, that’s the last thing to worry about.
I got this error as well: DetectWithImage will be deprecated. No big deal,
I went thru all these posts and edited them adding code, examples, etc, so the next person trying to do this can replicate it! I’ve been at it 3 months and finally just powered through it yesterday.
Actually, I have an Intel NUC that I use for my home assistant installation now. The raspberry pi’s are just way too under powered to do anything reliable regarding image detection, even with the Google Coral accelerator usb dongle. My NUC runs Ubuntu 20.04 which of course is unsupported by home assistant but works great.
In my very unscientific tests regarding performance, the R Pi’s are about 1/10 as fast as the Intel NUCs. So it really depends on your application and your requirements. For me, when I arrive at my gate, I want my license place recognized immediately, at least within 10 seconds. After that I grab the remote control. the NUC usually is up to the task. The Pi’s, forget about it…