License YOLO
Ultralytics Platform

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.

Sergiu Waxmann13 min read

Listen to this article

Thermal image of a person beside a car, with an auto-labeled bounding box around the person

Can you label thermal images like ordinary photos? Yes, once a thermal camera's frame is saved as a JPEG, PNG or TIFF. Ultralytics Platform accepts those files directly, so you draw bounding boxes on a thermal frame the same way you would on a daylight image, or let a vision language model draft them for you to review.

The more useful questions come after that. What do you lose when the camera's temperature data becomes an 8-bit picture? And can AI draft the boxes so you only review them? Our benchmark gives a clear signal on the second: on the Ultralytics VLM Leaderboard, Gemini 4 Carbon scored 0.883 mAP50 on a 10-image sample of LLVIP infrared pedestrians and 0.640 on a 10-image sample of HIT-UAV thermal drone footage. Ultralytics VLM1, Ultralytics' own auto-annotation model, scored 0.831 on the same LLVIP sample with Ultralytics VLM1 4B, at under half a second per image.

This guide covers how to export thermal frames so they label well, how the leading auto-annotation models perform on our two thermal benchmark datasets, and the steps to label a thermal dataset and train an Ultralytics YOLO26 model on it.

A thermal image saved as JPEG or PNG labels like any other image#

A thermal camera can record two different things. A radiometric file stores a measurement per pixel: the FLAME 3 dataset paper describes radiometric TIFFs whose pixels hold floating-point temperatures in degrees Celsius, in contrast to standard 8-bit thermal images. The other is the rendered view, white-hot, black-hot or a color palette, saved as an ordinary image.

For object detection in this workflow, export the rendered view and keep the radiometric originals for temperature analysis. Annotators draw a bounding box around the warm shape of a person or a car, exactly as they would on a daylight photo, and the model learns from the same kind of pixels it will see in production.

Ultralytics Platform takes JPEG, PNG, WebP, BMP, TIFF, HEIC, AVIF, JP2, DNG and MPO images up to 50 MB each, according to the dataset docs. During processing, grayscale images are expanded to RGB, so a single-channel white-hot export needs no conversion before upload.

Your export settings decide what annotators and models see#

A frame that looks crisp in the camera's viewer can arrive as a nearly flat gray image if its raw range was never mapped to visible contrast. Three settings matter most.

Bit depth. Raw thermal sensors often write 16-bit values. By default, the Ultralytics Python package's imread function reads a 16-bit image as 8-bit by keeping its high byte; passing cv2.IMREAD_ANYDEPTH preserves full depth. If your scene spans only a small slice of the 16-bit range, the default leaves little contrast, so export 8-bit images with the contrast stretch you want to see.

Palette. Pick one palette for the whole dataset, white-hot, black-hot or a color map, and keep it for training and deployment. A model trained on white-hot frames sees an iron-palette frame as a different kind of image.

Channels. A thermal frame stacked with RGB as one four-channel image is a multispectral image. Platform can hold it, but Smart annotation is unavailable on datasets with more than three image channels, so label the three-channel rendered thermal view.

Here is what Platform does with the common thermal exports:

Thermal exportWhat Platform does with it
8-bit grayscale JPEG or PNGExpanded to RGB and stored as JPEG at quality 92
8-bit color-palette PNGExpanded to RGB and stored as JPEG at quality 92
Most TIFFsStored byte-for-byte as uploaded
Multi-band floating-point TIFF, dataset of up to 3 channelsThe exception: first three bands kept, scaled to 8-bit and re-encoded
More than three channels, such as thermal plus RGBStored, but Smart annotation is unavailable

Images larger than 4096 px on their longest side are resized with their aspect ratio kept, except TIFFs stored byte-for-byte.

Two thermal datasets on our benchmark, with very different scores#

