[Beta Support]: Working 0.17 Mac Silicon Installation AND Yolov9 #21290
Replies: 6 comments 16 replies
-
|
Thanks, I'll update some of the documentation |
Beta Was this translation helpful? Give feedback.
-
|
I get the below error message when running docker build.
ERROR: failed to build: failed to solve: process "/bin/sh -c uv pip install --system onnx==1.18.0 onnxruntime onnx-simplifier>=0.4.1 onnxscript" did not complete successfully: exit code: 1 |
Beta Was this translation helpful? Give feedback.
-
|
Maybe a stupid question, but even on macOS for Apple silicon?Β On 16 Dec 2025, at 02:22, Nicolas Mowen ***@***.***> wrote:ο»Ώ
add a --platform linux/amd64 to the command
βReply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Ran into an issue last night installing the Apple Silicon Detector. Installed latest python version, app started installing then stopped with the following error. Screen shot attached. |
Beta Was this translation helpful? Give feedback.
-
|
I've successfully launched it, thank you. Sharing my configuration so others can have a basis: I'm using a Mac mini M4 2024 10CPU 10GPU 24GB 256GB (in the volumes of docker-compose.yml, I point to an external HDD connected via USB-A). I ββhave two cameras with three streams. In detect mode, I set the detection to 1920x1080 and 800x448 for two streams. The "Detector Inference Speed" is around 20.77ms. I'm using yolov9-t-320.onnx and it's been quite good so far. But I will upgrade both the streams and the model later. Thanks again to the person who shared. |
Beta Was this translation helpful? Give feedback.
-
|
The all in one docker command wasn't working for me so here is the Dockerfile: FROM python:3.11 AS build
RUN apt-get update && \
apt-get install --no-install-recommends -y libgl1 && \
rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /bin/
WORKDIR /yolov9
ADD https://github.com/WongKinYiu/yolov9.git .
RUN uv pip install --system -r requirements.txt
RUN uv pip install --system onnx==1.18.0 onnxruntime onnx-simplifier>=0.4.1 onnxscript
ARG MODEL_SIZE
ARG IMG_SIZE
ADD https://github.com/WongKinYiu/yolov9/releases/download/v0.1/yolov9-${MODEL_SIZE}-converted.pt yolov9-${MODEL_SIZE}.pt
RUN sed -i "s/ckpt = torch.load(attempt_download(w), map_location='cpu')/ckpt = torch.load(attempt_download(w), map_location='cpu', weights_only=False)/g" models/experimental.py
RUN python3 export.py --weights ./yolov9-${MODEL_SIZE}.pt --imgsz ${IMG_SIZE} --simplify --include onnx
FROM scratch
ARG MODEL_SIZE
ARG IMG_SIZE
COPY --from=build /yolov9/yolov9-${MODEL_SIZE}.onnx /yolov9-${MODEL_SIZE}-${IMG_SIZE}.onnxbuild with docker build . --platform linux/amd64 --build-arg MODEL_SIZE=t --build-arg IMG_SIZE=320 --output . -f Dockerfile |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the problem you are having
Start by using the "ghcr.io/blakeblackshear/frigate:0.17.0-beta1-standard-arm64" image (the beta docs say to use the stable version; that won't work for 0.17)
Download the Apple Silicon Detector (https://github.com/frigate-nvr/apple-silicon-detector)
The documentation says to right-click and click "Open" to bypass the MacOS security checks. That hasn't been a thing for a while. Open Terminal,
cdinto your Downloads directory (most likely) and run~/Downloads/FrigateDetector\ 2.app/Contents/MacOS/FrigateDetectorThis will actually run the Frigate Detector, and you should see an output that says:
2025-12-14 08:57:25,188 - __main__ - INFO - Cleanup completed 2025-12-14 08:57:25,189 - __main__ - INFO - ZMQ ONNX client initialized with endpoint: tcp://*:5555 2025-12-14 08:57:25,189 - __main__ - INFO - ZMQ ONNX client started in AUTO mode - waiting for model requests 2025-12-14 08:57:25,189 - __main__ - INFO - Attempting to bind to endpoint: tcp://*:5555 2025-12-14 08:57:25,189 - __main__ - INFO - ZMQ server successfully bound to tcp://*:5555 2025-12-14 08:57:25,189 - __main__ - INFO - Detector is ready to accept model requests and inference requestsIt's not made super clear in the documentation, although it is technically there, no models come with this install. You'll need to provide your own. To use Yolov9, run this:
docker build . --build-arg MODEL_SIZE=t --build-arg IMG_SIZE=320 --output . -f- <<'EOF' FROM python:3.11 AS build RUN apt-get update && apt-get install --no-install-recommends -y libgl1 && rm -rf /var/lib/apt/lists/* COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /bin/ WORKDIR /yolov9 ADD https://github.com/WongKinYiu/yolov9.git . RUN uv pip install --system -r requirements.txt RUN uv pip install --system onnx==1.18.0 onnxruntime onnx-simplifier>=0.4.1 onnxscript ARG MODEL_SIZE ARG IMG_SIZE ADD https://github.com/WongKinYiu/yolov9/releases/download/v0.1/yolov9-${MODEL_SIZE}-converted.pt yolov9-${MODEL_SIZE}.pt RUN sed -i "s/ckpt = torch.load(attempt_download(w), map_location='cpu')/ckpt = torch.load(attempt_download(w), map_location='cpu', weights_only=False)/g" models/experimental.py RUN python3 export.py --weights ./yolov9-${MODEL_SIZE}.pt --imgsz ${IMG_SIZE} --simplify --include onnx FROM scratch ARG MODEL_SIZE ARG IMG_SIZE COPY --from=build /yolov9/yolov9-${MODEL_SIZE}.onnx /yolov9-${MODEL_SIZE}-${IMG_SIZE}.onnx EOFI've been running it for ~12 hours now, and it's been absolutely flawless. With 2x 4K cameras and 2x 1080p cameras, running the 320x320 version, I'm averaging ~11ms inference times.
Beta Version
0.17.0-beta1
Issue Category
Installation / Updates
Frigate config file
Relevant Frigate log output
Relevant go2rtc log output (if applicable)
No response
Install method
Docker CLI
docker-compose file or Docker CLI command
docker run -it -p 5000:5000 -p 8971:8971 --restart=unless-stopped --name frigate -v /Users/[name]/docker/frigate-mac/config:/config -v /Volumes/FrigateMedia:/media/frigate ghcr.io/blakeblackshear/frigate:0.17.0-beta1-standard-arm64Operating system
Other
CPU / GPU / Hardware
Mac M4 Mini Silicon
Screenshots
No response
Steps to reproduce
No response
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions