Add model card for SAM3-LiteText

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +65 -3
README.md CHANGED
@@ -1,3 +1,65 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pipeline_tag: image-segmentation
4
+ tags:
5
+ - sam3
6
+ - vision-language
7
+ - segmentation
8
+ - efficient-sam
9
+ ---
10
+
11
+ # SAM3-LiteText
12
+
13
+ SAM3-LiteText is a lightweight text encoding framework for vision-language segmentation, introduced in the paper [SAM3-LiteText: An Anatomical Study of the SAM3 Text Encoder for Efficient Vision-Language Segmentation](https://huggingface.co/papers/2602.12173).
14
+
15
+ ## Introduction
16
+
17
+ Vision-language segmentation models like SAM3 enable flexible, prompt-driven visual grounding but often rely on large text encoders designed for open-ended language understanding. SAM3-LiteText addresses this by replacing the original SAM3 text encoder with a compact **MobileCLIP** student optimized via knowledge distillation. This approach reduces text encoder parameters by up to 88% and significantly lowers the memory footprint while maintaining segmentation performance comparable to the original model.
18
+
19
+ ## Resources
20
+
21
+ - **Paper:** [SAM3-LiteText: An Anatomical Study of the SAM3 Text Encoder for Efficient Vision-Language Segmentation](https://huggingface.co/papers/2602.12173)
22
+ - **Code:** [GitHub Repository (sam3_litetext branch)](https://github.com/SimonZeng7108/efficientsam3/tree/sam3_litetext)
23
+ - **Project Page:** [EfficientSAM3](https://simonzeng7108.github.io/efficientsam3/)
24
+
25
+ ## Sample Usage
26
+
27
+ The following example demonstrates how to perform inference with a text prompt using an EfficientSAM3 model variant with a distilled MobileCLIP text encoder:
28
+
29
+ ```python
30
+ from sam3.model_builder import build_efficientsam3_image_model
31
+ from sam3.model.sam3_image_processor import Sam3Processor
32
+
33
+ # Load model with distilled text encoder
34
+ model = build_efficientsam3_image_model(
35
+ checkpoint_path="efficient_sam3_tinyvit_m_mobileclip_s1.pt",
36
+ backbone_type="tinyvit",
37
+ model_name="11m",
38
+ text_encoder_type="MobileCLIP-S1"
39
+ )
40
+
41
+ # Process image and predict with text prompt
42
+ processor = Sam3Processor(model)
43
+ inference_state = processor.set_image(image)
44
+ inference_state = processor.set_text_prompt(prompt="shoe", state=inference_state)
45
+
46
+ masks = inference_state["masks"]
47
+ scores = inference_state["scores"]
48
+ print(f"Found {len(scores)} masks. Scores: {scores}")
49
+ ```
50
+
51
+ ## Citation
52
+
53
+ If you use SAM3-LiteText or the EfficientSAM3 framework in your research, please cite:
54
+
55
+ ```bibtex
56
+ @misc{zeng2025efficientsam3progressivehierarchicaldistillation,
57
+ title={EfficientSAM3: Progressive Hierarchical Distillation for Video Concept Segmentation from SAM1, 2, and 3},
58
+ author={Chengxi Zeng and Yuxuan Jiang and Gao Ge and Shuai Wang and Fan Aaron Zhang},
59
+ year={2025},
60
+ eprint={2511.15833},
61
+ archivePrefix={arXiv},
62
+ primaryClass={cs.CV},
63
+ url={https://arxiv.org/abs/2511.15833},
64
+ }
65
+ ```