mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-29 23:29:01 +03:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd8282ff3c | ||
|
|
984d654c40 |
@@ -1057,12 +1057,12 @@ YOLOv9 model can be exported as ONNX using the command below. You can copy and p
|
|||||||
```sh
|
```sh
|
||||||
docker build . --build-arg MODEL_SIZE=t --build-arg IMG_SIZE=320 --output . -f- <<'EOF'
|
docker build . --build-arg MODEL_SIZE=t --build-arg IMG_SIZE=320 --output . -f- <<'EOF'
|
||||||
FROM python:3.11 AS build
|
FROM python:3.11 AS build
|
||||||
RUN apt-get update && apt-get install --no-install-recommends -y libgl1 && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install --no-install-recommends -y cmake libgl1 && rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /bin/
|
COPY --from=ghcr.io/astral-sh/uv:0.10.4 /uv /bin/
|
||||||
WORKDIR /yolov9
|
WORKDIR /yolov9
|
||||||
ADD https://github.com/WongKinYiu/yolov9.git .
|
ADD https://github.com/WongKinYiu/yolov9.git .
|
||||||
RUN uv pip install --system -r requirements.txt
|
RUN uv pip install --system -r requirements.txt
|
||||||
RUN uv pip install --system onnx==1.18.0 onnxruntime onnx-simplifier>=0.4.1 onnxscript
|
RUN uv pip install --system onnx==1.18.0 onnxruntime onnx-simplifier==0.4.* onnxscript
|
||||||
ARG MODEL_SIZE
|
ARG MODEL_SIZE
|
||||||
ARG IMG_SIZE
|
ARG IMG_SIZE
|
||||||
ADD https://github.com/WongKinYiu/yolov9/releases/download/v0.1/yolov9-${MODEL_SIZE}-converted.pt yolov9-${MODEL_SIZE}.pt
|
ADD https://github.com/WongKinYiu/yolov9/releases/download/v0.1/yolov9-${MODEL_SIZE}-converted.pt yolov9-${MODEL_SIZE}.pt
|
||||||
|
|||||||
@@ -37,18 +37,18 @@ The following diagram adds a lot more detail than the simple view explained befo
|
|||||||
%%{init: {"themeVariables": {"edgeLabelBackground": "transparent"}}}%%
|
%%{init: {"themeVariables": {"edgeLabelBackground": "transparent"}}}%%
|
||||||
|
|
||||||
flowchart TD
|
flowchart TD
|
||||||
RecStore[(Recording\nstore)]
|
RecStore[(Recording<br>store)]
|
||||||
SnapStore[(Snapshot\nstore)]
|
SnapStore[(Snapshot<br>store)]
|
||||||
|
|
||||||
subgraph Acquisition
|
subgraph Acquisition
|
||||||
Cam["Camera"] -->|FFmpeg supported| Stream
|
Cam["Camera"] -->|FFmpeg supported| Stream
|
||||||
Cam -->|"Other streaming\nprotocols"| go2rtc
|
Cam -->|"Other streaming<br>protocols"| go2rtc
|
||||||
go2rtc("go2rtc") --> Stream
|
go2rtc("go2rtc") --> Stream
|
||||||
Stream[Capture main and\nsub streams] --> |detect stream|Decode(Decode and\ndownscale)
|
Stream[Capture main and<br>sub streams] --> |detect stream|Decode(Decode and<br>downscale)
|
||||||
end
|
end
|
||||||
subgraph Motion
|
subgraph Motion
|
||||||
Decode --> MotionM(Apply\nmotion masks)
|
Decode --> MotionM(Apply<br>motion masks)
|
||||||
MotionM --> MotionD(Motion\ndetection)
|
MotionM --> MotionD(Motion<br>detection)
|
||||||
end
|
end
|
||||||
subgraph Detection
|
subgraph Detection
|
||||||
MotionD --> |motion regions| ObjectD(Object detection)
|
MotionD --> |motion regions| ObjectD(Object detection)
|
||||||
@@ -60,8 +60,8 @@ flowchart TD
|
|||||||
MotionD --> |motion event|Birdseye
|
MotionD --> |motion event|Birdseye
|
||||||
ObjectZ --> |object event|Birdseye
|
ObjectZ --> |object event|Birdseye
|
||||||
|
|
||||||
MotionD --> |"video segments\n(retain motion)"|RecStore
|
MotionD --> |"video segments<br>(retain motion)"|RecStore
|
||||||
ObjectZ --> |detection clip|RecStore
|
ObjectZ --> |detection clip|RecStore
|
||||||
Stream -->|"video segments\n(retain all)"| RecStore
|
Stream -->|"video segments<br>(retain all)"| RecStore
|
||||||
ObjectZ --> |detection snapshot|SnapStore
|
ObjectZ --> |detection snapshot|SnapStore
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user