← 开源
SimonZeng7108

efficientsam3

EfficientSAM3 compresses SAM3 into lightweight, edge-friendly models via progressive knowledge distillation for fast promptable concept segmentation and tracking.

ModelsVision modelsJupyter Notebook
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
694
Star
59
Fork
+3
本周
6
贡献者
创建于 2025-10-16 · 更新于 2026-10-14 · 今日第 14895 名
主要开发者
SimonZeng7108clcl777YuxuanJJ

SimonZeng7108/efficientsam3 排名第 14,895,有 694 个星标。

同类别比较

SimonZeng7108/efficientsam3 排名第 14,895,此处有 8 个同类条目;bytedance/DreamID-V 排名第 14,898。

同类别比较
名称排名指标
instantX-research/Regional-Prompting-FLUX14,855
语言:
Python
星标数:
698
分叉数:
31
简介:
Training-free Regional Prompting for Diffusion Transformers 🔥
huyvnphan/PyTorch_CIFAR1014,865
语言:
Python
星标数:
697
分叉数:
161
简介:
Pretrained TorchVision models on CIFAR10 dataset (with weights)
MeiGen-AI/OPSD-V14,880
语言:
Python
星标数:
695
分叉数:
46
简介:
On-Policy Self-Distillation for Post-Training Few-Step Autoregressive Video Generators
stepfun-ai/NextStep-114,891
语言:
Python
星标数:
695
分叉数:
26
简介:
[🚀 ICLR 2026 Oral] NextStep-1: SOTA Autogressive Image Generation with Continuous Tokens. A research project developed by the StepFun’s Multimodal Intelligence team.
bytedance/DreamID-V14,898
语言:
Python
星标数:
694
分叉数:
96
简介:
[ECCV 2026 Oral] DreamID-V: Bridging the Image-to-Video Gap for High-Fidelity Face Swapping via Diffusion Transformer
TIGER-AI-Lab/VLM2Vec14,911
语言:
Python
星标数:
693
分叉数:
65
简介:
This repo contains the code for "VLM2Vec / MMEB" [ICLR 2025], "VLM2Vec-V2 / MMEB-V2" [TMLR 2026], and "MMEB-V3" [COLM 2026]
Giphy/celeb-detection-oss14,925
语言:
Python
星标数:
692
分叉数:
68
简介:
GIPHY's Open-Source Celebrity Detection Deep Learning Model
PRBonn/LiDAR-MOS14,926
语言:
Python
星标数:
692
分叉数:
112
简介:
(LMNet) Moving Object Segmentation in 3D LiDAR Data: A Learning-based Approach Exploiting Sequential Data (RAL/IROS 2021)
关键参数与规格
关键参数与规格
参数值
语言Jupyter Notebook
类别Models
子类别Vision models
关键词Distillation, Model architecture, Multimodal
星标数694
分叉数59
贡献者6
创建日期2025-10-16
更新日期2026-10-14
1 天星标数0
7 天星标数3
排名14,895
上次排名14,731
排名变化-164
7 天星标排名7,291
上次 7 天星标排名6,401
7 天星标排名变化-890
总星标排名14,972
上次总星标排名14,950
总星标排名变化-22
README 摘录

** EfficientSAM3 full models (EV-M, RV-M, TV-M) fine-tuned on 5% SA1B data & SACap labels. **[2026/04/19]** **SAM3-LiteText** live on HuggingFace, accepted by ICMR2026! [Docs] [Demo] Thanks @NielsRogge, @yonigozlan! Older updates **[2026/02/18]** **SAM3-LiteText** released! Reduces text encoder by 88% with similar performance. Paper **[2026/01/11]** Stage 1 geometry-prompt fine-tuned weights released. **[2025/12/08]** Stage 1 text encoder weights released (MobileCLIP S0, S1, MobileCLIP2 L). **[2025/12/02]** Stage 1

image encoder weights released (RepViT, TinyViT, EfficientViT). 2M** | **90% smaller** | HF | | **RV-M** | 25. 7M** | **89% smaller** | HF | | **TV-M** | 28. 3M** | **89% smaller** | HF | **Note:** "Text" is the distilled text encoder. "Other" includes segmentation head + scoring. ImageSAM3 (for comparison): Vision: 463M + Text: 354M + Transformer: 30. 5M** SAM3-LiteText Models (Lightweight Text Encoder Only) SAM3-LiteText keeps the SAM3 vision encoder but replaces the text encoder with lightweight MobileCLIP variants. 0M** | **36% smaller** | HF | | **LiteText-S0-32** | 463. 0M** | **36

