Add dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: source-dataset-terms
|
| 4 |
+
license_link: https://github.com/NVlabs/ffhq-dataset
|
| 5 |
+
pretty_name: Marcus Avatar Data
|
| 6 |
+
size_categories:
|
| 7 |
+
- 100K<n<1M
|
| 8 |
+
tags:
|
| 9 |
+
- face
|
| 10 |
+
- relighting
|
| 11 |
+
- 3dmm
|
| 12 |
+
- uv-texture
|
| 13 |
+
- webdataset
|
| 14 |
+
configs:
|
| 15 |
+
- config_name: ffhq1024_rendered
|
| 16 |
+
data_files: FFHQ1024/rendered/*.tar
|
| 17 |
+
- config_name: ffhq1024_unwrap_texture
|
| 18 |
+
data_files: FFHQ1024/unwrap_texture/*.tar
|
| 19 |
+
- config_name: celebamask_hq_rendered
|
| 20 |
+
data_files: CelebAMask-HQ/rendered/*.tar
|
| 21 |
+
- config_name: celebamask_hq_unwrap_texture
|
| 22 |
+
data_files: CelebAMask-HQ/unwrap_texture/*.tar
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
# Marcus Avatar Data
|
| 26 |
+
|
| 27 |
+
Relit renders and unwrapped UV textures derived from **FFHQ-1024** and
|
| 28 |
+
**CelebAMask-HQ**. Everything is stored as uncompressed
|
| 29 |
+
[WebDataset](https://github.com/webdataset/webdataset) tar shards; the sample key
|
| 30 |
+
is the source dataset's image id (zero-padded for FFHQ, unpadded for CelebA).
|
| 31 |
+
|
| 32 |
+
## Subsets
|
| 33 |
+
|
| 34 |
+
| config | samples | shards | ids/shard | size |
|
| 35 |
+
|---|---|---|---|---|
|
| 36 |
+
| `ffhq1024_rendered` | 69,999 | 140 | 500 | ~755 GB |
|
| 37 |
+
| `ffhq1024_unwrap_texture` | 69,999 | 35 | 2000 | ~194 GB |
|
| 38 |
+
| `celebamask_hq_rendered` | 29,994 | 60 | 500 | ~330 GB |
|
| 39 |
+
| `celebamask_hq_unwrap_texture` | 29,994 | 15 | 2000 | ~83 GB |
|
| 40 |
+
|
| 41 |
+
Each `<subset>/shard_index.json` lists every shard with its first/last id, plus
|
| 42 |
+
any sample whose file count deviates from the expected 11 (rendered) or 9
|
| 43 |
+
(unwrap_texture).
|
| 44 |
+
|
| 45 |
+
## Per-sample contents
|
| 46 |
+
|
| 47 |
+
`rendered` — 3 HDRI lighting conditions plus one even-lit bake:
|
| 48 |
+
|
| 49 |
+
| key | description |
|
| 50 |
+
|---|---|
|
| 51 |
+
| `.render_hdri_{0,1,2}.png` | relit render under HDRI *i* |
|
| 52 |
+
| `.baked_hdri_{0,1,2}.png` | baked texture for HDRI *i* |
|
| 53 |
+
| `.env_hdri_{0,1,2}.png` | environment map used for HDRI *i* |
|
| 54 |
+
| `.baked_even.png` | baked texture under even illumination |
|
| 55 |
+
| `.info.json` | render metadata |
|
| 56 |
+
|
| 57 |
+
`unwrap_texture` — 3DMM fit and UV unwrap:
|
| 58 |
+
|
| 59 |
+
| key | description |
|
| 60 |
+
|---|---|
|
| 61 |
+
| `.obj` / `.left_eye.obj` / `.right_eye.obj` | fitted meshes |
|
| 62 |
+
| `.uv.png` | unwrapped UV texture |
|
| 63 |
+
| `.coeffs.pt` | 3DMM coefficients |
|
| 64 |
+
| `.lm68_2d.pt` | 68 2-D landmarks |
|
| 65 |
+
| `.trans_params.pt` | crop/align transform |
|
| 66 |
+
| `.mask.png`, `.seg_result.png` | face mask and segmentation |
|
| 67 |
+
|
| 68 |
+
## Loading
|
| 69 |
+
|
| 70 |
+
```python
|
| 71 |
+
from datasets import load_dataset
|
| 72 |
+
|
| 73 |
+
ds = load_dataset("luh0502/Marcus-avatar-data", "ffhq1024_rendered",
|
| 74 |
+
split="train", streaming=True)
|
| 75 |
+
sample = next(iter(ds))
|
| 76 |
+
print(sample["__key__"], sample["render_hdri_0.png"].size)
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
Or with `webdataset` directly:
|
| 80 |
+
|
| 81 |
+
```python
|
| 82 |
+
import webdataset as wds
|
| 83 |
+
url = ("pipe:curl -sL -H 'Authorization: Bearer $HF_TOKEN' "
|
| 84 |
+
"https://huggingface.co/datasets/luh0502/Marcus-avatar-data/resolve/main/"
|
| 85 |
+
"FFHQ1024/rendered/rendered-{000000..000139}.tar")
|
| 86 |
+
ds = wds.WebDataset(url).decode("pil")
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
## Notes and known gaps
|
| 90 |
+
|
| 91 |
+
- **FFHQ id `45650` is absent** from both subsets — the upstream 3DMM fit never
|
| 92 |
+
produced a texture for it, so nothing was rendered.
|
| 93 |
+
- Four FFHQ renders are marked `failed` in the manifest (`00091`, `21931`,
|
| 94 |
+
`32511`, `52431`; the last three segfaulted). Their directories are included
|
| 95 |
+
as-is and may be incomplete — check `shard_index.json` anomalies before use.
|
| 96 |
+
- `FFHQ1024/rendered/render_results.csv` is the merged per-id status manifest
|
| 97 |
+
(69,999 rows) reconciled from two render passes.
|
| 98 |
+
|
| 99 |
+
## Licensing
|
| 100 |
+
|
| 101 |
+
This repository contains **derived** data only, not the source images. FFHQ is
|
| 102 |
+
distributed under CC BY-NC-SA 4.0 with individual photographs remaining under
|
| 103 |
+
their respective Flickr licenses; CelebAMask-HQ is for non-commercial research
|
| 104 |
+
use. Both sources' terms carry over — non-commercial research only.
|