Downloads · 30 days
370
16% of all-time downloads
theairlabcmu/AnyThermal
AnyThermal is a image feature extraction model from theairlabcmu. Use it for the image feature extraction task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as bsd-3-clause-clear.
Downloads · 30 days
370
16% of all-time downloads
All-time downloads
2.3K
Public
Parameters
86.6M
11.3 GB on disk
Likes
7
Public
Click a slice to open those files.
.zip2.5 GB · 88%
From the Hugging Face model README
AnyThermal is a task-agnostic thermal feature extraction backbone that provides robust representations across diverse environments and robotic perception tasks. Unlike existing thermal models trained on task-specific, small-scale data, AnyThermal generalizes across multiple environments (indoor, aerial, off-road, urban) and tasks without requiring task-specific fine-tuning.
AnyThermal distills knowledge from the DINOv2 visual foundation model into a thermal encoder using diverse RGB-Thermal paired data across multiple environments. This approach enables the model to learn universal thermal representations that transfer effectively to downstream tasks.
AnyThermal uses a teacher-student distillation framework:
This approach relaxes the need for perfect pixel-level alignment or precise synchronization, enabling distillation from datasets with approximate correspondences.
AnyThermal was trained on five diverse RGB-Thermal datasets spanning multiple environments:
| Environment | Datasets |
|---|---|
| Urban | VIVID++, STheReO, Freiburg, TartanRGBT |
| Aerial | Boson Nighttime Dataset |
| Indoor | TartanRGBT |
| Off-road | TartanRGBT |
TartanRGBT is our newly introduced dataset collected using the first open-source platform with hardware-synchronized RGB-Thermal stereo acquisition. It contributes data across indoor, off-road, and urban environments. The datset can be found here - TaratnRGBT Dataset To know more about the paylaod please visit our project page - Project Page
AnyThermal demonstrates state-of-the-art or competitive performance across multiple thermal perception tasks. We have benchmarked its performance on three tasks
For both quantitative and qualitative results please visit our [Project Page](https://anythermal.github.io .
We are exploring more tasks where the backbone can be leveragead are are looing forard to learn more from the commutniy how they think AnyThermal can push the frontiers of thermal perception.
import torch
from transformers import AutoImageProcessor, AutoModel
from PIL import Image
# Load the custom processor and model
repo_id = "theairlabcmu/AnyThermal"
processor = AutoImageProcessor.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModel.from_pretrained(repo_id)
# Load your image (works with RGB, Grayscale, etc.)
image = Image.open("path_to_your_image.jpg")
# Preprocess: This automatically handles RGB conversion and
# snaps dimensions to the nearest multiple of 14.
inputs = processor(images=image, return_tensors="pt")
# Inference
with torch.no_grad():
outputs = model(**inputs)
Please visit our training and evaluation codebase where we show how to use Anytehrmal and use it with 3 different task specific heads. All thrainign and evaluation wer edoen without any task specific finetuning of the backbone weights.
✅ Task-Agnostic: Works across multiple downstream tasks without task-specific training
✅ Environment-Agnostic: Generalizes to indoor, outdoor, urban, off-road, and aerial scenarios
✅ Cross-Modal: Enables thermal-to-RGB and RGB-to-thermal applications
✅ Efficient: Single forward pass produces features for multiple tasks
✅ Foundation Model Quality: Leverages DINOv2's strong semantic representations
⚠️ Input Format: Requires thermal images in 3-channel format (grayscale replicated to RGB)
⚠️ Data Bias: Performance may vary on environments not well-represented in training data
For detailed result please see the Scaling graphs on our Project Page
Key Finding: Multi-environment training is critical. Adding TartanRGBT significantly improves performance across all tasks and domains.
Training on a single environment (e.g., aerial only) introduces domain bias:
Conclusion: Multi-domain RGB-thermal data is essential for learning transferable thermal representations.
If you use AnyThermal in your research, please cite:
@misc{maheshwari2026anythermallearninguniversalrepresentations,
title={AnyThermal: Towards Learning Universal Representations for Thermal Perception},
author={Parv Maheshwari and Jay Karhade and Yogesh Chawla and Isaiah Adu and Florian Heisen and Andrew Porco and Andrew Jong and Yifei Liu and Santosh Pitla and Sebastian Scherer and Wenshan Wang},
year={2026},
eprint={2602.06203},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2602.06203},
}
This model is released under the BSD-3-Clause-Clear License. See the LICENSE file for details.
This work was conducted at the AirLab, Carnegie Mellon University. The model builds upon the DINOv2 foundation model from Meta AI Research.
For questions, issues, or collaboration inquiries (Hoping this has sparked your interest!!):
Last Updated: February 2026