License YOLO
Ultralytics Platform

How to Auto-Label Images from Class Names with Ultralytics VLM

Auto-label images from class names with Ultralytics VLM. Test representative images, review and correct the boxes, and train an Ultralytics YOLO26 model.

Glenn Jocher7 min read

Listen to this article

Auto-label images from class names with Ultralytics VLM. Test representative images, review and correct the boxes, and train an Ultralytics YOLO26 model.

Upload representative images to Ultralytics Platform, name the objects you want to find, and let Ultralytics VLM draw your first set of boxes. With Ultralytics VLM1, you can test classes on individual images, scale to a dataset in Batch Annotation, and review the results before you train Ultralytics YOLO26. You can see the first detections without collecting labeled training examples.

It covers object detection, where each label is a bounding box and a class. For background on why labeled data matters, see our data labeling glossary entry.

What you need before you start#

  • Images in a common format such as JPEG or PNG, uploaded as files or a ZIP.
  • A class list. Use 1–200 clear class names or descriptions on a detection dataset. Start with recognizable phrases such as “forklift” or “person in a high-vis vest.” Replace internal codes like cls_3 with names the model can interpret.
  • An Ultralytics Platform account. Both VLM1 sizes run on Platform without a third-party provider key.

Step 1: Create a detection dataset and add your classes#

  1. In Platform, open Annotate and click New Dataset.
  2. Choose the detect task and set visibility to Private before creating the dataset or uploading sensitive images.
  3. Upload your images or ZIP.
  4. In the Classes tab, add each class name.

Step 2: Test Ultralytics VLM on a few images first#

Before labeling thousands of images, check that the model sees your objects the way you do.

  1. Open an image and switch to Smart mode (S).
  2. Start with VLM1 2B, the default on supported detection datasets. To test the higher-accuracy variant, open the model picker and select VLM1 4B under Ultralytics.
  3. Press Predict (P). Review the editable boxes returned for the classes the model finds.
  4. Repeat on five to ten images that cover your hardest cases: small or distant objects, crowded scenes, poor lighting.

Class-prompted models return boxes without confidence scores, so review the results visually. If the model misses objects or draws loose boxes, try a clearer class name and compare both sizes on the same images. On the December 2, 2026 Ultralytics VLM Leaderboard, 2B took 0.31 s per image at the median and scored 0.435 mAP50. The 4B variant took 0.39 s and scored 0.460. Use those results to choose what to test first.

Step 3: Auto-label the dataset#

  1. On the dataset page, open More actions → Batch Annotation.
  2. Confirm the selected model. The dialog can reuse your last Smart mode model. Choose VLM1 2B for a faster first pass or select VLM1 4B under Ultralytics to test the higher-accuracy option.
  3. Inspect the sample predictions. Leave Include annotated images off to process only unlabeled images, then select Start.
  4. Review the run summary and open representative images before moving on to training.

Batch Annotation preserves existing labels. Where dataset versioning is supported, Platform saves a version before the run so you can restore it if needed.

Published Ultralytics VLM example showing green boxes around empty shelf spaces in a grocery aisle

The launch example uses “empty shelf space” as a class description. Test the wording on your own images before running a batch.

Step 4: Review and correct the boxes#

Auto-labels are a first draft. Review and validation help determine whether the corrected labels are suitable for training.

  • Add what the model missed. Switch to Draw mode for single boxes, or use a SAM model in Smart mode to click an object.
  • Delete or fix wrong boxes. Select a box to change its class or resize it.
  • Label look-alikes faster. Select a few correct labels and use Annotate similar to find more objects that look like them.

Include a random sample across every class and split, plus difficult scenes and images with no predictions. Inspect images left unlabeled whenever they might contain target objects. YOLO can learn from images with no label file as background, so correct missed objects before training. Human-in-the-loop review helps catch labeling errors before training.

Optional: export the labels in YOLO format#

If you train elsewhere, download the reviewed labels. Platform exports a dataset as an Ultralytics NDJSON file: one line of dataset metadata, then one line per image with its split and its boxes in normalized class x_center y_center width height form. The file links to the images rather than containing them.

To get YOLO folders (images/ and labels/ with one .txt file per image), convert the file locally with the ultralytics package:

import asyncio

from ultralytics.data.converter import convert_ndjson_to_yolo

yaml_path = asyncio.run(convert_ndjson_to_yolo("my-dataset.ndjson", output_path="datasets"))