% smaller** | HF | | **LiteText-S1-16** | 463. 0M** | **34% smaller** | HF | | **LiteText-S1-32** | 463. 0M** | **34% smaller** | HF | | **LiteText-L-16** | 463. 3M** | **27% smaller** | HF | | **LiteText-L-32** | 463. 3M** | **27% smaller** | HF | **Note:** "Text" is the distilled text encoder (42. SAM3-LiteText keeps SAM3's ViT-H vision encoder (~463M) but replaces the text encoder. "Other" includes geometry encoder + segmentation head + scoring. SAM3-LiteText SAM3-LiteText keeps the SAM3 vision encoder but replaces the heavy text encoder with a

lightweight MobileCLIP variant. md **Stage 3:** Full fine-tuning details in README_stage3. Since company policy, I cannot share the codebase. This year I am super excited to work on making SAM3 more efficient and accessible to the community. We welcome contributions to EfficientSAM3! Please feel free to submit pull requests to improve the codebase, add new features, or fix bugs. Particularly, we are looking for: Efficient MedSAM3 integration (see MedSAM2 by Bo Wang Lab) A Gradio demo (e. EfficientTAM

on Hugging Face Spaces) A web demo deployed with Vercel (e. Segment Anything Web UI) Annotation tools, such as X-AnyLabeling and AnyLabeling An iOS or Android app (e. Cutcha Photo on the App Store) An NVCC-based desktop application Anything else that you think is cool! All meaningful contributions will be acknowledged and integrated into both the repository and the associated paper. We warmly welcome all contributors to the repository and happily offer co-authorship to those whose work

merits inclusion in the paper. This project builds upon SAM, SAM2, SAM3, EdgeSAM, EdgeTAM, EfficientTAM, RepViT, TinyViT, EfficientViT, and MobileCLIP. Please refer to their respective licenses for usage terms. Fan Aaron Zhang for allocating resources and supporting this research. Contact us to be featured in this section.

常见问题

记录了多少星标和分叉?

SimonZeng7108/efficientsam3 有 694 个星标和 59 个分叉。

仓库排名是多少?

SimonZeng7108/efficientsam3 排名第 14,895。

记录的语言和类别是什么?

SimonZeng7108/efficientsam3 有 694 个星标,语言为 Jupyter Notebook,类别为 Models。

哪个仓库排名最接近?

SimonZeng7108/efficientsam3 与 bytedance/DreamID-V 比较,后者排名第 14,898,有 694 个星标。

README

EfficientSAM3: Progressive Hierarchical Knowledge Distillation from SAM1, 2 and 3

Chengxi Simon Zeng1,†, Yuxuan Jiang1, Gao Ge1, Shuai Wang2, Duolikun Danier3, Bin Zhu4, Stevan Rudinac2, David Bull1, Fan Aaron Zhang1

1Visual Information Lab, University of Bristol; 2MultiX lab, University of Amsterdam; 3University of Edinburgh; 4Singapore Management University

†Tech Lead & Corresponding Author


Table of Contents

  1. Updates
  2. Model Zoo
  3. Installation
  4. Quick Start
  5. Training and Evaluation
  6. Citations

Updates

  • [2026/06/11] Stage 3 Fine-tuned Models Released! EfficientSAM3 full models (EV-M, RV-M, TV-M) fine-tuned on 5% SA1B data & SACap labels. README cleaned up. Checkpoints on HuggingFace.
  • [2026/04/19] SAM3-LiteText live on HuggingFace, accepted by ICMR2026! [Docs] [Demo] Thanks @NielsRogge, @yonigozlan!

Older updates

  • [2026/02/18] SAM3-LiteText released! Reduces text encoder by 88% with similar performance. Paper
  • [2026/01/11] Stage 1 geometry-prompt fine-tuned weights released.
  • [2025/12/08] Stage 1 text encoder weights released (MobileCLIP S0, S1, MobileCLIP2 L).
  • [2025/12/02] Stage 1 image encoder weights released (RepViT, TinyViT, EfficientViT).

Model Zoo

EfficientSAM3 Full Models (Lightweight Image + Text Encoders)

EfficientSAM3 compresses both SAM3's vision encoder and text encoder into lightweight student models while maintaining competitive performance on downstream benchmarks.

Model Vision Text Decoder Other Params vs ImageSAM3 Download
EV-M 22.2M 42.5M 21.0M 3.5M 89.2M 90% smaller HF
RV-M 25.6M 42.5M 21.0M 3.5M 92.7M 89% smaller HF
TV-M 28.3M 42.5M 21.0M 3.5M 95.3M 89% smaller HF

Note: "Text" is the distilled text encoder. "Transformer" is the mask decoder. "Other" includes segmentation head + scoring. ImageSAM3 (for comparison): Vision: 463M + Text: 354M + Transformer: 30.3M + Other: 14.2M = 861.5M

SAM3-LiteText Models (Lightweight Text Encoder Only)

SAM3-LiteText keeps the SAM3 vision encoder but replaces the text encoder with lightweight MobileCLIP variants.

Model Vision Text Decoder Other Params vs ImageSAM3 Download
LiteText-S0-16 463.0M 42.5M 30.3M 14.2M 550.0M 36% smaller HF
LiteText-S0-32 463.0M 42.5M 30.3M 14.2M 550.0M 36% smaller HF
LiteText-S1-16 463.0M 63.5M 30.3M 14.2M 571.0M 34% smaller HF
LiteText-S1-32 463.0M 63.5M 30.3M 14.2M 571.0M 34% smaller HF
LiteText-L-16 463.0M 123.8M 30.3M 14.2M 631.3M 27% smaller HF
LiteText-L-32 463.0M 123.8M 30.3M 14.2M 631.3M 27% smaller HF

Note: "Text" is the distilled text encoder (42.5M-123.8M). SAM3-LiteText keeps SAM3's ViT-H vision encoder (~463M) but replaces the text encoder. "Other" includes geometry encoder + segmentation head + scoring.


Installation

git clone https://github.com/SimonZeng7108/efficientsam3
cd efficientsam3
pip install -e ".[stage1]"

Prerequisites:

  • Python 3.10+
  • PyTorch 2.0+
  • CUDA 11.8+ (for GPU support)

Quick Start

EfficientSAM3 (Full Models with Lightweight Encoders)

EfficientSAM3 replaces both the SAM3 vision encoder and text encoder with lightweight student models (EfficientViT/RepViT/TinyViT + MobileCLIP).

from sam3.model_builder import build_efficientsam3_image_model
from sam3.model.sam3_image_processor import Sam3Processor
from PIL import Image

# Load EfficientSAM3 TV-M model (uses TinyViT vision encoder + MobileCLIP-S0 text encoder)
model = build_efficientsam3_image_model(
    checkpoint_path="efficientsam3_tinyvit.pt",
    backbone_type="tinyvit",
    model_name="11m",
    text_encoder_type="MobileCLIP-S0",
    text_encoder_context_length=16,
    load_from_HF=False,
)

# Process image
processor = Sam3Processor(model)
image = Image.open("your_image.jpg").convert("RGB")
state = processor.set_image(image)

# Text prompt segmentation
state = processor.set_text_prompt("dog", state)

# Get masks
masks = state["masks"]
scores = state["scores"]
print(f"Found {len(masks)} masks")

SAM3-LiteText

SAM3-LiteText keeps the SAM3 vision encoder but replaces the heavy text encoder with a lightweight MobileCLIP variant.

from sam3.model_builder import build_sam3_image_model
from sam3.model.sam3_image_processor import Sam3Processor
from PIL import Image

# Build model with LiteText encoder (keeps SAM3 ViT, replaces text encoder)
model = build_sam3_image_model(
    checkpoint_path="sam3_litetext_mobileclip_s0_ctx16.pt",
    text_encoder_type="MobileCLIP-S0",
    text_encoder_context_length=16,
    load_from_HF=False,
)

# Use as normal
processor = Sam3Processor(model)
image = Image.open("your_image.jpg").convert("RGB")
state = processor.set_image(image)
state = processor.set_text_prompt("person", state)
masks = state["masks"]

Training and Evaluation

Training:

Evaluation:

  • To evaluate models on COCO dataset:

    python eval/eval_coco.py --coco_root data/coco --output_dir output
    
  • To evaluate text encoder quality (token-level cosine similarity vs SAM3 teacher):

    python eval/eval_text_encoder_similarity.py \
      --student-ckpt /path/to/student_text_encoder_1.pth /path/to/student_text_encoder_2.pth \
      --np-json data/sa-v-text/sa-co-veval/saco_veval_noun_phrases.json \
      --device cuda
    # Optional: override teacher checkpoint
    python eval/eval_text_encoder_similarity.py \
      --teacher-ckpt /path/to/teacher.pth \
      --student-ckpt /path/to/student.pth \
      --np-json data/sa-v-text/sa-co-veval/saco_veval_noun_phrases.json \
      --device cuda
    

Datasets

For dataset setup and download scripts (data/download_*.sh) covering COCO, DAVIS, LVIS, SA-1B, SA-V, LVOS, MOSE, and YouTube-VOS, see:


To-Do List

  • [x] Release Stage 1 Image Encoder Weights: Distilled image encoder weights from SAM3 image encoder for all 9 variants (RepViT, TinyViT, EfficientViT)
  • [x] Release Stage 1 Text Encoder Weights: Distill SAM3 text encoder weights to MobileCLIP-S1 combined with all 9 image encoder variants
  • [x] Release Stage 1+ Fine-Tuned Encoder Weights: Prompt-in-the-loop supervised fine-tuning for improved encoder performance
  • [x] Release SAM3-LiteText Weights: Distilled a lightweight MobileCLIP text encoder that is competitive to the SAM3 text encoder for efficient vision-language segmentation
  • [ ] Release Stage 2 Memory Bank Aligned Model Weights: Models with Perceiver-based memory compression trained on SA-V dataset
  • [x] Release Stage 3 Fine-Tuned Model Weights: End-to-end fine-tuned models on SAM3 dataset with full PCS capabilities
  • [x] ONNX/TensorRT Export: Export models to ONNX for cross-platform deployment (TensorRT engine build supported) — contributed via PR #49 by @tuan2k33. CoreML export still pending.
  • [ ] Web Demo: Interactive web demonstration for real-time concept segmentation and tracking

Call for Pull Requests

The idea for this repository originated from my work on SAM2 at Amazon, particularly as part of the research described in this paper. Since company policy, I cannot share the codebase. This year I am super excited to work on making SAM3 more efficient and accessible to the community.

We welcome contributions to EfficientSAM3! Please feel free to submit pull requests to improve the codebase, add new features, or fix bugs. Particularly, we are looking for:

All meaningful contributions will be acknowledged and integrated into both the repository and the associated paper. We warmly welcome all contributors to the repository and happily offer co-authorship to those whose work merits inclusion in the paper.


Citations

If you find EfficientSAM3 useful in your research, please cite:

@misc{zeng2025efficientsam3,
      title={EfficientSAM3: Progressive Hierarchical Distillation for Video Concept Segmentation from SAM1, 2, and 3},
      author={Chengxi Zeng and Yuxuan Jiang and Gao Ge and Shuai Wang and Duolikun Danier and Bin Zhu and Stevan Rudinac and David Bull and Fan Zhang},
      year={2025},
      eprint={2511.15833},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2511.15833},
}

@misc{zeng2026sam3litetext,
      title={SAM3-LiteText: An Anatomical Study of the SAM3 Text Encoder for Efficient Vision-Language Segmentation},
      author={Chengxi Zeng and Yuxuan Jiang and Gao Ge and Shuai Wang and Duolikun Danier and Bin Zhu and Stevan Rudinac and David Bull and Fan Zhang},
      year={2026},
      eprint={2602.12173},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2602.12173},
}

License

This repository is licensed under the Apache 2.0 License.

This project builds upon SAM, SAM2, SAM3, EdgeSAM, EdgeTAM, EfficientTAM, RepViT, TinyViT, EfficientViT, and MobileCLIP. Please refer to their respective licenses for usage terms.


Acknowledgments

We gratefully acknowledge the University of Bristol Isambard-AI supercomputer cluster for providing computational resources to this project. Special thanks to Dr. Fan Aaron Zhang for allocating resources and supporting this research.


Users

Organizations and projects using EfficientSAM3:

European Space Agency

Note: If you're using EfficientSAM3 in your work, please acknowledge us in your publications or projects. We're happy to promote your work here! Contact us to be featured in this section.

排名相邻
同类项目