UL37 is the auto-annotation benchmark behind the VLM Leaderboard: 360 scored images, 10 from each of 36 real detection datasets, plus 10 COCO reference images, run through the same pipeline Platform users get, with each dataset's own class names. The Ultralytics Benchmark docs list its sensor types, from RGB and fisheye to X-ray, MRI and thermal infrared. Two of its datasets are thermal.

HIT-UAV is high-altitude thermal drone imagery: 2,898 images on Platform, captured with a DJI Matrice M210 V2 and Zenmuse XT2 thermal camera at 60 to 130 m, by day and by night, over schools, parking lots, roads and playgrounds. Its classes are person, car, bicycle and other vehicle, plus a don't-care class for objects too ambiguous to label. HIT-UAV is licensed CC BY 4.0.

The HIT-UAV dataset page on Ultralytics Platform with thermal drone images of people and vehicles

The HIT-UAV dataset on Ultralytics Platform: 2,898 high-altitude thermal drone images of people and vehicles.

LLVIP is street surveillance from a paired visible and infrared camera, most of it shot in very dark conditions. The Platform version keeps only the infrared images, 15,486 of them, with one class: person. LLVIP is released for research use only, so it works for benchmarking and experiments but not as training data for a commercial product.

Both are thermal, yet their samples sit at opposite ends of the benchmark.

Bar chart of mAP50 on the LLVIP and HIT-UAV thermal samples for Gemini 4 Argon, Gemini 4 Carbon, Gemini 4 Neon, GPT-6.1 Terra, Ultralytics VLM1 2B, Ultralytics VLM1 4B and the 55-model mean

mAP50 on the 10-image LLVIP and HIT-UAV samples from the VLM Leaderboard, December 2, 2026 update. Every model shown scores lower on the HIT-UAV sample than on the LLVIP sample. Averaged over all 55 models on the leaderboard, the LLVIP sample scores 0.699 mAP50, the second highest of the 36 datasets. The HIT-UAV sample averages 0.203, the 12th lowest. The two datasets differ in viewpoint, object size and classes, so a high score on one thermal dataset tells you little about another; test on frames like your own.

Gemini 4 Neon leads HIT-UAV and Gemini 4 Argon leads LLVIP#

Leaderboard figures here are as of its December 2, 2026 update, and each dataset score comes from its 10 sampled images, so treat them as signals rather than verdicts.

On HIT-UAV, Gemini 4 Neon posts the top score, 0.779 mAP50. Gemini 4 Carbon scores 0.640, Gemini 4 Argon scores 0.552 and GPT-6.1 Terra 0.430.

On LLVIP, Argon posts the top score of all 55 models, 0.915, with Carbon, Neon and Terra tied at 0.883. On street-level infrared, several models already produce strong first drafts to review.

Ultralytics VLM1 4B scores 0.831 on LLVIP, 11th of 55 models, and Ultralytics VLM1 2B 0.782, both at under half a second per image with no provider key. On HIT-UAV's small, high-altitude targets they score 0.312 and 0.342, well behind the Gemini 4 models, so test a frontier model there before labeling a full batch.

The LLVIP dataset page on Ultralytics Platform with infrared street images of pedestrians at night

The LLVIP dataset on Ultralytics Platform: 15,486 infrared frames of pedestrians in low-light street scenes, where Gemini 4 Argon posts the top benchmark score.

The models also differ in speed and reliability. The time and failure columns below come from the full mixed-domain UL37 run, not from thermal images alone:

Models are listed alphabetically.

ModelHIT-UAV mAP50LLVIP mAP50Median time per imageFailed requests
Gemini 4 Argon0.5520.9154.6 s0%
Gemini 4 Carbon0.6400.8837.6 s1.4%
Gemini 4 Neon0.7790.88323.9 s7.5%
GPT-6.1 Terra0.4300.8835.1 s0%
Ultralytics VLM1 2B0.3420.7820.3 s0%
Ultralytics VLM1 4B0.3120.8310.4 s0%

Full results for every model, including each one's boxes on HIT-UAV and LLVIP beside the expected labels, are on the VLM Leaderboard.