Image links in the export are signed and stay valid for at least a day after download, so convert soon after exporting. The dataset export docs cover the format in full. If you train with the Python package, you can skip this step: pass the NDJSON file or the dataset's ul:// URI straight to model.train(data=...) and Ultralytics builds the folders for you.

Step 5: Train an Ultralytics YOLO26 model on the reviewed labels#

Use Ultralytics VLM to create initial labels, then train Ultralytics YOLO26 when your deployment calls for a detector trained on fixed classes.

  1. Check that training and validation splits contain suitable images. Keep related frames or near-duplicates together, and manually review validation labels before using them to judge model quality.
  2. From the dataset page, start a cloud training run with an Ultralytics YOLO26 model, or train anywhere with the Python package and the dataset's ul:// URI:
from ultralytics import YOLO

# Requires ULTRALYTICS_API_KEY in your environment for dataset access
model = YOLO("yolo26n.pt")
model.train(data="ul://username/datasets/my-dataset", epochs=100, imgsz=640)
  1. Export the trained model to ONNX, TensorRT, Core ML or another format, and deploy it on your own hardware or in the cloud.

Measure the trained model's accuracy and latency on your target hardware before deployment.

Who this workflow suits#

It suits teams starting a new detector without a labeled dataset, adding a new class or site to an existing one, or replacing slow manual labeling with a review pass. It works best on objects a general model can recognize from a name or short description.

It is less suited to highly specialized imagery, such as some medical, X-ray or PCB datasets, where general models miss more objects. There, label a seed set by hand, train YOLO on it, and use that model for the next pass.

Explore Ultralytics VLM or read the Ultralytics VLM launch announcement for more examples of class-prompted detection.

Frequently asked questions

  • Yes. Use Batch Annotation with VLM1 2B or 4B if you can edit the dataset and the detection dataset has 1–200 classes and images with up to three channels. Test representative images before starting. Review a sample across your classes and inspect images with no predictions after the run.

  • Smart Annotation runs Ultralytics VLM1 from the class names saved in your detection dataset. You can edit and save the resulting boxes in the same editor.

  • Export the dataset from Platform as NDJSON, then convert it with convert_ndjson_to_yolo from the ultralytics package to get YOLO images/ and labels/ folders. The dataset export docs show the full format.

  • Yes. Review catches missed objects, extra boxes and wrong classes before they reach training. Our guide to precision and recall for auto-annotation shows where to focus review effort.

  • Review a random sample per class, fix the errors, then train and validate a YOLO model on a held-out set you labeled or reviewed by hand. If validation is weak on a class, review more of that class before retraining.

Written by

Glenn Jocher
Glenn Jocher

Founder & CEO · Ultralytics

Glenn Jocher is Founder and CEO of Ultralytics, where he leads the development of Ultralytics YOLO, the world's most widely adopted computer vision models. His work isn't just about building faster, more accurate models; it's about empowering people everywhere to solve meaningful problems with vision AI.

Comments

Ask a question, share your results, or help someone else.

Similar articles

Can VLMs Detect Objects? VLMs, Open-Vocabulary Detectors, and YOLO

Can VLMs Detect Objects? VLMs, Open-Vocabulary Detectors, and YOLO

Can VLMs detect objects? Compare prompted detection with open-vocabulary detectors and trained Ultralytics YOLO models, and learn when each approach fits.
Learn more
Object Detection API Without Training Using Ultralytics VLM

Object Detection API Without Training Using Ultralytics VLM

Send an image and a list of class names to the Ultralytics Platform API and get bounding boxes and labels back, with no custom model to train first.
Learn more
Zero-Shot Object Detection Models and Grounding DINO Alternatives

Zero-Shot Object Detection Models and Grounding DINO Alternatives

Compare Ultralytics VLM, Grounding DINO, OWLv2, and SAM by detection accuracy, prompt type, output and deployment requirements.
Learn more
Auto annotation tool for 10,000 images: how VLMs compare on accuracy and speed

Auto annotation tool for 10,000 images: how VLMs compare on accuracy and speed

Ultralytics VLM1 4B needs about 65 minutes of estimated model time for 10,000 images. Compare VLM accuracy and speed with Gemini, GPT and Claude.
Learn more
Ultralytics VLM: Object detection at a speed VLMs have never reached.  No training data required.

