Yes, but you’ll still need to add the Frigate custom component for that. The custom component provides the integration with Home Assistant. The docker container is the equivalent of the add-on, i.e., the main instance of Frigate.
You would have to pass through the PCI device to the virtual machine. I haven’t tried it myself. It would probably work but based on other posts here and in the instructions, using a Coral with a VM adds a lot of latency. Honestly, if you’ve ever set up another Docker container in Unraid, it’s almost as simply as using the add on.
In theory it should work, adapters for mac mini are available, but it has to be tested.
I assume, that it should be also possible to use usb external enclosure for m.2 b+m key version, in case usb versions are not available and it might be also cheaper dependent on the enclosure price.
Hello Folks, Trying run Frigate on a Synology DS415+.
It seems I have a few issues, but first is that I can’t seem to get Frigate find the Coral TPU.
Can you have a look and tell me what I might be doing wrong? @scstraus , looks like you are running on a Synology as well, maybe you can spot my mistake easily =)
Logs:
2021-05-06 14:37:17
stdout
* Starting nginx nginx
2021-05-06 14:37:17
stdout
…done.
2021-05-06 14:37:20
stderr
Starting migrations
2021-05-06 14:37:20
stderr
peewee_migrate INFO : Starting migrations
2021-05-06 14:37:20
stderr
There is nothing to migrate
2021-05-06 14:37:20
stderr
peewee_migrate INFO : There is nothing to migrate
2021-05-06 14:37:20
stderr
frigate.mqtt INFO : MQTT connected
2021-05-06 14:37:20
stderr
detector.coral INFO : Starting detection process: 33
2021-05-06 14:37:20
stderr
frigate.edgetpu INFO : Attempting to load TPU as usb
2021-05-06 14:37:20
stderr
frigate.app INFO : Camera processor started for back: 36
2021-05-06 14:37:20
stderr
frigate.app INFO : Capture process started for back: 37
2021-05-06 14:37:20
stderr
frigate.edgetpu INFO : No EdgeTPU detected.
2021-05-06 14:37:20
stderr
Process detector:coral:
2021-05-06 14:37:20
stderr
Traceback (most recent call last):
2021-05-06 14:37:20
stderr
File /usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py, line 152, in load_delegate
2021-05-06 14:37:20
stderr
delegate = Delegate(library, options)
2021-05-06 14:37:20
stderr
File /usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py, line 111, in init
2021-05-06 14:37:20
stderr
raise ValueError(capture.message)
2021-05-06 14:37:20
stderr
ValueError
2021-05-06 14:37:20
stderr
2021-05-06 14:37:20
stderr
During handling of the above exception, another exception occurred:
2021-05-06 14:37:20
stderr
2021-05-06 14:37:20
stderr
Traceback (most recent call last):
2021-05-06 14:37:20
stderr
File /usr/lib/python3.8/multiprocessing/process.py, line 315, in _bootstrap
2021-05-06 14:37:20
stderr
self.run()
2021-05-06 14:37:20
stderr
File /usr/lib/python3.8/multiprocessing/process.py, line 108, in run
2021-05-06 14:37:20
stderr
self._target(*self._args, **self._kwargs)
2021-05-06 14:37:20
stderr
File /opt/frigate/frigate/edgetpu.py, line 124, in run_detector
Hello,
I’ve been trying to follow this thread since it started. I finally got a PC to run Frigate on, but it looks like a bad time to buy a Coral. I’m probably going to try to set it up before I get the Coral.
My question is about which Coral to buy…
The computer I have to run Frigate is a Dell OptiPlex 9020M. The “M” is for micro case size.
It has an M2 B&M slot, but it is tucked in between the motherboard and the SATA drive.
My concern is that there would be little air flow for cooling. and there doesn’t appear to be much heat sinking on the M2 devices.
Would I be better off with the USB device?
@MikeSherman i have a dell optiplex 9020m and I tried the coral a+e m2 card in the wifi slot and it worked fine under unraid. I did that as a test before moving it to the wifi slot in my more powerful optiplex 7060.
No issues with heat as far as I can tell.
The a+e card was cheaper than usb and is actually available right now.
Both optiplex machines have SSD in the b+m m2 slot.
You can also get Home Assistant to keep an eye on the Coral PCI temps. Mine hit 57.8C today, under heavy load inside a case with an room temp of about 30c. They begin to throttle performance at 85C and shut down at crazy temps (105C or so).
I feel that the USB Corals actually get hotter than the PCI Corals, despite having a heatsink and running in restricted performance mode. The case can certainly feel toasty to the touch.
So you’ll probably be fine with the M.2 Coral… perhaps better off.
I have recently migrated to portainer on my synology using this guide and couldn’t be happier. Works so much better than the built in docker management (which won’t really allow you to run frigate right). If you want to do that, I can share my docker compose. Otherwise you have to run it from the command line. I think the last example I have from when I did that was v5, but maybe I’ve done it with v7 too.
Thanks @scstraus , So far indeed I have tried the command line but was not successful. I already have portainer running so I can try both if you can share your docker compose and docker run. Cheers!
The image quality is very low. I assume it is from the detect feed. Is there any way to get it from the higher resolution clip feed? Also is there any way to send the entire frame with the object circled and identified rather than the object cut out?
Something closed to the “best image”, right below the video clip, showing in the GUI after clicking on the event.
The best snapshot for any object type. It is a full resolution image by default.
Example parameters:
* `h=300`: resizes the image to 300 pixes tall
* `crop=1`: crops the image to the region of the detection rather than returning the entire image
or maybe set snapshot to high res feed and figure out which of photo api is pulling from that feed. I think best.jpg is but not sure
I`m running Frigate on small and slow NUC but I have no Coral yet. Could somebody help with HW acceleration config for this PC to try to squeeze max from it?
thank you ukro, it worked but I`m getting 600ms inference per CPU and on one camera only.
There must be something wrong because N4000 is better CPU than RPI4 has and on RPI4 I get 200ms on 3 cameras using just one CPU.