Set up Frigate NVR on AI HAT+

Run Frigate in Docker on a Raspberry Pi 5 with the AI HAT+, detect people on an RTSP camera with a YOLOv8n model on the DEEPX NPU, and check that the NPU does the work. The other Frigate projects build on this setup.

Works with

AI HAT+Product overviewonRaspberry Pi 5

How it works

Frigate pulls frames from an RTSP camera (RTSP is the protocol most IP cameras stream video with), hands them to a model on the DEEPX NPU and gets back labeled boxes: a person, a car, a bird. Frigate then tracks each object, records clips and publishes events over MQTT, a lightweight message protocol that other programs subscribe to. The NPU, a chip built for neural networks, runs the model instead of the CPU.

  1. Camera: any RTSP camera, or a test feed (see Camera feeds and MQTT for Frigate projects).
  2. Frigate in Docker: decodes the stream and asks the detector for results.
  3. DEEPX detector: sends frames to the NPU through the /dev/dxrt0 device node and the DX-RT socket. DX-RT is DEEPX’s runtime, the software layer that talks to the NPU.
  4. A .dxnn model: DEEPX’s compiled model format. This page uses the ready-compiled yolov8n-ppu-coco80.dxnn; Boss Detector, the first project in this series, uses the same file, so detecting people needs no compiling.
  5. Web interface: live view, events and recordings at https://[PI_IP]:8971.

Requirements

Required

Hardware

Software

  • Docker EngineOn the Raspberry Pi 5, with a user that has sudo.
  • Internet access on the first startFrigate downloads the DX-RT Python bindings into /config/.local the first time a DEEPX detector is configured, and again when a release pins a new version.
  • The project repositoryhttps://github.com/sixfab/sixfab-dx-frigate, cloned to [REPO_DIR] in the first step of Install script (Clone the repository) or the second of Manual install (Get the model).

Tested on October 5, 2026 on a Raspberry Pi 5 (8 GB) with the Sixfab AI HAT+ (DEEPX DX-M1M), running Raspberry Pi OS Trixie 64-bit: RT driver v2.6.0, PCIe driver v2.5.0, DX-RT v3.4.2 on the Raspberry Pi 5 and v3.4.0 in Frigate’s DEEPX detector, firmware v2.7.4, Frigate from the ghcr.io/blakeblackshear/frigate:af0ba19-standard-arm64 image and the model from the DEEPX Model Zoo.

DEEPX support is on Frigate’s dev branch

