Back to Ultralytics

Ultralytics YOLO Examples

examples/README.md

8.4.4610.6 KB
Original Source

<a href="https://www.ultralytics.com/" target="_blank"></a>

Ultralytics YOLO Examples

[!WARNING] The examples in this directory are community-contributed and showcase creative ways to use Ultralytics YOLO models. While we truly appreciate these contributions, they may not always reflect the latest best practices or receive regular updates. To help streamline our codebase and focus our resources on maintaining comprehensive, up-to-date official documentation and guides, we plan to retire these examples in Ultralytics v8.4.0.

Welcome to the Ultralytics examples directory! This collection showcases practical applications and detailed walkthroughs for integrating Ultralytics YOLO models into various real-world projects. Explore Python scripts and Jupyter notebooks designed to help you leverage the power of models like Ultralytics YOLO26 for tasks like object detection, instance segmentation, pose estimation, and more.

Whether you're deploying models on edge devices using formats like ONNX with ONNX Runtime, optimizing with TensorRT on NVIDIA Jetson, using OpenVINO for Intel hardware, or integrating with frameworks like OpenCV, these examples provide valuable insights and code snippets. Find inspiration for your next computer vision project and see how others are using Ultralytics YOLO to build innovative AI solutions on platforms ranging from C++ and C# to Python and Rust.

💡 Example Applications

Browse through the community-contributed examples below. These projects demonstrate various use cases and deployment strategies for Ultralytics YOLO models across different platforms and programming languages.

TitleFormatContributor
YOLO ONNX Detection Inference with C++C++/ONNXJustas Bartnykas
YOLO OpenCV ONNX Detection PythonOpenCV/Python/ONNXFarid Inawan
YOLO C# ONNX-Runtime.NET/ONNXRuntimeCompunet
YOLO .Net ONNX Detection C#C# .NetSamuel Stainback
YOLOv8 on NVIDIA Jetson (TensorRT and DeepStream)Python/TensorRT/DeepStreamLakshantha (See also DeepStream Guide)
YOLOv8 ONNXRuntime PythonPython/ONNXRuntimeSemih Demirel
RTDETR ONNXRuntime PythonPython/ONNXRuntimeSemih Demirel
YOLOv8 ONNXRuntime CPPC++/ONNXRuntimeDennisJcy, Onuralp Sezer
RTDETR ONNXRuntime C#C#/ONNXKayzwer
YOLOv8 SAHI Video InferencePython/SAHIMuhammad Rizwan Munawar (See also SAHI Guide)
YOLOv8 Region CounterPythonMuhammad Rizwan Munawar (See also Region Counting Guide)
YOLOv8 Segmentation ONNXRuntime PythonPython/ONNXRuntimejamjamjon
YOLOv8 LibTorch CPPC++/LibTorchMyyura (See also TorchScript Export)
YOLOv8 OpenCV INT8 TFLite PythonPython/TFLiteWamiq Raza (See also TFLite Export)
YOLOv8 All Tasks ONNXRuntime RustRust/ONNXRuntimejamjamjon
YOLOv8 OpenVINO CPPC++/OpenVINOErlangga Yudi Pradana (See also OpenVINO Export)
YOLOv8 MNN CPPC++/MNNKhoi VN
YOLOv5-YOLO11 ONNXRuntime RustRust/ONNXRuntimejamjamjon

🤝 How to Contribute

We actively encourage contributions from our vibrant community! Sharing your examples, applications, and guides helps others learn and build amazing things with Ultralytics. If you have a project you'd like to share, please follow these steps:

  1. Fork the Repository: Start by forking the main Ultralytics repository on GitHub.
  2. Create Your Example: Add your project folder within the examples/ directory of your forked repository.
  3. Prepare Your Submission: Ensure your project meets the following criteria:
    • It utilizes the ultralytics pip package.
    • Includes a README.md file with clear, step-by-step instructions for setup and execution. Explain the purpose of the example and any prerequisites.
    • Avoid committing large files or extensive dependencies. If necessary, provide instructions for users to download them separately (e.g., using ultralytics.utils.downloads.safe_download()).
    • As a contributor, be prepared to offer support and address issues related to your example.
  4. Submit a Pull Request: Create a pull request (PR) targeting the main branch of the official Ultralytics repository. Use the title prefix [Example] (e.g., [Example] Add YOLOv8 Pose Estimation on Raspberry Pi).

For more comprehensive guidelines on contributing code, documentation, or examples, please refer to our Contributing Guide. We appreciate your efforts to enhance the Ultralytics ecosystem! If you have questions, feel free to open an issue or PR, and the team will be happy to assist. Check out the Ultralytics Blog for more insights and updates, and explore Ultralytics Platform for streamlined model training and deployment.