Perception Models: Powerful Models for Image, Video, and Audio Perception

December 18, 2025 · View on GitHub

Code License

This repo is the home to the state-of-the-art for image and video perception: Perception Encoder (PE) for image, video, audio encoding, and Perception Language Model (PLM) for decoding.

Updates

  • [Dec-16-25]: We have released the Perception Encoder Audio-Visual (PE-AV) and Perception Encoder Audio-Frame (PE-A-Frame) models: [Blog][paper] :fire::fire:
  • [Jul-14-25]: PerceptionLM is now available in Hugging Face transformers. :fire::fire:
  • [Jul-11-25]: We have release 8 new checkpoints for Perception Encoder: 2x small core models (T and S), 2x tiling-tuned lang models (G and L), and 4x smaller spatial models (L, B, S, T). Give them a try! :fire::fire::fire:
  • [May-28-25]: Perception Encoder has been integrated into timm! :fire::fire:
  • [Apr-18-25]: Perception Language Model (PLM) and PLM-VideoBench are added to lmms-eval. This makes it easy to reproduce PLM results and allows you to evaluate on the PLM-VideoBench. [lmms-eval] :fire::fire:
  • [Apr-17-25]: Perception Encoder (PE) and Perception Language Model (PLM) are released. [Blog] :fire::fire:

Perception Encoder (PE)

Data Hugging Face Collection Paper Paper Paper Colab Demo Model License

Perception Encoder (PE) is a family of the state-of-the-art vision and audio encoders for encoding images, video, and audio: PE core outperforms SigLIP2 on image and InternVideo2 on video benchmarks; PE lang can be used to outperform QwenVL2.5 and InternVL3 on vision language modeling; and PE spatial outperforms DINOv2 on dense prediction tasks. And all of this follows the same, easily scalable contrastive pretraining. Please see README for more details.

Models

PE has 4 types of checkpoints, each excelling in a different area of computer vision and audio understanding:

  • PE core: a CLIP model excels in vision-language tasks such as zero-shot image and video classification and video retrieval.
  • PE lang: a LLM-aligned PE that powers PLM to compete at the forefront of multimodal LLM benchmarks.
  • PE spatial: a spatially tuned PE that outperforms best spatial models for vision-centric tasks such as detection, depth estimation, and tracking.
  • PE audio-visual: a CLIP Model that embeds audio, video, audio-video, and text into a joint embedding space.

Vision-Language Benchmarks

ModelCheckpointIN-1kIN-v2IN-AObjectNetCOCO-T2IKinetics-400VTT-T2V
T/16 384pxPE-Core-T16-38462.154.721.143.933.041.528.8
S/16 384pxPE-Core-S16-38472.765.049.560.042.655.039.3
B/16 224pxPE-Core-B16-22478.471.762.471.950.965.647.6
L/14 336pxPE-Core-L14-33683.577.989.084.757.173.450.3
G/14 448pxPE-Core-G14-44885.480.292.688.258.176.951.2

Multimodal LLM Benchmarks

🔬 Controlled Setting:

EncoderCheckpointDoc VQA (val)InfoQA (val)TextVQAMVBenchPerceptionTest (val)EgoSchema (val)
L/14 448pxPE-Lang-L14-44881.946.473.052.354.759.8
G/14 448pxPE-Lang-G14-44884.448.375.252.456.062.0

🔥 SotA Setting:

ModelEncoderDoc VQA (test)InfoQA (test)TextVQAMVBenchPerceptionTest (test)EgoSchema (test)
PLM-3BPE-Lang-L14-448-Tiling*93.874.684.374.779.366.9
PLM-8BPE-Lang-G14-448-Tiling*94.680.986.577.182.768.8

* These checkpoints were aligned with tiling. Use them if you use higher than 448 resolution with tiling in the LLM decoder.

Vision-centric Benchmarks

🦾 Main model:

EncoderCheckpointADE20k
Segmentation
Linear Probe mIoU
DAVIS
Tracking
Zero-Shot J&F
LVIS
Mask R-CNN 1024px
Box / Mask mAP
COCO
DETA 1824px
Box mAP
G/14 448pxPE-Spatial-G14-44849.361.554.2 / 49.366.0

