Merge branch 'main' into cli-info

cli-info
Burhan 3 months ago committed by GitHub
commit 9a2b6e850a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      docs/en/guides/raspberry-pi.md
  2. 1
      docs/en/macros/predict-args.md
  3. 19
      examples/tutorial.ipynb
  4. 5
      mkdocs.yml

@ -2,6 +2,7 @@
comments: true
description: Learn how to deploy Ultralytics YOLO11 on Raspberry Pi with our comprehensive guide. Get performance benchmarks, setup instructions, and best practices.
keywords: Ultralytics, YOLO11, Raspberry Pi, setup, guide, benchmarks, computer vision, object detection, NCNN, Docker, camera modules
benchmark_version: 8.3.39
---
# Quick Start Guide: Raspberry Pi with Ultralytics YOLO11
@ -144,7 +145,7 @@ We have only included benchmarks for YOLO11n and YOLO11s models because other mo
<figure style="text-align: center;">
<img width="800" src="https://github.com/ultralytics/assets/releases/download/v0.0.0/rpi-yolo11-benchmarks.avif" alt="YOLO11 benchmarks on RPi 5">
<figcaption style="font-style: italic; color: gray;">Benchmarked with Ultralytics v8.3.39</figcaption>
<figcaption style="font-style: italic; color: gray;">Benchmarked with Ultralytics {{ benchmark_version }}</figcaption>
</figure>
### Detailed Comparison Table
@ -183,7 +184,7 @@ The below table represents the benchmark results for two different models (YOLO1
| MNN | ✅ | 36.2 | 0.7409 | 273.032 |
| NCNN | ✅ | 36.2 | 0.7419 | 194.858 |
Benchmarked with Ultralytics `v8.3.39`
Benchmarked with Ultralytics {{ benchmark_version }}
## Reproduce Our Results

@ -6,6 +6,7 @@
| `imgsz` | `int or tuple` | `640` | Defines the image size for inference. Can be a single integer `640` for square resizing or a (height, width) tuple. Proper sizing can improve detection [accuracy](https://www.ultralytics.com/glossary/accuracy) and processing speed. |
| `half` | `bool` | `False` | Enables half-[precision](https://www.ultralytics.com/glossary/precision) (FP16) inference, which can speed up model inference on supported GPUs with minimal impact on accuracy. |
| `device` | `str` | `None` | Specifies the device for inference (e.g., `cpu`, `cuda:0` or `0`). Allows users to select between CPU, a specific GPU, or other compute devices for model execution. |
| `batch` | `int` | `1` | Specifies the batch size for inference (only works when the source is [a directory, video file or `.txt` file](/modes/predict.md/#inference-sources)). A larger batch size can provide higher throughput, shortening the total amount of time required for inference. |
| `max_det` | `int` | `300` | Maximum number of detections allowed per image. Limits the total number of objects the model can detect in a single inference, preventing excessive outputs in dense scenes. |
| `vid_stride` | `int` | `1` | Frame stride for video inputs. Allows skipping frames in videos to speed up processing at the cost of temporal resolution. A value of 1 processes every frame, higher values skip frames. |
| `stream_buffer` | `bool` | `False` | Determines whether to queue incoming frames for video streams. If `False`, old frames get dropped to accomodate new frames (optimized for real-time applications). If `True', queues new frames in a buffer, ensuring no frames get skipped, but will cause latency if inference FPS is lower than stream FPS. |

@ -45,6 +45,25 @@
"</div>"
]
},
{
"cell_type": "markdown",
"source": [
"<div align=\"center\">\n",
" \n",
" <a href=\"https://www.youtube.com/watch?v=ZN3nRZT7b24\" target=\"_blank\">\n",
" <img src=\"https://img.youtube.com/vi/ZN3nRZT7b24/maxresdefault.jpg\" alt=\"Ultralytics Video\" width=\"720\" style=\"border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);\"></a>\n",
" \n",
" <p style=\"font-size: 16px; font-family: Arial, sans-serif; color: #555;\">\n",
" <strong>Watch: </strong> How to Train\n",
" <a href=\"https://github.com/ultralytics/ultralytics\">Ultralytics</a>\n",
" <a href=\"https://docs.ultralytics.com/models/yolo11/\">YOLO11</a> Model on Custom Dataset using Google Colab Notebook 🚀</p>\n",
"\n",
"</div>"
],
"metadata": {
"id": "DXHD1DC5M64G"
}
},
{
"cell_type": "markdown",
"metadata": {

@ -69,8 +69,9 @@ theme:
- content.tabs.link # all code tabs change simultaneously
# Customization
copyright: <a href="https://ultralytics.com" target="_blank">© 2024 Ultralytics Inc.</a> All rights reserved.
copyright: <a href="https://www.ultralytics.com/" target="_blank">© 2024 Ultralytics Inc.</a> All rights reserved.
extra: # version:
homepage: https://www.ultralytics.com/
# provider: mike # version drop-down menu
robots: robots.txt
analytics:
@ -90,7 +91,7 @@ extra: # version:
- icon: fontawesome/brands/python
link: https://pypi.org/project/ultralytics/
- icon: fontawesome/brands/discord
link: https://ultralytics.com/discord
link: https://discord.com/invite/ultralytics
- icon: fontawesome/brands/reddit
link: https://reddit.com/r/ultralytics

Loading…
Cancel
Save