coral-pi-rest-server icon indicating copy to clipboard operation
coral-pi-rest-server copied to clipboard

Add docker container

Open robmarkcole opened this issue 4 years ago • 3 comments

https://blogs.sap.com/2020/02/11/containerizing-a-tensorflow-lite-edge-tpu-ml-application-with-hardware-access-on-raspbian/

robmarkcole avatar Feb 27 '20 07:02 robmarkcole

I will love to use this in a docker container to classify birds detected by Frigate.

yayitazale avatar Dec 17 '21 11:12 yayitazale

So I'm working on trying to swap my deepstack end points with just using a coral end point.

I've got things working in docker, and if it's a 1-1 camera->coral-deepstack, it works fine. But if I try to connect more than one camera and process more than one image, it gives a 500 error. Which, I think makes sense because I think the script isn't designed to handle more than one request at a time.

Any thoughts on adding multiprocessing or a queue of some sort to the flask configuration? I've been looking into it, but the python is a bit over my head. :/

sstratoti avatar Oct 28 '22 14:10 sstratoti

An approach like this https://github.com/robmarkcole/ServingMLFastCelery You can also see how deepstack does it

robmarkcole avatar Oct 28 '22 14:10 robmarkcole