explaingit

meituan/yolov6

5,883Jupyter NotebookAudience · researcherComplexity · 4/5LicenseSetup · hard

TLDR

A fast object detection framework by Meituan that identifies and locates objects in images or video, available in sizes from nano to large, with variants for face detection, instance segmentation, and mobile deployment.

Mindmap

mindmap
  root((YOLOv6))
    What it does
      Object detection
      Bounding boxes
      Instance segmentation
    Model sizes
      Nano and Small
      Medium and Large
      P6 high-res
    Variants
      YOLOv6-Face
      YOLOv6-Seg
      YOLOv6Lite mobile
    Setup
      PyTorch CUDA
      ONNX TensorRT export
      Colab tutorials
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Train a custom object detector on your own image dataset for manufacturing quality inspection.

USE CASE 2

Run real-time object detection on video from a security camera using the nano or small model.

USE CASE 3

Export a trained YOLOv6 model to ONNX or TensorRT for deployment on edge hardware.

USE CASE 4

Detect and outline the exact shape of objects in images using the YOLOv6-Seg segmentation variant.

Tech stack

PythonPyTorchONNXTensorRTJupyter NotebookCUDA

Getting it running

Difficulty · hard Time to first run · 1h+

GPU training requires a CUDA-capable Nvidia card, CPU inference is only practical via the YOLOv6Lite variant.

GPL-3.0, free to use and modify, but any software you distribute that includes this code must also be open source under the GPL.

In plain English

YOLOv6 is an object detection system built by Meituan, the large Chinese technology company. Object detection means feeding an image to the system and getting back a list of what objects are in the image and where they are located, each marked with a bounding box. This kind of technology is used in manufacturing quality control, security cameras, autonomous vehicles, and similar industrial settings. The framework comes in several model sizes labeled N (nano), S (small), M (medium), and L (large), plus larger P6 variants designed for higher-resolution inputs. Smaller models run faster but are less accurate, larger models are slower but detect objects with more precision. The README includes benchmark tables showing the trade-off: the nano model processes roughly 779 frames per second on an Nvidia T4 GPU, while the large model runs at 98 frames per second but achieves noticeably better accuracy scores on the standard COCO benchmark dataset. Beyond the core detection models, the project has branched into specialized variants. YOLOv6-Face targets face detection specifically. YOLOv6-Seg adds instance segmentation, which means identifying not just where objects are but outlining their exact shape. YOLOv6Lite is a stripped-down version designed to run on mobile devices or CPUs without a dedicated GPU. The project is built with PyTorch and includes tools for training new models, running inference on images or video, exporting to deployment formats like ONNX and TensorRT, and applying quantization to shrink model size further. Tutorials are available on Google Colab and Kaggle for people who want to experiment without setting up a local environment. The repository includes two research papers that describe the architecture and design choices behind different versions of the framework. It is released as open source under the GPL-3.0 license.

Copy-paste prompts

Prompt 1
I want to train YOLOv6-S on my own dataset of product defects for factory inspection. Walk me through the dataset format, config file setup, and training command.
Prompt 2
Using YOLOv6, write Python code to run inference on a folder of images and save annotated output images with bounding boxes.
Prompt 3
I want to export a YOLOv6-M model to ONNX and then convert it to TensorRT for deployment on an Nvidia Jetson device. What are the exact steps?
Prompt 4
Show me how to use YOLOv6Lite on a CPU-only machine without a GPU to run object detection from a webcam feed.
Prompt 5
Write a Google Colab notebook cell that installs YOLOv6 dependencies, downloads a pretrained nano model, and runs inference on a sample image.
Open on GitHub → Explain another repo

← meituan on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.