ONNX Model Zoo

TanviKulkarni07/sam2-trt-engines

By TanviKulkarni07 · ↓ 0 · ♥ 0 · Updated 2026-02-11

What's in this repo

This page lists the files in TanviKulkarni07/sam2-trt-engines, including sam2_decoder.onnx, sam2_decoder_points.onnx, sam2_encoder.onnx and more.

  • 6 ONNX models (.onnx files)
  • 16 files, including 6 .onnx, 6 .engine, 2 .data, 1 .md
  • Last updated 2026-02-11

ONNX files

File Size Download
sam2_decoder.onnx — Download
sam2_decoder_points.onnx — Download
sam2_encoder.onnx — Download
sam2_mem_encoder.onnx — Download
sam2_objproj.onnx — Download
sam2_proj.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

SAM 2.1 Hiera-Tiny ONNX Engines

This repository contains the optimized ONNX versions of the SAM 2.1 (Segment Anything Model 2) using the hiera_tiny backbone. These models have been exported with dynamic axes and device-agnostic tracing, making them ideal for high-performance inference in TensorRT or ONNX Runtime.

🚀 Model Components

To support the full video and image segmentation pipeline, the model is split into modular components:

File Description
.onnx Onnx models exported from Pytorch sam2 models with 'hiera_tiny' checkpoints.
.trt TRT engines exported from Onnx models.

🔗 Video Segmentation

For real-time video segmentation using these TensorRT engines, visit my Github Repository.

Citations

If you use these weights, please cite the original SAM 2 research by Meta AI:

@inproceedings{ ravi2025sam, title={{SAM} 2: Segment Anything in Images and Videos}, author={Nikhila Ravi and Valentin Gabeur and Yuan-Ting Hu and Ronghang Hu and Chaitanya Ryali and Tengyu Ma and Haitham Khedr and Roman R{"a}dle and Chloe Rolland and Laura Gustafson and Eric Mintun and Junting Pan and Kalyan Vasudev Alwala and Nicolas Carion and Chao-Yuan Wu and Ross Girshick and Piotr Dollar and Christoph Feichtenhofer}, booktitle={The Thirteenth International Conference on Learning Representations}, year={2025}, url={https://openreview.net/forum?id=Ha6RTeWMd0} }

Model info

onnx base_model:facebook/sam2.1-hiera-tiny base_model:quantized:facebook/sam2.1-hiera-tiny license:apache-2.0 region:us
↓ 0 ♥ 0

Created: 2026-02-11

Updated: 2026-02-11

View on Hugging Face

Files (16)

.gitattributes
README.md
sam2_decoder.onnx ONNX
sam2_decoder.onnx.data
sam2_decoder_masks.engine
sam2_decoder_points.engine
sam2_decoder_points.onnx ONNX
sam2_decoder_points.onnx.data
sam2_encoder.engine
sam2_encoder.onnx ONNX
sam2_mem_encoder.engine
sam2_mem_encoder.onnx ONNX
sam2_objproj.engine
sam2_objproj.onnx ONNX
sam2_proj.engine
sam2_proj.onnx ONNX

Related models