Within Platform, start with Ultralytics VLM1 on street-level infrared like LLVIP: Ultralytics VLM1 2B is the Smart-mode default on detection datasets with 1 to 200 classes, both sizes need no provider key and are free for a limited time, and they draft in under half a second per image. For high-altitude drone thermal like HIT-UAV, also test Gemini 4 Carbon: second of the 55 models there, about 0.139 behind Neon, at about a third of Neon's time per image. Compare them on a handful of your own representative frames before committing a batch. Our guide to choosing a VLM by precision and recall explains how to weigh missed objects against false boxes.

How to label thermal images in Ultralytics Platform#

The workflow is the same one Platform uses for any detection dataset, with a vision language model such as Ultralytics VLM1 doing the first pass. The annotation docs cover every option.

  1. Export your frames as 8-bit JPEG, RGB PNG or TIFF in one palette, following the settings above.
  2. Create a dataset. In Ultralytics Platform, open Annotate, click New Dataset, choose the detect task and upload the images or a ZIP. New datasets start Public on the Free and Pro plans unless you change the workspace visibility, so choose Private before uploading sensitive footage. Archives can be up to 10 GB on Free, 20 GB on Pro and 50 GB on Enterprise.
  3. Define your classes. In the Classes tab, add each class, such as person and car. Class-prompted models detect the dataset's own class names, from 1 to 200 classes.
  4. Test Ultralytics VLM1 first. Open an image and switch to Smart mode (S), which opens with Ultralytics VLM1 2B on a detection dataset. Press Predict (P), then try Ultralytics VLM1 4B under Ultralytics in the model picker. Try day and night frames and your most distant shots.
  5. Add a frontier model if Ultralytics VLM1 misses too much. Create a Gemini API key in Google AI Studio on a project with billing enabled, since Google offers Carbon to paying developers. Add it under Settings > API Keys in the workspace that owns the dataset; Google bills your key directly, and the provider key docs have the details. Then choose Gemini 4 Carbon under Google in the Smart-mode picker, press Predict (P) and compare it on the same frames.
  6. Run Batch Annotation. On the dataset page, choose More actions > Batch Annotation, select the model that did best on your frames (the dialog may open on another model), review the Estimated Cost and click Start. By default it labels only unlabeled images, never changes existing labels, and saves a dataset version first so you can roll back. Batch Annotation with Ultralytics VLM1 2B or Ultralytics VLM1 4B is free for a limited time; with a paid provider model, Platform's processing charge is separate from the provider bill. See Ultralytics pricing.
  7. Review and correct. Add the small, distant targets the model skipped. To use SAM for a miss, switch the Smart-mode model picker to a SAM model, select the class, click the object, and press Enter to save, or turn on auto-apply (A) for one-click boxes. Human-in-the-loop review is what turns a first draft into training data.
  8. Train. Start a cloud training run from the dataset page, or train anywhere with the dataset's ul:// URI. Keep frames from the same recording sequence in one split, using bulk move-to-split if needed, so near-identical frames don't leak between training and validation:
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-thermal-dataset", epochs=100, imgsz=640)

To start from public thermal data instead, clone HIT-UAV (CC BY 4.0) into your workspace and add your own frames to it; LLVIP's research-only terms rule it out for commercial training. For drone footage where people span only a few pixels, our guide to small object detection with image tiling covers the inference side.

Who should label thermal images this way#

This workflow fits teams building detectors on thermal imagery: drone search and rescue, night-time perimeter security, wildlife surveys, traffic monitoring after dark and aerial inspection. If your frames can be exported as ordinary images, Ultralytics Platform takes you from upload to a model-drafted, human-reviewed dataset to a trained Ultralytics YOLO26 model in one workspace.

It is not built for temperature itself. Ultralytics Platform labels images, so per-pixel temperature regression or calibrated hot-spot measurement stays in your radiometric toolchain. Video uploads become frames at up to 1 frame per second and at most 100 frames per video, labeled as individual images.

