mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-03 06:50:58 +00:00
Compare commits
2 Commits
a4764563a5
...
5dc8a85f2f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5dc8a85f2f | ||
|
|
0302db1c43 |
@ -111,7 +111,7 @@ OpenAI does not have a free tier for their API. With the release of gpt-4o, pric
|
|||||||
|
|
||||||
### Supported Models
|
### Supported Models
|
||||||
|
|
||||||
You must use a vision capable model with Frigate. Current model variants can be found [in their documentation](https://platform.openai.com/docs/models). At the time of writing, this includes `gpt-4o` and `gpt-4-turbo`.
|
You must use a vision capable model with Frigate. Current model variants can be found [in their documentation](https://platform.openai.com/docs/models).
|
||||||
|
|
||||||
### Get API Key
|
### Get API Key
|
||||||
|
|
||||||
@ -139,11 +139,11 @@ Microsoft offers several vision models through Azure OpenAI. A subscription is r
|
|||||||
|
|
||||||
### Supported Models
|
### Supported Models
|
||||||
|
|
||||||
You must use a vision capable model with Frigate. Current model variants can be found [in their documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models). At the time of writing, this includes `gpt-4o` and `gpt-4-turbo`.
|
You must use a vision capable model with Frigate. Current model variants can be found [in their documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models).
|
||||||
|
|
||||||
### Create Resource and Get API Key
|
### Create Resource and Get API Key
|
||||||
|
|
||||||
To start using Azure OpenAI, you must first [create a resource](https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource?pivots=web-portal#create-a-resource). You'll need your API key and resource URL, which must include the `api-version` parameter (see the example below). The model field is not required in your configuration as the model is part of the deployment name you chose when deploying the resource.
|
To start using Azure OpenAI, you must first [create a resource](https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource?pivots=web-portal#create-a-resource). You'll need your API key, model name, and resource URL, which must include the `api-version` parameter (see the example below).
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
||||||
@ -151,7 +151,8 @@ To start using Azure OpenAI, you must first [create a resource](https://learn.mi
|
|||||||
genai:
|
genai:
|
||||||
enabled: True
|
enabled: True
|
||||||
provider: azure_openai
|
provider: azure_openai
|
||||||
base_url: https://example-endpoint.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2023-03-15-preview
|
base_url: https://instance.cognitiveservices.azure.com/openai/responses?api-version=2025-04-01-preview
|
||||||
|
model: gpt-5-mini
|
||||||
api_key: "{FRIGATE_OPENAI_API_KEY}"
|
api_key: "{FRIGATE_OPENAI_API_KEY}"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -988,7 +988,7 @@ COPY --from=ghcr.io/astral-sh/uv:0.8.0 /uv /bin/
|
|||||||
WORKDIR /dfine
|
WORKDIR /dfine
|
||||||
RUN git clone https://github.com/Peterande/D-FINE.git .
|
RUN git clone https://github.com/Peterande/D-FINE.git .
|
||||||
RUN uv pip install --system -r requirements.txt
|
RUN uv pip install --system -r requirements.txt
|
||||||
RUN uv pip install --system onnx onnxruntime onnxsim
|
RUN uv pip install --system onnx onnxruntime onnxsim onnxscript
|
||||||
# Create output directory and download checkpoint
|
# Create output directory and download checkpoint
|
||||||
RUN mkdir -p output
|
RUN mkdir -p output
|
||||||
ARG MODEL_SIZE
|
ARG MODEL_SIZE
|
||||||
@ -1012,7 +1012,7 @@ 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 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.8.0 /uv /bin/
|
||||||
WORKDIR /rfdetr
|
WORKDIR /rfdetr
|
||||||
RUN uv pip install --system rfdetr[onnxexport]
|
RUN uv pip install --system rfdetr[onnxexport] torch==2.8.0 onnxscript
|
||||||
ARG MODEL_SIZE
|
ARG MODEL_SIZE
|
||||||
RUN python3 -c "from rfdetr import RFDETR${MODEL_SIZE}; x = RFDETR${MODEL_SIZE}(resolution=320); x.export(simplify=True)"
|
RUN python3 -c "from rfdetr import RFDETR${MODEL_SIZE}; x = RFDETR${MODEL_SIZE}(resolution=320); x.export(simplify=True)"
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user