Ah…! that is unfortunate. Are there any issues using a Coral when running in a VM (I was eyeing one of the M.2 devices - very cheap, and I’m pretty sure I have a spare slot (designed for an M.2 wifi card))?
Will take a look - I’m running a few other Dockers anyway, so should be able to spin up easily (famous last words). Maybe after I’ve had a bit of a play using the HassOS addon. Running 4 cams atm thr moment has seen my idle CPU jump from ~1 - 10% up to around 30%.
I’ve given up getting the RPi to work without a powered USB hub and shelled out for a NUC. Trying to set up a M.2-2230-A-E-S3 (A+E key) PCIe Coral in the WiFi slot, it’s detected ok:
# lspci -nn | grep 089a
05:00.0 System peripheral [0880]: Global Unichip Corp. Coral Edge TPU [1ac1:089a]
How do I pass this through in docker? I tried /sys/bus/pci/devices/0000:05:00.0 and just /sys/bus/pci/devices/
CPU usage seems to idle at around 25-29%, so only marginally lower than running unaccelerated using the HassOS add-on (and with occasional spikes to ~65%)
Does that seem normal? Am wondering is the CPU limits on the VM were artificially repressing CPU usage.
I have ordered a Coral, but was hoping to run on CPU till it got here–seems a bit high to run 24/7 though.
Question… should the ffmpeg hwaccel_args be placed separately (like camera: and detector:) to apply to all cameras, or duplicated within the ffmpeg parameters for each individual camera?
I dialled back the resolution on the camera feeds in the interim (now 1@1024x576, 3@720x400), and getting CPU idle around 18-25%, with spikes ~45-50%. And check my render group - 109 like yours.
Thanks that’s for the USB version and runtime is installed in the container isn’t it?
I followed this
I think I’m missing the PCIe driver as apex_0 isnt there. I’m running on Libreelec as I’ve got this hair brained idea of being able to use Kodi to display the streams on an attached monitor. I will try again tomorrow on another distro.
Does anyone have suggestions about the best way to connect a docker container running Frigate into HassOS (as opposed to running it through the HassOS addon)?