Datasets:
Tasks:
Image-to-Image
Modalities:
Image
Languages:
English
Size:
100K<n<1M
Tags:
image-decomposition
layered-image-editing
object-removal
image-matting
image-inpainting
computer-vision
License:
File size: 6,300 Bytes
82f4187 f956ba7 43289ab 82f4187 43289ab | 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 | ---
license: apache-2.0
task_categories:
- image-to-image
tags:
- image-decomposition
- layered-image-editing
- object-removal
- image-matting
- image-inpainting
- computer-vision
- bounding-box
pretty_name: RevealLayer Open Dataset
size_categories:
- 100K<n<1M
language:
- en
---
# RevealLayer Open Dataset
RevealLayer Open is the open-source dataset accompanying **RevealLayer: Disentangling Hidden and Visible Layers via Occlusion-Aware Image Decomposition**.
Paper: https://arxiv.org/html/2605.11818v1 Accepted by ICML 2026
RevealLayer studies **box-guided layered image decomposition** for natural images. Given an RGB image and instance bounding boxes, the task is to decompose the scene into a clean background and object-level foreground layers, where each foreground layer is represented as RGBA.
This repository only redistributes data and annotations that are released by the RevealLayer authors. Third-party benchmark images and ground-truth annotations from AIM-500, RefMatte_RW100, and OBER-Test/ObjectClear are **not included** in this repository.
## License
The RevealLayer dataset, processed annotations, metadata, and scripts released in this repository are licensed under the **Apache License 2.0**.
Some evaluation metadata or conversion scripts may refer to third-party benchmarks, including AIM-500, RefMatte_RW100, and OBER-Test/ObjectClear. Their original images and ground-truth annotations are not redistributed here. Users should download those datasets from their official sources and follow the corresponding original licenses and usage terms.
## Repository Structure
A typical directory structure is:
```text
RevealLayer_open/
├── train/
│ ├── <sample_id>/
│ │ ├── full_image.png
│ │ ├── background.png
│ │ ├── layer_0.png
│ │ ├── layer_1.png
│ │ └── ...
│ └── metaData.json
│
├── Benchmark/
│ ├── RevealLayerBenchMark-200/
│ │ ├── <sample_id>/
│ │ │ ├── full_image.png
│ │ │ ├── background.png
│ │ │ ├── layer_0.png
│ │ │ └── ...
│ │ └── metaData.json
│ │
│ └── RevealLayerBenchMark-wild/
│ ├── <sample_id>/
│ │ └── full_image.png
│ └── metaData.json
│
└── README.md
```
The exact number of layers varies across samples.
## Metadata Format
Each split or benchmark subset contains a `metaData.json` file. It is a list of sample dictionaries.
### Training / Fully Annotated Samples
A fully annotated sample generally follows this format:
```json
{
"imgid": "sample_id",
"full_image": "sample_id/full_image.png",
"background": "sample_id/background.png",
"LayerInfoRaw": [
"sample_id/layer_0.png",
"sample_id/layer_1.png"
],
"detections": [
{
"bbox": [x1, y1, x2, y2]
}
]
}
```
Field meanings:
| Field | Type | Description |
| --- | --- | --- |
| `imgid` | string | Unique sample identifier. |
| `full_image` | string | Relative path to the original RGB image. |
| `background` | string | Relative path to the clean background image. |
| `LayerInfoRaw` | list[string] | Relative paths to object-level foreground RGBA layers. |
| `detections` | list[dict] | Instance bounding boxes used as box guidance. |
| `bbox` | list[number] | Bounding box in `[x1, y1, x2, y2]` format. |
The `detections` field only keeps bounding boxes. Labels and confidence scores are not required for the RevealLayer task and are not included.
### Wild Benchmark Samples
`RevealLayerBenchMark-wild` contains in-the-wild images with bounding-box annotations only. It does **not** include clean background ground truth or foreground RGBA ground truth.
A wild sample generally follows this format:
```json
{
"imgid": "sample_id",
"full_image": "sample_id/full_image.png",
"background": "",
"LayerInfoRaw": [],
"detections": [
{
"bbox": [x1, y1, x2, y2]
}
]
}
```
For `RevealLayerBenchMark-wild`, the `background` field may be an empty string and `LayerInfoRaw` may be empty. This indicates that no background or foreground-layer ground truth is provided.
## Benchmark Notes
### Included Benchmark Subsets
- **RevealLayerBenchMark-200**: a fully annotated benchmark subset for evaluating background reconstruction and foreground RGBA layer decomposition.
- **RevealLayerBenchMark-wild**: a wild-image benchmark subset with `full_image` and bounding boxes only. It is intended for qualitative and real-world robustness evaluation. It does not contain background or foreground-layer ground truth.
## Loading Example
```python
import json
from pathlib import Path
from PIL import Image
root = Path("RevealLayer_open/train")
metadata_path = root / "metaData.json"
with open(metadata_path, "r", encoding="utf-8") as f:
samples = json.load(f)
sample = samples[0]
full_image = Image.open(root / sample["full_image"]).convert("RGB")
background = None
if sample.get("background"):
background = Image.open(root / sample["background"]).convert("RGB")
layers = []
for layer_path in sample.get("LayerInfoRaw", []):
layers.append(Image.open(root / layer_path).convert("RGBA"))
boxes = [det["bbox"] for det in sample.get("detections", [])]
```
## Data Usage Notes
- Paths in `metaData.json` are relative to the corresponding split or subset directory.
- Bounding boxes use `[x1, y1, x2, y2]` coordinates.
- Foreground layers are stored as RGBA images when ground truth is available.
- Some benchmark samples, especially wild images, may not contain background or foreground-layer ground truth.
- Third-party benchmark data are not redistributed in this repository. Users are responsible for complying with the original licenses when reproducing evaluations on those datasets.
## Citation
If you find this dataset useful, please cite:
```bibtex
@inproceedings{wang2026reveallayer,
title={RevealLayer: Disentangling Hidden and Visible Layers via Occlusion-Aware Image Decomposition},
author={Wang, Binhao and Zhao, Shihao and Cheng, Bo and Ji, Qiuyu and Ma, Yuhang and Wu, Liebucha and Liu, Shanyuan and Leng, Dawei and Yin, Yuhui},
booktitle={International Conference on Machine Learning},
year={2026}
}
```
# |