Datasets:
Add dataset card
Browse files
README.md
CHANGED
|
@@ -1,3 +1,118 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
pretty_name: InScene
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- face
|
| 7 |
+
- scene-restoration
|
| 8 |
+
- image-restoration
|
| 9 |
+
- diffusion
|
| 10 |
+
- synthetic
|
| 11 |
+
- facial-landmarks
|
| 12 |
+
- identity
|
| 13 |
+
size_categories:
|
| 14 |
+
- 10K<n<100K
|
| 15 |
+
task_categories:
|
| 16 |
+
- image-to-image
|
| 17 |
+
- text-to-image
|
| 18 |
---
|
| 19 |
+
|
| 20 |
+
# InScene
|
| 21 |
+
|
| 22 |
+
**InScene** is a synthetic dataset of full-body / in-the-wild scene images, each containing a person, paired with rich metadata (generation prompt, face bounding box, identity ID, and 68-point facial landmarks). It was created for the paper **Face2Scene: Using Facial Degradation as an Oracle for Diffusion-Based Scene Restoration** (CVPR 2026), where facial degradation is used as a supervisory signal ("oracle") for diffusion-based restoration of full scenes.
|
| 23 |
+
|
| 24 |
+
## Why this dataset
|
| 25 |
+
|
| 26 |
+
Faces are one of the most perceptually sensitive regions in an image and there exist strong, well-studied priors for facial quality. Face2Scene leverages this: by treating the face as an oracle for degradation, the model learns to restore the surrounding scene. To support this, InScene provides images in which a consistent set of **identities** appear across many diverse scenes, together with the localization metadata (face boxes and landmarks) needed to isolate and reason about the facial region.
|
| 27 |
+
|
| 28 |
+
## Data generation
|
| 29 |
+
|
| 30 |
+
Images were produced with the **InfiniteYou-based data-generation pipeline** available here:
|
| 31 |
+
|
| 32 |
+
- 🔧 Pipeline: **https://github.com/amanwalia123/infiniteyoudatagen**
|
| 33 |
+
|
| 34 |
+
Please refer to that repository for the full generation details (identity conditioning, prompt construction, sampling settings, etc.).
|
| 35 |
+
|
| 36 |
+
## Dataset structure
|
| 37 |
+
|
| 38 |
+
The dataset is organized into `train/` and `val/` splits. Each split is a flat directory of **sample folders**, one folder per generated image. Every sample folder contains exactly two files that share the sample's name:
|
| 39 |
+
|
| 40 |
+
```
|
| 41 |
+
train/
|
| 42 |
+
iden_00001_img_11_sample_321_repeat_1/
|
| 43 |
+
iden_00001_img_11_sample_321_repeat_1.png # 1024x1024 RGB image
|
| 44 |
+
iden_00001_img_11_sample_321_repeat_1.json # metadata for that image
|
| 45 |
+
...
|
| 46 |
+
val/
|
| 47 |
+
...
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
The folder name encodes provenance: `iden_<identity>`, `img_<source-face-id>`, `sample_<sample-id>`, `repeat_<k>` (the same prompt/identity may be sampled multiple times).
|
| 51 |
+
|
| 52 |
+
### Splits
|
| 53 |
+
|
| 54 |
+
| Split | Samples | Unique identities | Size |
|
| 55 |
+
|---------|--------:|------------------:|------:|
|
| 56 |
+
| `train` | 11,260 | 870 | 19 GB |
|
| 57 |
+
| `val` | 1,329 | 100 | 3.4 GB |
|
| 58 |
+
|
| 59 |
+
*(The `train` and `val` identity sets are disjoint.)*
|
| 60 |
+
|
| 61 |
+
### Per-sample JSON schema
|
| 62 |
+
|
| 63 |
+
| Field | Type | Description |
|
| 64 |
+
|--------------|-----------------|-----------------------------------------------------------------------------|
|
| 65 |
+
| `image_name` | string | Filename of the paired PNG. |
|
| 66 |
+
| `prompt` | string | Structured scene prompt used for generation (subject, framing, background, detail/style). |
|
| 67 |
+
| `image_size` | object | `{ "width": 1024, "height": 1024 }`. |
|
| 68 |
+
| `face_bbox` | list[int] | Face bounding box `[x1, y1, x2, y2]` in pixel coordinates. |
|
| 69 |
+
| `identity` | string | Zero-padded identity ID; the same ID denotes the same person across samples.|
|
| 70 |
+
| `file_id` | string | Source face-image ID used to condition this identity. |
|
| 71 |
+
| `landmark` | list[[int,int]] | 68 facial landmark points `[x, y]` in pixel coordinates. |
|
| 72 |
+
|
| 73 |
+
## Usage
|
| 74 |
+
|
| 75 |
+
The dataset is a folder-of-folders (not a parquet/`imagefolder` layout), so the simplest way to use it is to download and glob the sample folders:
|
| 76 |
+
|
| 77 |
+
```python
|
| 78 |
+
import glob, json, os
|
| 79 |
+
from PIL import Image
|
| 80 |
+
from huggingface_hub import snapshot_download
|
| 81 |
+
|
| 82 |
+
# Download just the train split (use allow_patterns="val/*" for val)
|
| 83 |
+
local = snapshot_download(
|
| 84 |
+
"amir477/InScene",
|
| 85 |
+
repo_type="dataset",
|
| 86 |
+
allow_patterns="train/*",
|
| 87 |
+
)
|
| 88 |
+
|
| 89 |
+
samples = sorted(glob.glob(os.path.join(local, "train", "*")))
|
| 90 |
+
folder = samples[0]
|
| 91 |
+
name = os.path.basename(folder)
|
| 92 |
+
|
| 93 |
+
image = Image.open(os.path.join(folder, name + ".png")) # 1024x1024 RGB
|
| 94 |
+
meta = json.load(open(os.path.join(folder, name + ".json")))
|
| 95 |
+
|
| 96 |
+
print(image.size) # (1024, 1024)
|
| 97 |
+
print(meta["identity"]) # e.g. "00001"
|
| 98 |
+
print(meta["face_bbox"]) # [x1, y1, x2, y2]
|
| 99 |
+
print(len(meta["landmark"])) # 68
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
## Citation
|
| 103 |
+
|
| 104 |
+
If you find these images useful, please cite:
|
| 105 |
+
|
| 106 |
+
```bibtex
|
| 107 |
+
@inproceedings{kazerouni2026face2scene,
|
| 108 |
+
title={Face2Scene: Using Facial Degradation as an Oracle for Diffusion-Based Scene Restoration},
|
| 109 |
+
author={Kazerouni, Amirhossein and Suin, Maitreya and Aumentado-Armstrong, Tristan and Honari, Sina and Walia, Amanpreet and Mohomed, Iqbal and Derpanis, Konstantinos G and Taati, Babak and Levinshtein, Alex},
|
| 110 |
+
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
|
| 111 |
+
pages={8428--8438},
|
| 112 |
+
year={2026}
|
| 113 |
+
}
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
## License
|
| 117 |
+
|
| 118 |
+
The license for this dataset has not yet been finalized. Until a license is specified here, please contact the authors before redistribution or commercial use.
|