Datasets:
Formats:
parquet
Languages:
English
Size:
1K - 10K
ArXiv:
Tags:
dichotomous-image-segmentation
dis
background-removal
image-matting
language-guided-segmentation
referring-segmentation
License:
File size: 6,081 Bytes
6166fd6 ed2a067 6166fd6 ed2a067 6166fd6 ed2a067 6166fd6 ed2a067 6166fd6 ed2a067 6166fd6 ed2a067 6166fd6 ed2a067 6166fd6 ed2a067 6166fd6 ed2a067 6166fd6 ed2a067 6166fd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | ---
license: apache-2.0
pretty_name: FlowDIS-DIS5K
task_categories:
- image-segmentation
- mask-generation
language:
- en
size_categories:
- 1K<n<10K
tags:
- dichotomous-image-segmentation
- dis
- background-removal
- image-matting
- language-guided-segmentation
- referring-segmentation
configs:
- config_name: default
data_files:
- split: DIS_TR
path: data/DIS_TR-*
- split: DIS_VD
path: data/DIS_VD-*
- split: DIS_TE1
path: data/DIS_TE1-*
- split: DIS_TE2
path: data/DIS_TE2-*
- split: DIS_TE3
path: data/DIS_TE3-*
- split: DIS_TE4
path: data/DIS_TE4-*
dataset_info:
features:
- name: image
dtype: image
- name: label
dtype: image
- name: image_name
dtype: string
- name: label_name
dtype: string
- name: prompts
list: string
- name: prompt
dtype: string
- name: prompt_keywords
dtype: string
- name: flowdis_split
dtype: string
splits:
- name: DIS_TR
num_bytes: 3105875783.0
num_examples: 3000
- name: DIS_VD
num_bytes: 479868844.0
num_examples: 470
- name: DIS_TE1
num_bytes: 405786175.0
num_examples: 500
- name: DIS_TE2
num_bytes: 487220171.0
num_examples: 500
- name: DIS_TE3
num_bytes: 600557987.0
num_examples: 500
- name: DIS_TE4
num_bytes: 676477543.0
num_examples: 500
download_size: 5731293690
dataset_size: 5755786503.0
---
# FlowDIS-DIS5K
[DIS5K](https://huggingface.co/datasets/nobg/DIS5K) images and masks joined to the
language prompts of
[`PAIR/FlowDIS-DIS5K-language-prompts`](https://huggingface.co/datasets/PAIR/FlowDIS-DIS5K-language-prompts),
so language-guided dichotomous segmentation needs one `load_dataset` call instead of a
join. **5470 rows, all six DIS5K splits.**
```python
from datasets import load_dataset
ds = load_dataset("nobg/FlowDIS-DIS5K", split="DIS_VD")
ds[0]["image"] # PIL, original resolution
ds[0]["label"] # PIL, the binary mask
ds[0]["prompt"] # 'Four white wind turbines with red markings ...'
ds[0]["prompt_keywords"] # the short form -- see below
```
## Why this exists: the upstream `test` split collapses four splits into one
HuggingFace infers splits from *file names*, and FlowDIS ships one JSON per DIS5K
split. Four of the six names collapse:
| upstream file | inferred split | rows |
|:--|:--|--:|
| `DIS-TR.json` | `train` | 3000 |
| `DIS-VD.json` | `validation` | 470 |
| `DIS-TE1.json` … `DIS-TE4.json` | **`test` — all four merged** | 2000 |
So `load_dataset("PAIR/FlowDIS-DIS5K-language-prompts")["test"]` is a 2000-row mixture of four splits of
**graded difficulty** (DIS-TE1 easiest → DIS-TE4 hardest) — precisely the axis DIS5K's
test splits exist to separate. It reports one number where the benchmark defines four,
and nothing warns you.
This dataset keys off each row's own `split` field instead, and uses **nobg/DIS5K's six
split names**, so it lines up 1:1 with the image source.
## The join is exact
`filename` (FlowDIS) matches `image_name` (DIS5K) byte-for-byte, taxonomy prefix
included — `22#Weapon#3#Missile#11711594126_3831657d91_o.jpg`. Measured across all six
splits: **5470 / 5470 matched, 0 unmatched, 0 duplicates.** No normalization or
fuzzy matching. The build asserts the tally per shard and refuses to write a
partially-joined split, so an empty `prompt` cannot occur.
Image and label bytes are **copied through undecoded** — pixels are bit-identical to
`nobg/DIS5K`, with no re-encode or resize.
## The three prompt columns
Phrasings per row differ by split, and only `DIS_TR` has more than one:
| split | rows | phrasings/row |
|:--|--:|--:|
| `DIS_TR` | 3000 | **4** |
| `DIS_VD` | 470 | 1 |
| `DIS_TE1`–`DIS_TE4` | 500 each | 1 |
| column | type | contents |
|:--|:--|:--|
| `prompts` | `list<string>` | **all** phrasings, verbatim — lossless |
| `prompt` | `string` | `prompts[0]`, the full descriptive sentence |
| `prompt_keywords` | `string` | `prompts[1]` where it exists, else `prompts[0]` |
In `DIS_TR`, index 0 is a descriptive sentence, index 1 a comma-separated keyword form,
and 2–3 paraphrases of 0:
```
prompt 'A silver missile mounted on a large green military transport vehicle.'
prompt_keywords 'Missile, military launcher vehicle'
```
**`prompt_keywords` is not cosmetic.** SAM 3's processor tokenizes at
`padding="max_length", max_length=32`, so descriptive sentences truncate silently while
the keyword form fits. Note the trade-off in its fallback: on the five eval splits
(1 phrasing each) it is **identical to `prompt`**. Stated plainly because a column that
is sometimes a copy is otherwise a trap.
`flowdis_split` records the upstream label each row declared, so the collapse above
stays auditable from inside the data.
## Licensing — read before redistributing
The upstream prompt repo **declares no license**. The prompts are redistributed here on
that basis, with attribution below; images and masks come from `nobg/DIS5K`
(Apache-2.0, itself subject to DIS5K's own Terms of Use). Treat the prompts as a soft
dependency: [`nobg`](https://github.com/feyninc/nobg)'s training script keeps
`--flowdis` **off by default** and falls back to a concept derived from the filename
taxonomy, and anything built on this should preserve that property.
## Citation
Prompts — FlowDIS:
```bibtex
@article{sargsyan2026flowdis,
title={{FlowDIS: Language-Guided Dichotomous Image Segmentation with Flow Matching}},
author={Sargsyan, Andranik and Navasardyan, Shant},
journal={arXiv preprint arXiv:2605.05077},
year={2026},
url={https://arxiv.org/abs/2605.05077}
}
```
Images and masks — DIS5K:
```bibtex
@inproceedings{qin2022dis,
title={Highly Accurate Dichotomous Image Segmentation},
author={Qin, Xuebin and Dai, Hang and Hu, Xiaobin and Fan, Deng-Ping and Shao, Ling and Van Gool, Luc},
booktitle={ECCV},
year={2022}
}
```
|