Add dataset card for Inst2Seg

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +54 -0
README.md ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - image-segmentation
4
+ tags:
5
+ - instance-segmentation
6
+ - instruction-following
7
+ ---
8
+
9
+ # Inst2Seg
10
+
11
+ Inst2Seg is a high-quality and large-scale instruction-based instance segmentation dataset and benchmark introduced in the paper [InstructSAM: Segment Any Instance with Any Instructions](https://huggingface.co/papers/2605.26102).
12
+
13
+ The dataset couples free-form instructions with instance-level masks to support training and evaluation for unified instruction-driven segmentation. It covers several types of instructions:
14
+ - **Category prompts**
15
+ - **Referring expressions**
16
+ - **Reasoning-style instructions**
17
+
18
+ ## Project Resources
19
+
20
+ - **Paper:** [InstructSAM: Segment Any Instance with Any Instructions](https://huggingface.co/papers/2605.26102)
21
+ - **Code:** [GitHub - InstructSAM](https://github.com/DCDmllm/InstructSAM)
22
+
23
+ ## Dataset Description
24
+
25
+ Inst2Seg is designed to address the challenges of multi-instance segmentation under arbitrary natural-language instructions. It enables models to perform high-level instruction understanding and instance-level set prediction. Unlike traditional semantic segmentation, which focuses on regions, Inst2Seg requires models to resolve compositional reasoning and enumerate specific instances based on the provided instructions.
26
+
27
+ ## Data Structure and Usage
28
+
29
+ According to the [official repository](https://github.com/DCDmllm/InstructSAM), the dataset typically consists of annotation files in JSON format. To use the dataset:
30
+
31
+ 1. Download the training and evaluation annotation JSON files from the project's data repository.
32
+ 2. Download the raw images from the official sources of the original datasets (e.g., COCO, RefCOCO, etc.).
33
+ 3. Place the JSON files under `data/training` and `data/eval` as specified in the setup instructions.
34
+
35
+ Evaluation can be performed using the provided scripts:
36
+ ```bash
37
+ bash evaluation/scripts/eval_inst2seg.sh
38
+ bash evaluation/scripts/eval_reasonseg.sh
39
+ bash evaluation/scripts/eval_grefcoco_ap.sh
40
+ bash evaluation/scripts/eval_roborefit.sh
41
+ ```
42
+
43
+ ## Citation
44
+
45
+ If you find this dataset or the associated framework useful, please cite:
46
+
47
+ ```bibtex
48
+ @article{yuan2026instructsam,
49
+ title = {InstructSAM: Segment Any Instance with Any Instructions},
50
+ author = {Yuqian Yuan, Wentong Li, Zhaocheng Li, Yutong Lin, Juncheng Li, Siliang Tang, Jun Xiao, Yueting Zhuang, Wenqiao Zhang},
51
+ year = {2026},
52
+ journal = {arXiv},
53
+ }
54
+ ```