Visualization of PCA of non-maked visual tokens, mapped to RGB values.

⚗️ Distilled Models:

Encoder
(Distilled from G)
CheckpointADE20k
Segmentation
Linear Probe mIoU
DAVIS
Tracking
Zero-Shot J&F
T/16 512pxPE-Spatial-T16-51227.655.0
S/16 512pxPE-Spatial-S16-51237.557.5
B/16 512pxPE-Spatial-B16-51244.458.9
L/14 448pxPE-Spatial-L14-44848.160.6

See paper for comparison to other models.

Audio-Visual Benchmarks

ModelCheckpointAvg RetrievalAudioCaps T→AAudioCaps T→VAudioCaps V→AClotho T→AValor T→AValor T→VVCTK A→TVGGSound V→AInternal V→A
🆕AV S 16 framespe-av-small-16-frame45.241.218.675.424.029.870.196.134.117.9
🆕AV B 16 framespe-av-base-16-frame47.043.119.880.623.431.970.094.839.020.4
🆕AV L 16 framespe-av-large-16-frame48.244.719.586.122.835.070.985.645.223.9
🆕AV S all framespe-av-small48.141.818.877.423.929.370.994.935.440.5
🆕AV B all framespe-av-base50.242.719.683.723.830.871.294.940.744.6
🆕AV L all framespe-av-large51.645.820.888.323.035.170.985.648.346.5

Audio Event Localization Benchmarks

ModelCheckpointInternal Bench (AUROC)ASFX-SED (AUROC)AudioSet-Strong (AUROC)DESED (AUROC)UrbanSED (AUROC)
🆕A-Frame Spe-a-frame-small0.910.830.960.960.88
🆕A-Frame Bpe-a-frame-base0.920.830.960.980.89
🆕A-Frame Lpe-a-frame-large0.910.830.960.970.89

Getting Started with PE

You can get started with the following example for image and text feature extraction or use our Colab Demo

import torch
from PIL import Image
import core.vision_encoder.pe as pe
import core.vision_encoder.transforms as transforms

print("CLIP configs:", pe.CLIP.available_configs())
# CLIP configs: ['PE-Core-G14-448', 'PE-Core-L14-336', 'PE-Core-B16-224', 'PE-Core-S16-384', 'PE-Core-T16-384']

model = pe.CLIP.from_config("PE-Core-L14-336", pretrained=True)  # Downloads from HF
model = model.cuda()

preprocess = transforms.get_image_transform(model.image_size)
tokenizer = transforms.get_text_tokenizer(model.context_length)

image = preprocess(Image.open("docs/assets/cat.png")).unsqueeze(0).cuda()
text = tokenizer(["a diagram", "a dog", "a cat"]).cuda()

with torch.no_grad(), torch.autocast("cuda"):
    image_features, text_features, logit_scale = model(image, text)
    text_probs = (logit_scale * image_features @ text_features.T).softmax(dim=-1)

print("Label probs:", text_probs)  # prints: [[0.0, 0.0, 1.0]]

Tip

See apps/pe/README.md for details and how to get started!

Getting Started with PE-AV

import os
from core.audio_visual_encoder import PEAudioVisual, PEAudioVisualTransform
import torch

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model = PEAudioVisual.from_config("pe-av-large", pretrained=True).to(device)
transform = PEAudioVisualTransform.from_config("pe-av-large")

video_files = ["assets/train.mp4", "assets/office.mp4"]
descriptions = [
    "A person talking with sirens and a train in the background",
    "Two people talking in an office, with sounds of workers typing on a keyboard"
]

def embed(videos=None, audio=None, text=None):
    inputs = transform(videos=videos, audio=audio, text=text)
    inputs = inputs.to(device)
    with torch.inference_mode(), torch.autocast(device.type, dtype=torch.bfloat16):
        return model(**inputs)

vt_outputs = embed(videos=video_files, text=descriptions)
avt_outputs = embed(videos=video_files, audio=video_files, text=descriptions)
at_outputs = embed(audio=video_files, text=descriptions)

