Hacker News new | ask | show | jobs
by nirav72 6 days ago
How many cameras do you have on your frigate instance? i’ve been running frigate for couple years and seemed to have hit a limit of 6 cameras. 3 of them are wireless and 3 are connected to Ethernet. Mainly adding any more seems to adversely impact detection. I suspect it was maybe because the coral TPU board was hitting its limits. So I recently switched to intel arc a380 for inference. I’m going to add more cameras soon to see it helps.
2 comments

That seems low for a Frigate setup with a Coral and suggests something else isn't right. Im running ~20 1080p cameras on two Corals right now. The general rule of thumb is 8-16 cameras per Coral, but it all depends on frequency Frigate is having to pass frames to the detector. Inference time per frame portion passed to the coral is about 10ms (100 detections a second), which is fast enough to cover a good number of cameras.

Worth noting most of the time the Corals sit idle in many setups, as Frigate only wakes them up if it detects motion with simpler algorithms on the CPU first. You gain capacity for a further 100 detections/sec for every Coral you add essentially. The corals are not sitting watching every single frame from every camera, which I think is a common misconception about Frigate.

It's worthwhile to spend some time with the docs - the mistake I always see made is folks passing a full fat 4k stream for detection at some silly FPS, which generally doesn't make the detection work any better and greatly increases processing costs.

If your six cameras really are generating enough events (100 a second) to saturate a coral, I'd be looking at what else I screwed up!

> https://docs.frigate.video/frigate/camera_setup/#choosing-a-...

You were definitely hitting the limitations of the coral. Fregata (a native port of Frigate to macOS) can easily handle 25+ cameras since Apple Silicon can do detections in 1-2ms, giving you 500-1000 object detection inferences per second.

Wireless cameras can also cause their own set of issues, but I can understand using them if you have to.