From bb60b81a66788a35f26b9934fde56289823ec242 Mon Sep 17 00:00:00 2001 From: Chengxun Lee <24319042+bclswl0827@users.noreply.github.com> Date: Fri, 10 Jan 2025 15:10:42 +0800 Subject: [PATCH] fix: Fix some typos --- .../frigate_nvr_with_raspberrypi_5.md | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/docs/Edge/Raspberry_Pi_Devices/Raspberry_Pi_with_AI/frigate_nvr_with_raspberrypi_5.md b/docs/Edge/Raspberry_Pi_Devices/Raspberry_Pi_with_AI/frigate_nvr_with_raspberrypi_5.md index 737a6eb49cbb..3e1066412a17 100644 --- a/docs/Edge/Raspberry_Pi_Devices/Raspberry_Pi_with_AI/frigate_nvr_with_raspberrypi_5.md +++ b/docs/Edge/Raspberry_Pi_Devices/Raspberry_Pi_with_AI/frigate_nvr_with_raspberrypi_5.md @@ -68,11 +68,11 @@ $ sudo raspi-config In the dialog, select **6 Advanced Options** and then **A8 PCIe Speed**. ![6 Advanced Options](https://raw.githubusercontent.com/Seeed-Projects/Benchmarking-YOLOv8-on-Raspberry-PI-reComputer-r1000-and-AIkit-Hailo-8L/main/resource/1.png) -![6 Advanced Options](https://raw.githubusercontent.com/Seeed-Projects/Benchmarking-YOLOv8-on-Raspberry-PI-reComputer-r1000-and-AIkit-Hailo-8L/main/resource/2.png) +![A8 PCIe Speed](https://raw.githubusercontent.com/Seeed-Projects/Benchmarking-YOLOv8-on-Raspberry-PI-reComputer-r1000-and-AIkit-Hailo-8L/main/resource/2.png) Choose "Yes" to enable PCIe Gen 3 mode. -![6 Advanced Options](https://raw.githubusercontent.com/Seeed-Projects/Benchmarking-YOLOv8-on-Raspberry-PI-reComputer-r1000-and-AIkit-Hailo-8L/main/resource/3.png) +![Choose Yes](https://raw.githubusercontent.com/Seeed-Projects/Benchmarking-YOLOv8-on-Raspberry-PI-reComputer-r1000-and-AIkit-Hailo-8L/main/resource/3.png) Afterward, click "Finish" to exit. @@ -110,7 +110,7 @@ $ sudo cp *.bin /lib/firmware/hailo To avoid PCIe max_desc_page_size issue, we also need to create a rule in `/etc/modprobe.d/hailo_pci.conf` with the following content. ```bash -options hailo_pci force_desc_page_size=256 +options hailo_pci force_desc_page_size=4096 ``` Restart the system to take effect. @@ -153,15 +153,17 @@ In this part, we assume you have your camera set up and ready to stream with RTS $ sudo reboot ``` -4. **Get Frigate Image:** +### Step 2: Deploying Frigate + +1. **Pull the Frigate Image:** Go to [Package frigate](https://github.com/blakeblackshear/frigate/pkgs/container/frigate/versions), choose one image with `-h8l` suffix. In this example, we choose `ghcr.io/blakeblackshear/frigate:b265b6b-h8l`. - ```bash - $ docker pull ghcr.io/blakeblackshear/frigate:b265b6b-h8l - ``` + ```bash + $ docker pull ghcr.io/blakeblackshear/frigate:b265b6b-h8l + ``` -5. **Create Docker Compose File:** +2. **Create Docker Compose File:** Here is an example of the `frigate.yml` file, the `hailo0` device is the one you created in the previous step, configuration files are in the `./config` directory and data files are in the `./data` directory.: @@ -188,7 +190,7 @@ In this part, we assume you have your camera set up and ready to stream with RTS - 5000:5000 ``` -6. **Download Model:** +3. **Download Model:** Go to [Public Pre-Trained Models](https://github.com/hailo-ai/hailo_model_zoo/blob/master/docs/public_models/HAILO8/HAILO8_object_detection.rst) to download the model you want to use. Here is the example of using YOLOv8n model: `yolov8n`. @@ -197,7 +199,7 @@ In this part, we assume you have your camera set up and ready to stream with RTS $ sudo wget https://hailo-model-zoo.s3.eu-west-2.amazonaws.com/ModelZoo/Compiled/v2.14.0/hailo8/yolov8n.hef -O ./config/model_cache/yolov8n.hef ``` -9. **Edit Frigate Config:** +4. **Edit Frigate Config:** Here is an example of the `config/config.yml` file, which is for the Frigate application: @@ -233,7 +235,7 @@ In this part, we assume you have your camera set up and ready to stream with RTS input_pixel_format: bgr ``` -6. **Start Docker Instance:** +5. **Start Docker Instance:** ```bash $ docker compose -f frigate.yml up -d