# Compute dot product between visual and text
vt_dot_products = torch.einsum("ij,ij->i", vt_outputs.visual_embeds, vt_outputs.visual_text_embeds)
# Compute dot product between audio_visual and text
avt_dot_products = torch.einsum("ij,ij->i", avt_outputs.audio_visual_embeds, avt_outputs.audio_visual_text_embeds)
# Compute dot product between audio and text
at_dot_products = torch.einsum("ij,ij->i", at_outputs.audio_embeds, at_outputs.audio_text_embeds)
# Compute dot product between audio and video
av_dot_products = torch.einsum("ij,ij->i", avt_outputs.audio_embeds, avt_outputs.video_embeds)

Getting Started with PE-A-Frame

from core.audio_visual_encoder import (
    PEAudioFrame,
    PEAudioFrameTransform,
)
import torch

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model = PEAudioFrame.from_config("pe-a-frame-large", pretrained=True).to(device)
transform = PEAudioFrameTransform.from_config("pe-a-frame-large")

descriptions = ["a person talking"]
inputs = transform(
    audio=["assets/office.mp4"],
    text=descriptions,
).to(device)

with torch.inference_mode():
    outputs = model(**inputs)

# Print the spans for each description (start and end timestamps for when they occur in the audio)
for description, spans in zip(descriptions, outputs.spans):
    span_str = ", ".join([f"({start:.2f}, {end:.2f})" for start, end in spans])
    print(f'"{description}": [{span_str}]')

Tip

See apps/pe/README.md for additional details!

Perception Language Model (PLM)

Data Hugging Face Collection Paper Paper Colab ModelLicense

PerceptionLM (PLM) is a family of open and fully reproducible models to facilitate research in vision-language modeling (VLM). In conjunction with PE, it is powerful enough to compete with the latest state-of-the-art VLMs such as InternVL3 and QwenVL2.5, while using fully open data. We also release the largest spatiotemporally annotated video dense captioning and fine-grained human activity recognition datasets to ever exist.

Description of the image

Models

PLM releases models in three different sizes (1B, 3B and 8B).

PLM Image Benchmark Results

ModelDocVQAChartQATextVQAInfoQAAI2DOCRBenchCOCONocapFlickrMMMUVQAv2OKVQAVizWizMMESEEDBLINKCVBenchRealWorldQAVSRPOPE
PLM1B90.778.682.163.084.9807138.6124.2100.534.881.761.059.7160376.346.873.867.168.888.4
PLM3B93.884.384.374.690.9830144.9126.598.041.284.366.864.0187978.555.481.472.480.488.7
PLM8B94.685.586.580.992.7870146.7129.9105.646.185.669.667.0198979.356.081.375.082.889.9

PLM Video Benchmark Results

ModelVATEXDREAM 1KHow2QAMVBenchNExTQAPerceptionTest (test)STARTVQAVideoMMETVBenchActivityNetQAEgoSchema (test)TemporalBenchTOMATOMotionBench (dev)TempCompass (MCQ)CGBench (clue)Charades STAVideoHallucerHalluc. EventHallusion
PLM1B92.534.386.470.180.372.783.750.349.250.462.560.418.225.552.264.643.655.249.279.5
PLM3B96.137.489.474.783.479.384.855.354.958.966.266.923.430.960.469.347.257.755.576.5
PLM8B99.735.990.777.184.182.784.959.358.363.567.368.828.333.261.472.746.458.657.777.3

PLM Resources

ResourceDescriptionDocumentation
EvaluationEvaluation of PLM using lmms-evaldocs/evaluation.md
Training / FinetuningTraining and finetuning instructions for PLMdocs/training.md
PLM-VideoBenchEvaluation on PLM-VideoBench using lmms-evaldocs/plm_videobench.md
End-to-End Finetuning ExampleEnd-to-end finetuning example on radiology imagesdocs/finetune_example.md
Generating ResponseGenerate responses using a trained model with generate.pygenerate.py

Tip

See apps/plm/README.md for details and how to get started!

Dataset Releases

🎥 PE-Video-Dataset (PVD)

PVD comprises 1M high quality and diverse videos. Among them, 120K videos are accompanied by automated and human-verified annotations. and all videos are accompanied with video description and keywords. The videos are motion-centered, covering both first-person and third-person views with a wide coverage of scenes.