DEEPX support was merged into Frigate’s dev branch on September 21, 2026 (PR #24336). It is not in a stable release yet; the latest stable release is v0.18.0 (September 12, 2026). When DEEPX support reaches a stable Frigate release, this page moves to it.

The image ghcr.io/blakeblackshear/frigate:af0ba19-standard-arm64 on GitHub Container Registry is Frigate’s own build from commit af0ba19 of the dev branch of the official Frigate repository, not a Sixfab-compiled image on Docker Hub. Sixfab develops and maintains DEEPX support in Frigate (Frigate’s DEEPX NPU detector docs).

Install

Run every command on the Raspberry Pi 5. Both ways start Frigate with the same docker run settings, and the other Sixfab Frigate projects use them as written here.

Firewall port 5000

Host networking puts every Frigate port directly on the Raspberry Pi 5’s network interfaces, including port 5000, which Frigate treats as unauthenticated, admin-level access (see Frigate’s authentication documentation). There is no -p flag to leave it unpublished, so firewall port 5000 or keep the Raspberry Pi off an untrusted network. Run API checks from the Raspberry Pi itself with docker exec instead of exposing the port.

Verify

Run the checks on the Raspberry Pi 5. dxrt-cli is DEEPX’s command-line tool for the NPU.

  1. Check that NPU device node exists

    ls /dev/dxrt*
    /dev/dxrt0
    Result: /dev/dxrt0 is listed.
  2. Check that DX-RT sees the NPU

    dxrt-cli -s
    DXRT v3.4.2+d803450
     * Device 0: M1M, Accelerator type
    …

    The output, shortened here, also prints firmware, board and temperature lines; it is from DX-RT v3.4.2.

    Result: a DEEPX device is listed, for example Device 0: M1M, Accelerator type.
  3. Check that Frigate is running

    docker ps --filter name=frigate
    Result: the frigate container is running.
  4. Check that NPU detector answers

    docker exec frigate curl -s http://localhost:5000/api/stats | jq '.detectors'
    {
      "deepx:PCIe:0": {
        "inference_speed": 18.48,
    …

    Frigate reports inference_speed in milliseconds. The jq filter is optional; without it you get the full JSON.

    Result: a deepx:PCIe:0 entry with inference_speed.
  5. Check camera in web interface

    Walk into the camera’s view.

    Result: bounding boxes appear when a person is in view.

Details

Several cameras and models on one NPU

One Frigate instance on a single NPU served several projects in testing, each with its own camera and model.

  • Each model declares a scene, and each camera picks one under detect. That is how a camera finds its model.
  • To add a second project, merge it into the shared config.yaml: add its models: entry with its own scene, and its camera with that scene under detect. The Sixfab project installers merge their entries for you, and a model with the same path is replaced instead of duplicated.
  • Frigate lists each detector under detectors in /api/stats, so you can watch the NPU detector’s inference time while a second project runs. To see the NPU’s own load, check NPU load with dxtop.

Limitations

  • This setup ran with docker run. Home Assistant OS and the Frigate add-on were not tested.
  • No benchmark is published for Frigate on the NPU: no inference time was recorded with its model, frame rate and load. Read your own from the detectors object in /api/stats. For NPU benchmarks on the Raspberry Pi 5, see the Raspberry Pi 5 AI HAT+ benchmark: DEEPX versus Hailo.
  • The model detects only the 80 classes in its label map. Other objects need another .dxnn model, compiled with DEEPX’s DX-COM compiler (see Deployment workflow); Porch Pirate runs a custom 5-class model (package, person, car, truck, motorcycle).
  • Frigate chooses the DX-RT version its DEEPX detector uses. The tested build pins DX-RT v3.4.0, and this setup cannot change it.
  • Frigate does not recover by itself when the DX-RT daemon restarts: see Detections stop after the DX-RT daemon restarts.

Privacy

Cameras record people. Frigate writes recordings and clips to [FRIGATE_MEDIA_DIR], the folder the container mounts at /media/frigate, so anyone who can log in on port 8971 or read that folder can watch them. Check the rules for recording people where you live, and read Camera feeds and MQTT for Frigate projects and each project’s Privacy section before you point a camera at people.

Troubleshooting

The NPU is not visible to the host. Check that the AI HAT+ is plugged in and that the DX-RT driver loaded, then recheck the steps in the AI HAT+ quickstart and see AI HAT+ troubleshooting.

When the DX-RT daemon (dxrtd, run by the dxrt.service unit, the background service that owns the NPU) restarts, detections stop. Restart the Frigate container:

docker restart frigate

Check the feed from the Raspberry Pi 5 with ffprobe [RTSP_URL]. If the feed comes from a stream host, check its feed service on that host with systemctl status [FEED_SERVICE_NAME].

On the broker host (the machine that runs the MQTT server, Mosquitto in this series), run systemctl status mosquitto. See Camera feeds and MQTT for Frigate projects.

In testing, DX-RT returned this error when the model was not supported. Use a .dxnn model that DX-RT supports, such as yolov8n-ppu-coco80.dxnn, and check the download against its SHA-256 hash (Manual install, Get model).

Next steps

License and credits

The code is licensed under the MIT License. Each model file has its own license, listed with its details in the boss-detector-v1.0.0 release notes: yolov8n-ppu-coco80.dxnn is derived from Ultralytics YOLOv8n and licensed under AGPL-3.0. The ghcr.io/blakeblackshear/frigate:af0ba19-standard-arm64 image is MIT licensed and built from commit af0ba19 of the dev branch of the official Frigate repository. Frigate and the DEEPX tools belong to their respective authors.