Ultralytics VLM: Object detection at a speed VLMs have never reached. No training data required.

Meet Ultralytics VLM: describe objects in plain words and get detections in seconds, faster than most frontier VLMs. Then train Ultralytics YOLO on them.
Learn more
Thermal image of a person beside a car, with an auto-labeled bounding box around the person

Thermal image annotation: how to label and auto-label infrared images

How to export, label and auto-annotate thermal and infrared images, with VLM scores on two thermal datasets and steps to train an Ultralytics YOLO26 model.
Learn more
Qwen 4 launch art with Ultralytics UL37 results: 0.474 mAP50 overall and 0.4975 on wrist X-rays, best of 51 models

Qwen4-Max for auto-annotation: standout datasets, uneven gains

Qwen4-Max ranks 14th of 51 in our auto-annotation benchmark, first on wrist X-rays and second on retail shelves. Accuracy, cost and how to run it.
Learn more
OpenAI's GPT-6.2 Astra and Sol launch artwork on a star field, with Ultralytics UL37 object detection scores: Astra 0.543 and Sol 0.539 mAP50

GPT-6.2 Sol vs Astra for Auto-Annotation: Similar Scores, Different Strengths

GPT-6.2 Astra and Sol score 0.543 and 0.539 mAP50 on 36 detection datasets, but Sol costs $8.10 per 1,000 images vs $31.88. Here's which to use.
Learn more
Ultralytics Platform fullscreen viewer showing an annotated crosswalk image from above, next to a table of EXIF orientation values with value 6, rotate 90 degrees clockwise, highlighted, on a black gradient cover titled EXIF orientation explained

EXIF orientation in Ultralytics YOLO: why sideways photos break datasets

EXIF orientation values 5 to 8 swap an image's width and height. Learn how a missed tag misaligns labels, and how Ultralytics now reads tagged images upright.
Learn more
Google's Gemini 4 Hydrogen launch artwork with an Ultralytics Platform tile showing 0.539 mAP50, its overall score on the UL37 object detection benchmark

Gemini 4 Hydrogen auto-annotation: cheaper per token, less so per image

Gemini 4 Hydrogen ranks fourth of 46 VLMs on our 36-dataset object detection benchmark at 0.539 mAP50, with top scores on plant disease, soccer and X-ray.
Learn more
Ultralytics Platform training GPU list with hourly prices beside an illustrative comparison of a cloud RTX 4090 at $0.89 per hour and an assumed $3,000 RTX 4090 workstation, breaking even at about 3,800 hours

Managed Training Platforms vs Self-Hosted GPUs for Computer Vision, Compared

Compare managed GPU training platforms, cloud ML services, rented GPUs and your own hardware for computer vision: costs, setup, break-even and when each fits.
Learn more
Ultralytics Platform deployment page with live request metrics and a masked endpoint URL, beside steps showing an Amazon S3 bucket connected, a YOLO26 model completed and a hosted API ready

How to Train YOLO on Amazon S3 Data and Deploy a Hosted API with Ultralytics Platform

Train Ultralytics YOLO26 on images in your Amazon S3 bucket and deploy it as a hosted API with Ultralytics Platform, step by step, compared with SageMaker.
Learn more
Gemini 4 Carbon key art with an Ultralytics detection box around the crystal, labeled crystal 0.97

Gemini 4 Carbon auto-annotation: the new leader on our VLM Leaderboard

Gemini 4 Carbon tops 45 models on our 36-dataset detection benchmark with 0.584 mAP50 and the best precision and recall. Is it worth 6x GPT-6.1 Terra?
Learn more
The Ultralytics Agents canvas: an input image goes to a YOLO26 Detect people block and a Person detected Gate set to detection count of person, branching to Captured images and Notify Slack

How to Turn YOLO Detections into Alerts Without Code Using Ultralytics Agents

Turn Ultralytics YOLO detections into Slack alerts, webhooks and dataset captures without code, using a Gate condition in Ultralytics Agents.
Learn more
Claude Fable 5.2 is here, and it refuses to look at security X-rays

Claude Fable 5.2 is here, and it refuses to look at security X-rays

Claude Fable 5.2 is out, and it refuses to label the IEDXray security X-ray dataset on Ultralytics Platform: all 10 scans blocked, while open models answered.
Learn more
How to choose a VLM for auto-annotation using precision and recall

How to choose a VLM for auto-annotation using precision and recall