The annotation docs cover every labeling option, and the cloud training guide covers the next step.

Frequently asked questions

  • Yes. Ultralytics Platform labels thermal frames exported as JPEG, PNG or TIFF. It accepts JPEG, PNG, WebP, BMP, TIFF and other formats up to 50 MB per image and expands grayscale frames to RGB. It also auto-annotates them with vision language models such as Ultralytics VLM1 and Gemini 4 Carbon, then trains Ultralytics YOLO26 on the result.

  • Yes. On 10-image samples in our VLM Leaderboard, Gemini 4 Carbon scores 0.883 mAP50 on LLVIP infrared pedestrians, where Gemini 4 Argon has the best score of 55 models at 0.915 and Ultralytics VLM1 4B scores 0.831, and 0.640 on HIT-UAV thermal drone imagery, where Gemini 4 Neon leads at 0.779. The HIT-UAV sample scored far lower than the LLVIP sample across models, so test on your own frames and review every batch. Our guide to VLM precision and recall shows how to weigh missed objects against false boxes.

  • For object detection, label 8-bit rendered images in one consistent palette, the same view your model will see in production, and keep the radiometric originals for temperature analysis. By default, Ultralytics' imread reads a 16-bit image as 8-bit by keeping its high byte, which can flatten a narrow thermal range unless you pass cv2.IMREAD_ANYDEPTH.

  • LLVIP is a paired visible and infrared dataset of pedestrians in low-light street scenes, released by BUPT in 2021. The Ultralytics Platform version keeps the 15,486 infrared images with one class, person, and it is one of the 36 datasets in our UL37 auto-annotation benchmark. It is licensed for research use only, so a commercial thermal model needs frames you own or a permissive dataset such as HIT-UAV; our data collection and annotation guide covers building your own.

  • Batch Annotation shows an Estimated Cost for Platform processing before you click Start, so test a few representative frames first and check the estimate for the full run. Batch Annotation with Ultralytics VLM1 is free for a limited time; a paid provider model's usage is billed separately to your own provider API key, and Platform's charges are listed on Ultralytics pricing. The Batch Annotation docs explain the options.

  • Train a detector on the camera's own exported frames, then run it on the device or a server that reads the stream. In Ultralytics Platform you label the frames, auto-annotate them with a vision language model, train an Ultralytics YOLO26 model, and export it to formats such as ONNX, TensorRT or OpenVINO for the hardware beside the camera. Train on the same palette the camera streams, so the model sees the same kind of image in production.

Written by

Sergiu Waxmann
Sergiu Waxmann

Lead Software Engineer · Ultralytics

Sergiu Waxmann is the Lead Web Developer at Ultralytics, where he focuses on building intuitive and dynamic web experiences. A software engineer specializing in modern web development frameworks, he holds a Bachelor's degree in Computer Software Engineering from Saxion University of Applied Sciences.

Comments

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

Similar articles

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
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
How Ultralytics Platform uses AI to automate annotation

How Ultralytics Platform uses AI to automate annotation

Discover how Ultralytics Platform uses AI to automate annotation, manage large datasets, improve consistency, and speed up computer vision development.
Learn more
Smart dataset management in computer vision with Ultralytics Platform

Smart dataset management in computer vision with Ultralytics Platform

Explore how you can use Ultralytics Platform for better dataset management in your computer vision projects. Track, compare, and improve your datasets with ease.
Learn more
Deploying computer vision models with Ultralytics Platform

How Ultralytics Platform simplifies computer vision model deployment

See how Ultralytics Platform brings together everything needed for computer vision model deployment, from testing to production-ready APIs.
Learn more
Training YOLO models faster with Ultralytics Platform

Train YOLO models faster with Ultralytics Platform

Find out how to train YOLO models faster with Ultralytics Platform, an end-to-end environment built to accelerate the path from data to deployment.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning