Repository navigation
|
I'm moving 15 cameras to Fregata and choosing between two Mac minis:
My plan follows the detection tuning guide: detect on the main stream at full resolution, 5 fps (10 on two cameras). Main streams are mostly 2560x1920 / 2688x1520, two at 5120x1552 and one at 7680x2160 (Reolink Elite Pro Floodlight). I also want the apple_intelligence GenAI provider on macOS 27. Questions:
If you only have time for one: is the dual Neural Engine on M6 an advantage for Fregata's detection, or does the M5 Pro's bigger GPU matter more? Thanks! |
Replies: 1 comment 2 replies
|
Hey @oxn0r Both will perform amazingly, but I'd pick the M6 unless you need the M5 Pro's extra GPU for something else running on the same machine. I'd expect even a base M4 to perform fine for this setup. All of our test machines in the office are base M4s and base M6s, but users run Fregata on everything from Macbook Neos with A18 Pros to Mac Studios with M5 Ultras.
It uses both. Apple's CoreML APIs act as if there is a single ANE and a built-in load balancer distributes tasks between the 2 ANEs seamlessly. You shouldn't need to do this, but you can still specify multiple coreml detectors if you like, as a test. Many users do this on M1, M2 etc because a single detection pipeline won't saturate the ANE, so adding multiple detectors running in parallel can sometimes provide more throughput on slower ANEs (more detections, but not a faster speed per detection).
Not for the M5 Pro, but for the M6 we've seen <1ms for yolov9t, ~1.5ms for yolov9s, and ~2.2ms for yolov9c (Frigate+ detection models). Note that under heavy detection load you will actually see faster detections as at lower load macOS keeps the ANE clock speed lower. The more you push it, the faster it gets.
This shouldn't be a problem at all. We run always run detection at max resolution (and we always use 10 fps) and suggest users do the same.
I'd budget roughly 4GB for the apple_intelligence GenAI provider. 32GB would be plenty. We have an M6 Mac Mini with 16GB running in the office with the apple_intelligence GenAI provider, License Plate Recognition, Semantic Search, Facial Recognition + Orbstack for running Docker containers (limited to 5GB of RAM) and have no issues at all. When the Apple Intelligence model is loaded we sometimes see memory pressure spike into yellow but then it goes back to green as soon as the GenAI description is generated. If this is a dedicated Fregata machine, 16GB would suffice today. 32GB would be great if you wanted the option to run other GenAI models via Ollama or llama.cpp, run other things on the Mac at the same time, or for future proofing as AI models get bigger and bigger.
Detection always runs on the ANE unless you force it to the GPU. The GPU is mainly just for the AI enrichment models like Facial Recognition, License Plate Recognition, Semantic Search, etc but they perform so well on the base model GPUs that I don't think you'll be wishing for a faster GPU just for Fregata. |
Hey @oxn0r
Both will perform amazingly, but I'd pick the M6 unless you need the M5 Pro's extra GPU for something else running on the same machine. I'd expect even a base M4 to perform fine for this setup. All of our test machines in the office are base M4s and base M6s, but users run Fregata on everything from Macbook Neos with A18 Pros to Mac Studios with M5 Ultras.
It uses both. Apple's CoreML APIs act as if there is a single ANE and a built-in load balancer distributes tasks between the 2 ANEs seamlessly. You shouldn't…