Pick a VLM for auto-annotation by precision and recall: which models leave fewer stray boxes, which miss fewer objects, and how to test on your own data.
Learn more
HIPAA compliant AI for medical imaging: what a BAA covers and how to train on patient data

HIPAA compliant AI for medical imaging: what a BAA covers and how to train on patient data

Learn what HIPAA compliant AI requires for medical imaging, what an Ultralytics BAA covers, and how to annotate, train and deploy with patient data.
Learn more
Ultralytics Platform training charts with the Weights & Biases import panel for connecting a W&B API key

How to migrate Ultralytics YOLO models from W&B to Ultralytics Platform

Import Ultralytics YOLO models from Weights & Biases (W&B) into Ultralytics Platform without retraining, then compare experiments, export, and deploy.
Learn more
GPT-6.1 Terra takes #1 for auto-annotation, beating OpenAI's own flagships

GPT-6.1 Terra takes #1 for auto-annotation, beating OpenAI's own flagships

GPT-6.1 Terra auto-annotation tops 39 models on our VLM Leaderboard: 0.559 mAP50 for $4.36 per 1,000 images, ahead of GPT-6.1 Sol and Gemini 4 Argon.
Learn more
MiniMax-M3.1-Flash auto-annotation: why less reasoning drew better boxes

MiniMax-M3.1-Flash auto-annotation: why less reasoning drew better boxes

MiniMax-M3.1-Flash auto-annotation in Ultralytics Platform: 0.289 mAP50 at $1.84 per 1,000 images after tuning, with 0.86 on SAR ship detection.
Learn more
Kimi K3.1 Pro auto-annotation: a third better than K3, at high effort

Kimi K3.1 Pro auto-annotation: a third better than K3, at high effort

Kimi K3.1 Pro auto-annotation scores 0.410 mAP50 on UL37, a third above Kimi K3. See why we run it at high effort, what it costs, and where it wins.
Learn more
Gemini 4 Argon auto-annotation: the most precise boxes of 39 models

Gemini 4 Argon auto-annotation: the most precise boxes of 39 models

Gemini 4 Argon auto-annotation on Ultralytics Platform: #2 of 39 models, top precision (0.671), first in 6 of 12 domains, and $15.19 per 1,000 images.
Learn more
Ultralytics Platform Monitoring: Keep vision AI deployments on track

Ultralytics Platform Monitoring: Keep vision AI deployments on track

Monitor deployed vision AI models with Ultralytics Platform. Track endpoint health, latency, errors, logs, and live prediction statistics.
Learn more
Introducing Ultralytics Agents: Build visual AI workflows faster

Introducing Ultralytics Agents: Build visual AI workflows faster

Build visual AI workflows with Ultralytics Agents. Connect YOLO models, vision-language models, conditions, datasets, and Slack alerts on one canvas.
Learn more
Introducing Ultralytics AutoTrain: Simplify vision AI model training

Introducing Ultralytics AutoTrain: Simplify vision AI model training

Train, compare, and improve Ultralytics YOLO models with AutoTrain in Ultralytics Platform, from initial baseline to production deployment.
Learn more
Exporting Ultralytics YOLO models on Ultralytics Platform

How to export Ultralytics YOLO models using Ultralytics Platform

Export vision AI models with ease using Ultralytics Platform. Explore how to prepare models in a few clicks for edge, mobile, and cloud deployment.
Learn more
Polygon annotation with Ultralytics Platform

A guide to polygon annotation with Ultralytics Platform

Discover polygon annotation, how it enables precise object segmentation, and how to create annotations easily with Ultralytics Platform.
Learn more
Monitoring deployed computer vision models on Ultralytics Platform

Monitoring deployed computer vision models on Ultralytics Platform

Learn how to monitor deployed computer vision models on Ultralytics Platform, from request volume, P95 latency, and error rates to logs and health checks.
Learn more
Picking a cloud GPU for vision AI training on Ultralytics Platform

How to pick a cloud GPU for vision AI training on Ultralytics Platform

Learn how to pick the right cloud GPU for computer vision training on Ultralytics Platform based on factors such as dataset size, model complexity, and cost.
Learn more
Dedicated inference endpoints vs shared inference for deployment

Dedicated inference endpoints vs shared inference for deployment

Explore when to choose dedicated inference endpoints on the Ultralytics Platform for scalable, low-latency vision AI deployment over shared inference.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning