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 readListen to this article

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 export | What Platform does with it |
|---|---|
| 8-bit grayscale JPEG or PNG | Expanded to RGB and stored as JPEG at quality 92 |
| 8-bit color-palette PNG | Expanded to RGB and stored as JPEG at quality 92 |
| Most TIFFs | Stored byte-for-byte as uploaded |
| Multi-band floating-point TIFF, dataset of up to 3 channels | The exception: first three bands kept, scaled to 8-bit and re-encoded |
| More than three channels, such as thermal plus RGB | Stored, 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 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.

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 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.
| Model | HIT-UAV mAP50 | LLVIP mAP50 | Median time per image | Failed requests |
|---|---|---|---|---|
| Gemini 4 Argon | 0.552 | 0.915 | 4.6 s | 0% |
| Gemini 4 Carbon | 0.640 | 0.883 | 7.6 s | 1.4% |
| Gemini 4 Neon | 0.779 | 0.883 | 23.9 s | 7.5% |
| GPT-6.1 Terra | 0.430 | 0.883 | 5.1 s | 0% |
| Ultralytics VLM1 2B | 0.342 | 0.782 | 0.3 s | 0% |
| Ultralytics VLM1 4B | 0.312 | 0.831 | 0.4 s | 0% |
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.
- Export your frames as 8-bit JPEG, RGB PNG or TIFF in one palette, following the settings above.
- 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.
- 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.
- 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. - 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. - 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.
- 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
Enterto 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. - 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'
imreadreads a 16-bit image as 8-bit by keeping its high byte, which can flatten a narrow thermal range unless you passcv2.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
Comments
Ask a question, share your results, or help someone else.





