🔹 PVD - 1M High-Quality Human Annotated Video Dataset

PVD
output_2
A person's hands pruning a plant with green leaves.
output
A detailed diorama of a rural landscape featuring a horse-drawn carriage moving along a dirt path

🎥 PLM-Video-Human

PLM-Video-Human is a collection of human-annotated resources for training Vision Language Models, focused on detailed video understanding. Training tasks include:

🔹 FGQA — Fine-Grained Question Answering 🔹 RTLoc — Region-Temporal Localization 🔹 RCap — Region Video Captioning 🔹 RDCap — Region Dense Temporal Captioning

FGQA
fgqa
Question Answer
In what direction do you move the tool while removing the shell? Both clockwise and anticlockwise.
STC
stc
Time (s)       Description
[0, 4] The masked subject is a young boy wearing a red jacket and gray pants. He is grasping a monkey bar–like activity in a playground.
[5, 14] He lets go of his hands and runs to the right side of the frame.
[15, 30] The subject is out of frame.
[31, 45] The subject runs back into the frame toward the higher monkey bar in the playground.
[46, 74] He jumps underneath the metal bar and looks up at it. A man wearing a white polo runs toward the subject.
[75, 116] The man in the white polo lifts the subject upward so he can grasp the higher metal bar. The subject holds onto the bar and hangs from it.

🤖 Auto-Generated Datasets

Sythetic image/video captions and QAs used in PLM, please refer to the paper, Section 3 (PLM), for more details. The sythetic annotations covers: SA1B, Openimages, Obejct365, ArxivQA, UCSF, PDFAcc, YT-1B, Ego4d with captions, YT-1B with MCQAs and Ego4d with QAs.

🖼️ PLM-Image-Auto — Automatically generated image datasets

📹 PLM-Video-Auto — Automatically generated video datasets


Installation :wrench:

git clone https://github.com/facebookresearch/perception_models.git
cd perception_models

conda create --name perception_models python=3.12
conda activate perception_models

# Install PyTorch
pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 xformers --index-url https://download.pytorch.org/whl/cu124

# We use torchcodec for decoding videos into PyTorch tensors
conda install ffmpeg -c conda-forge
pip install torchcodec==0.1 --index-url=https://download.pytorch.org/whl/cu124

pip install -e .

This will install an editable version of repo, allowing you to make changes to the code without needing to reinstall the package every time.

🙏 Acknowledgement

We are thankful to Meta Lingua for releasing their code as open-source contributions. The code structure and code implementation of the LLM is directly forked from Meta Lingua. We are also thankful to Open_CLIP for open-source contributions in CLIP training, and CLIP_benchmark for CLIP model evaluation.

📜 Citation

@article{bolya2025PerceptionEncoder,
  title={Perception Encoder: The best visual embeddings are not at the output of the network},
  author={Daniel Bolya and Po-Yao Huang and Peize Sun and Jang Hyun Cho and Andrea Madotto and Chen Wei and Tengyu Ma and Jiale Zhi and Jathushan Rajasegaran and Hanoona Rasheed and Junke Wang and Marco Monteiro and Hu Xu and Shiyu Dong and Nikhila Ravi and Daniel Li and Piotr Doll{\'a}r and Christoph Feichtenhofer},
  journal={arXiv:2504.13181},
  year={2025}
}

@article{cho2025PerceptionLM,
  title={PerceptionLM: Open-Access Data and Models for Detailed Visual Understanding},
  author={Jang Hyun Cho and Andrea Madotto and Effrosyni Mavroudi and Triantafyllos Afouras and Tushar Nagarajan and Muhammad Maaz and Yale Song and Tengyu Ma and Shuming Hu and Hanoona Rasheed and Peize Sun and Po-Yao Huang and Daniel Bolya and Suyog Jain and Miguel Martin and Huiyu Wang and Nikhila Ravi and Shashank Jain and Temmy Stark and Shane Moon and Babak Damavandi and Vivian Lee and Andrew Westbury and Salman Khan and Philipp Kr\"{a}henb\"{u}hl and Piotr Doll{\'a}r and Lorenzo Torresani and Kristen Grauman and Christoph Feichtenhofer},
  journal={arXiv:2504.13180},
  year={2025}
}