Nanopocket-ai commited on
Commit
e767d42
·
verified ·
1 Parent(s): 785ed0a

Fix iframe src to point at the actual static-Space subdomain

Browse files
Files changed (1) hide show
  1. README.md +238 -240
README.md CHANGED
@@ -1,240 +1,238 @@
1
- ---
2
- license: cc-by-nc-sa-4.0
3
- task_categories:
4
- - image-to-image
5
- - unconditional-image-generation
6
- language:
7
- - en
8
- size_categories:
9
- - 1K<n<10K
10
- pretty_name: FFHQ-2048 (NanoPocket Enhanced) — First 1,000
11
- tags:
12
- - faces
13
- - face-dataset
14
- - ffhq
15
- - super-resolution
16
- - face-enhancement
17
- - face-restoration
18
- - 2k
19
- - high-resolution
20
- - generative-models
21
- - nanopocket
22
- configs:
23
- - config_name: default
24
- data_files:
25
- - split: train
26
- path: data/*.png
27
- ---
28
-
29
- # FFHQ-2048 — NanoPocket Enhanced (First 1,000)
30
-
31
- > **The first new high-quality public face dataset since 2019.**
32
- > 1,000 sharp, artifact-free **2048×2048** portraits, derived from FFHQ and enhanced with the **[NanoPocket](https://nanopocket.ai/)** Face Enhance model.
33
-
34
- <p align="center">
35
- <a href="https://huggingface.co/spaces/Nanopocket-ai/FFHQ-2048-demo">
36
- <img alt="Open the interactive before/after demo on Hugging Face Spaces"
37
- src="https://img.shields.io/badge/Try%20the%20interactive%20before%2Fafter%20slider-%F0%9F%A4%97%20Spaces-blue?style=for-the-badge">
38
- </a>
39
- </p>
40
-
41
- ---
42
-
43
- ## Why this dataset exists
44
-
45
- FFHQ (NVIDIA, 2019) has been the gold-standard face dataset for the past five years — but the field has moved on. Modern generators (Flux, SD3 / SDXL, StyleGAN-T, portrait restoration nets) train at **1024² and above**, and they expose every soft pixel, every JPEG ghost, every out-of-focus eyelash that the original FFHQ contains. Yet **no comparable public face dataset has been released since FFHQ**.
46
-
47
- We built **FFHQ-2048** to fill that gap:
48
-
49
- - **2× spatial resolution** — 1024×1024 → **2048×2048**.
50
- - **Sharper, more detailed faces** — pores, hair strands, iris texture, fabric weave.
51
- - **Artifact-free** — no over-sharpening halos, no plastic skin, no identity drift.
52
- - **Filename-compatible with original FFHQ** — `00000.png` here corresponds to FFHQ index `0`, so you can swap it in to existing pipelines without rewriting code.
53
-
54
- This release contains the **first 1,000 images** as a free, public preview. Scroll down for how to request the full set.
55
-
56
- ---
57
-
58
- ## Interactive before / after — six samples
59
-
60
- All six samples are shown below as **drag-to-compare sliders with mouse-wheel zoom**, served live from the [Nanopocket-ai/FFHQ-2048-demo](https://huggingface.co/spaces/Nanopocket-ai/FFHQ-2048-demo) Space.
61
-
62
- **Controls:** drag the purple divider to compare · scroll wheel to zoom in / out · `Shift` + drag to pan when zoomed in · double-click to reset · `+` / `−` / `⟲` buttons in each card · two-finger pinch on touch devices.
63
-
64
- <iframe
65
- src="https://nanopocket-FFHQ-2048-demo.hf.space"
66
- frameborder="0"
67
- width="100%"
68
- height="2400"
69
- style="border-radius:12px;"
70
- ></iframe>
71
-
72
- If the iframe is blocked, open the demo in a new tab: **[Nanopocket-ai/FFHQ-2048-demo](https://huggingface.co/spaces/Nanopocket-ai/FFHQ-2048-demo)**.
73
-
74
- ---
75
-
76
- ## Dataset summary
77
-
78
- | Field | Value |
79
- | --- | --- |
80
- | Number of images | **1,000** |
81
- | Resolution | **2048 × 2048** |
82
- | Format | PNG, lossless |
83
- | Total size | ~5.4 GB |
84
- | Filename pattern | `data/{index:05d}.png` (e.g. `data/00042.png`) |
85
- | Index range | `00000` – `00999` (matches original FFHQ indices) |
86
- | Source | NVIDIA FFHQ `images1024x1024` first 1,000 |
87
- | Enhancement | NanoPocket Face Enhance |
88
-
89
- ```
90
- Nanopocket-ai/FFHQ-2048
91
- ├── README.md
92
- └── data/
93
- ├── metadata.csv # file_name, ffhq_index, original_split
94
- ├── 00000.png
95
- ├── 00001.png
96
- └── ... 998 more
97
- ```
98
-
99
- `data/metadata.csv` lives next to the images, so the standard `datasets` ImageFolder loader picks it up automatically.
100
-
101
- ---
102
-
103
- ## Quick start
104
-
105
- Install the libraries you need:
106
-
107
- ```bash
108
- pip install -U datasets huggingface_hub pillow
109
- ```
110
-
111
- ### Option 1 — `datasets` library (with metadata)
112
-
113
- ```python
114
- from datasets import load_dataset
115
-
116
- ds = load_dataset("Nanopocket-ai/FFHQ-2048", split="train")
117
- print(ds) # 1000 rows: image, ffhq_index, original_split
118
- print(ds[0]["image"].size) # (2048, 2048)
119
- print(ds[0]["ffhq_index"]) # 0
120
- ds[0]["image"].save("sample.png")
121
- ```
122
-
123
- ### Option 2 — `huggingface_hub` snapshot (full local copy)
124
-
125
- ```python
126
- from huggingface_hub import snapshot_download
127
-
128
- local_dir = snapshot_download(
129
- repo_id="Nanopocket-ai/FFHQ-2048",
130
- repo_type="dataset",
131
- allow_patterns=["data/*", "README.md"],
132
- )
133
- print(local_dir) # contains data/00000.png ... data/00999.png + data/metadata.csv
134
- ```
135
-
136
- ### Option 3 — Single image via raw URL
137
-
138
- ```python
139
- import io
140
- import requests
141
- from PIL import Image
142
-
143
- url = "https://huggingface.co/datasets/Nanopocket-ai/FFHQ-2048/resolve/main/data/00042.png"
144
- img = Image.open(io.BytesIO(requests.get(url).content))
145
- img.show()
146
- ```
147
-
148
- ---
149
-
150
- ## Want the full enhanced FFHQ?
151
-
152
- This repo is a **public preview**. We have enhanced the **entire 70,000-image FFHQ** to 2048² with the same pipeline. If the previewed quality fits your research or product, get in touch:
153
-
154
- > **Email: [marketing@nanopocket.ai](mailto:marketing@nanopocket.ai)**
155
- >
156
- > Tell us briefly:
157
- > 1. Who you are (lab / company / individual).
158
- > 2. What you plan to use the data for.
159
- > 3. Whether the use is non-commercial (FFHQ's CC BY-NC-SA 4.0 inheritance applies).
160
- >
161
- > We will respond with a delivery method (LFS bundle, S3 link, or a private HF dataset invite).
162
-
163
- ---
164
-
165
- ## About NanoPocket Face Enhance
166
-
167
- NanoPocket Face Enhance is our in-house face restoration / super-resolution model, optimised to (a) preserve identity, (b) recover micro-detail (skin pores, hair, iris, lip texture) and (c) avoid the typical pitfalls of SR networks — over-sharpened halos, plastic skin, and waxy artifacts.
168
-
169
- If you would like to use this model locally, please also contact: **[marketing@nanopocket.ai](mailto:marketing@nanopocket.ai)**.
170
-
171
- Visit our website for more models (faceswap, imag enhance, video enhance, image edit...) that can run on your local machines: [https://nanopocket.ai/](https://nanopocket.ai/).
172
-
173
- ---
174
-
175
- ## License & attribution
176
-
177
- This dataset is a derivative work of **NVIDIA's Flickr-Faces-HQ (FFHQ)** dataset. Per FFHQ's license terms we **inherit the same license** and clearly **indicate the changes** we made.
178
-
179
- - **Dataset license:** [Creative Commons BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) — free use, redistribution and adaptation **for non-commercial purposes**, with attribution and share-alike.
180
- - **Per-image licenses:** the underlying photographs were originally collected from Flickr under one of:
181
- - [CC BY 2.0](https://creativecommons.org/licenses/by/2.0/)
182
- - [CC BY-NC 2.0](https://creativecommons.org/licenses/by-nc/2.0/)
183
- - [Public Domain Mark 1.0](https://creativecommons.org/publicdomain/mark/1.0/)
184
- - [Public Domain CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/)
185
- - [U.S. Government Works](http://www.usa.gov/copyright.shtml)
186
- Per-image author and license are recorded in the original [`ffhq-dataset-v2.json`](https://github.com/NVlabs/ffhq-dataset) metadata, indexed by the same numeric IDs used in this repo.
187
- - **Indicated changes:** every image in this repo has been **upscaled 2×** (1024×1024 → 2048×2048) and **detail-enhanced** by NanoPocket Face Enhance. No re-cropping, re-alignment or content edits beyond enhancement were performed.
188
-
189
- ### Important Not for facial recognition
190
-
191
- > Reproducing NVIDIA's explicit clause: **this dataset is not intended for, and should not be used for, the development or improvement of facial recognition technologies.**
192
-
193
- ---
194
-
195
- ## Privacy & removal requests
196
-
197
- We respect the same privacy / opt-out process as the upstream FFHQ dataset. To request removal of a photo of yourself:
198
-
199
- 1. On Flickr, do **one** of: tag the photo with `no_cv`, change the licence to All Rights Reserved or any CC `NoDerivs` variant, set the photo to private, or delete it.
200
- 2. Email **[researchinquiries@nvidia.com](mailto:researchinquiries@nvidia.com)** (the upstream maintainers) with your Flickr username.
201
- 3. **Also** email us at **[marketing@nanopocket.ai](mailto:marketing@nanopocket.ai)** so we can remove the corresponding enhanced image from this repo and any future releases.
202
-
203
- ---
204
-
205
- ## Citation
206
-
207
- If you use this dataset, please cite **both** the original FFHQ paper and this release:
208
-
209
- ```bibtex
210
- @inproceedings{karras2019stylebased,
211
- title = {A Style-Based Generator Architecture for Generative Adversarial Networks},
212
- author = {Tero Karras and Samuli Laine and Timo Aila},
213
- booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
214
- year = {2019},
215
- url = {https://arxiv.org/abs/1812.04948}
216
- }
217
-
218
- @misc{nanopocket2026ffhq2048,
219
- title = {FFHQ-2048: A 2K Re-master of Flickr-Faces-HQ via NanoPocket Face Enhance},
220
- author = {NanoPocket},
221
- year = {2026},
222
- howpublished = {\url{https://huggingface.co/datasets/Nanopocket-ai/FFHQ-2048}},
223
- note = {Public preview release. Full 70k set available on request.}
224
- }
225
- ```
226
-
227
- ---
228
-
229
- ## Acknowledgements
230
-
231
- - **NVIDIA / NVlabs** for releasing the original FFHQ dataset.
232
- - **Tero Karras, Samuli Laine, Timo Aila** for the StyleGAN paper that introduced FFHQ.
233
- - **Vahid Kazemi & Josephine Sullivan** for the face-alignment work that made the original collection possible.
234
- - The Flickr photographers who shared their work under permissive licences.
235
-
236
- ---
237
-
238
- ## Changelog
239
-
240
- - **v1.0 (2026-04)** — Initial public release: first 1,000 images, 2048×2048, NanoPocket Face Enhance v1.
 
1
+ ---
2
+ license: cc-by-nc-sa-4.0
3
+ task_categories:
4
+ - image-to-image
5
+ - unconditional-image-generation
6
+ language:
7
+ - en
8
+ size_categories:
9
+ - 1K<n<10K
10
+ pretty_name: FFHQ-2048 (NanoPocket Enhanced) — First 1,000
11
+ tags:
12
+ - faces
13
+ - face-dataset
14
+ - ffhq
15
+ - super-resolution
16
+ - face-enhancement
17
+ - face-restoration
18
+ - 2k
19
+ - high-resolution
20
+ - generative-models
21
+ - nanopocket
22
+ configs:
23
+ - config_name: default
24
+ data_files:
25
+ - split: train
26
+ path: data/*.png
27
+ ---
28
+
29
+ # FFHQ-2048 — NanoPocket Enhanced (First 1,000)
30
+
31
+ > **The first new high-quality public face dataset since 2019.**
32
+ > 1,000 sharp, artifact-free **2048×2048** portraits, derived from FFHQ and enhanced with the NanoPocket Face Enhance model.
33
+
34
+ <p align="center">
35
+ <a href="https://huggingface.co/spaces/Nanopocket-ai/FFHQ-2048-demo">
36
+ <img alt="Open the interactive before/after demo on Hugging Face Spaces"
37
+ src="https://img.shields.io/badge/Try%20the%20interactive%20before%2Fafter%20slider-%F0%9F%A4%97%20Spaces-blue?style=for-the-badge">
38
+ </a>
39
+ </p>
40
+
41
+ ---
42
+
43
+ ## Why this dataset exists
44
+
45
+ FFHQ (NVIDIA, 2019) has been the gold-standard face dataset for the past five years — but the field has moved on. Modern generators (Flux, SD3 / SDXL, StyleGAN-T, portrait restoration nets) train at **1024² and above**, and they expose every soft pixel, every JPEG ghost, every out-of-focus eyelash that the original FFHQ contains. Yet **no comparable public face dataset has been released since FFHQ**.
46
+
47
+ We built **FFHQ-2048** to fill that gap:
48
+
49
+ - **2× spatial resolution** — 1024×1024 → **2048×2048**.
50
+ - **Sharper, more detailed faces** — pores, hair strands, iris texture, fabric weave.
51
+ - **Artifact-free** — no over-sharpening halos, no plastic skin, no identity drift.
52
+ - **Filename-compatible with original FFHQ** — `00000.png` here corresponds to FFHQ index `0`, so you can swap it in to existing pipelines without rewriting code.
53
+
54
+ This release contains the **first 1,000 images** as a free, public preview. Scroll down for how to request the full set.
55
+
56
+ ---
57
+
58
+ ## Interactive before / after — six samples
59
+
60
+ All six samples are shown below as **drag-to-compare sliders with mouse-wheel zoom**, served live from the [Nanopocket-ai/FFHQ-2048-demo](https://huggingface.co/spaces/Nanopocket-ai/FFHQ-2048-demo) Space.
61
+
62
+ **Controls:** drag the purple divider to compare · scroll wheel to zoom in / out · `Shift` + drag to pan when zoomed in · double-click to reset · `+` / `−` / `⟲` buttons in each card · two-finger pinch on touch devices.
63
+
64
+ <iframe
65
+ src="https://nanopocket-ai-ffhq-2048-demo.static.hf.space"
66
+ frameborder="0"
67
+ width="100%"
68
+ height="2400"
69
+ style="border-radius:12px;"
70
+ ></iframe>
71
+
72
+ If the iframe is blocked, open the demo in a new tab: **[Nanopocket-ai/FFHQ-2048-demo](https://huggingface.co/spaces/Nanopocket-ai/FFHQ-2048-demo)**.
73
+
74
+ ---
75
+
76
+ ## Dataset summary
77
+
78
+ | Field | Value |
79
+ | --- | --- |
80
+ | Number of images | **1,000** |
81
+ | Resolution | **2048 × 2048** |
82
+ | Format | PNG, lossless |
83
+ | Total size | ~5.4 GB |
84
+ | Filename pattern | `data/{index:05d}.png` (e.g. `data/00042.png`) |
85
+ | Index range | `00000` – `00999` (matches original FFHQ indices) |
86
+ | Source | NVIDIA FFHQ `images1024x1024` first 1,000 |
87
+ | Enhancement | NanoPocket Face Enhance |
88
+
89
+ ```
90
+ Nanopocket-ai/FFHQ-2048
91
+ ├── README.md
92
+ └── data/
93
+ ├── metadata.csv # file_name, ffhq_index, original_split
94
+ ├── 00000.png
95
+ ├── 00001.png
96
+ └── ... 998 more
97
+ ```
98
+
99
+ `data/metadata.csv` lives next to the images, so the standard `datasets` ImageFolder loader picks it up automatically.
100
+
101
+ ---
102
+
103
+ ## Quick start
104
+
105
+ Install the libraries you need:
106
+
107
+ ```bash
108
+ pip install -U datasets huggingface_hub pillow
109
+ ```
110
+
111
+ ### Option 1 — `datasets` library (with metadata)
112
+
113
+ ```python
114
+ from datasets import load_dataset
115
+
116
+ ds = load_dataset("Nanopocket-ai/FFHQ-2048", split="train")
117
+ print(ds) # 1000 rows: image, ffhq_index, original_split
118
+ print(ds[0]["image"].size) # (2048, 2048)
119
+ print(ds[0]["ffhq_index"]) # 0
120
+ ds[0]["image"].save("sample.png")
121
+ ```
122
+
123
+ ### Option 2 — `huggingface_hub` snapshot (full local copy)
124
+
125
+ ```python
126
+ from huggingface_hub import snapshot_download
127
+
128
+ local_dir = snapshot_download(
129
+ repo_id="Nanopocket-ai/FFHQ-2048",
130
+ repo_type="dataset",
131
+ allow_patterns=["data/*", "README.md"],
132
+ )
133
+ print(local_dir) # contains data/00000.png ... data/00999.png + data/metadata.csv
134
+ ```
135
+
136
+ ### Option 3 — Single image via raw URL
137
+
138
+ ```python
139
+ import io
140
+ import requests
141
+ from PIL import Image
142
+
143
+ url = "https://huggingface.co/datasets/Nanopocket-ai/FFHQ-2048/resolve/main/data/00042.png"
144
+ img = Image.open(io.BytesIO(requests.get(url).content))
145
+ img.show()
146
+ ```
147
+
148
+ ---
149
+
150
+ ## Want the full enhanced FFHQ?
151
+
152
+ This repo is a **public preview**. We have enhanced the **entire 70,000-image FFHQ** to 2048² with the same pipeline. If the previewed quality fits your research or product, get in touch:
153
+
154
+ > **Email: [marketing@nanopocket.ai](mailto:marketing@nanopocket.ai)**
155
+ >
156
+ > Tell us briefly:
157
+ > 1. Who you are (lab / company / individual).
158
+ > 2. What you plan to use the data for.
159
+ > 3. Whether the use is non-commercial (FFHQ's CC BY-NC-SA 4.0 inheritance applies).
160
+ >
161
+ > We will respond with a delivery method (LFS bundle, S3 link, or a private HF dataset invite).
162
+
163
+ ---
164
+
165
+ ## About NanoPocket Face Enhance
166
+
167
+ NanoPocket Face Enhance is our in-house face restoration / super-resolution model, optimised to (a) preserve identity, (b) recover micro-detail (skin pores, hair, iris, lip texture) and (c) avoid the typical pitfalls of SR networks — over-sharpened halos, plastic skin, and waxy artifacts.
168
+
169
+ If you would like to use this model locally, please also contact: **[marketing@nanopocket.ai](mailto:marketing@nanopocket.ai)**.
170
+
171
+ ---
172
+
173
+ ## License & attribution
174
+
175
+ This dataset is a derivative work of **NVIDIA's Flickr-Faces-HQ (FFHQ)** dataset. Per FFHQ's license terms we **inherit the same license** and clearly **indicate the changes** we made.
176
+
177
+ - **Dataset license:** [Creative Commons BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) free use, redistribution and adaptation **for non-commercial purposes**, with attribution and share-alike.
178
+ - **Per-image licenses:** the underlying photographs were originally collected from Flickr under one of:
179
+ - [CC BY 2.0](https://creativecommons.org/licenses/by/2.0/)
180
+ - [CC BY-NC 2.0](https://creativecommons.org/licenses/by-nc/2.0/)
181
+ - [Public Domain Mark 1.0](https://creativecommons.org/publicdomain/mark/1.0/)
182
+ - [Public Domain CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/)
183
+ - [U.S. Government Works](http://www.usa.gov/copyright.shtml)
184
+ Per-image author and license are recorded in the original [`ffhq-dataset-v2.json`](https://github.com/NVlabs/ffhq-dataset) metadata, indexed by the same numeric IDs used in this repo.
185
+ - **Indicated changes:** every image in this repo has been **upscaled 2×** (1024×1024 → 2048×2048) and **detail-enhanced** by NanoPocket Face Enhance. No re-cropping, re-alignment or content edits beyond enhancement were performed.
186
+
187
+ ### Important Not for facial recognition
188
+
189
+ > Reproducing NVIDIA's explicit clause: **this dataset is not intended for, and should not be used for, the development or improvement of facial recognition technologies.**
190
+
191
+ ---
192
+
193
+ ## Privacy & removal requests
194
+
195
+ We respect the same privacy / opt-out process as the upstream FFHQ dataset. To request removal of a photo of yourself:
196
+
197
+ 1. On Flickr, do **one** of: tag the photo with `no_cv`, change the licence to All Rights Reserved or any CC `NoDerivs` variant, set the photo to private, or delete it.
198
+ 2. Email **[researchinquiries@nvidia.com](mailto:researchinquiries@nvidia.com)** (the upstream maintainers) with your Flickr username.
199
+ 3. **Also** email us at **[marketing@nanopocket.ai](mailto:marketing@nanopocket.ai)** so we can remove the corresponding enhanced image from this repo and any future releases.
200
+
201
+ ---
202
+
203
+ ## Citation
204
+
205
+ If you use this dataset, please cite **both** the original FFHQ paper and this release:
206
+
207
+ ```bibtex
208
+ @inproceedings{karras2019stylebased,
209
+ title = {A Style-Based Generator Architecture for Generative Adversarial Networks},
210
+ author = {Tero Karras and Samuli Laine and Timo Aila},
211
+ booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
212
+ year = {2019},
213
+ url = {https://arxiv.org/abs/1812.04948}
214
+ }
215
+
216
+ @misc{nanopocket2026ffhq2048,
217
+ title = {FFHQ-2048: A 2K Re-master of Flickr-Faces-HQ via NanoPocket Face Enhance},
218
+ author = {NanoPocket},
219
+ year = {2026},
220
+ howpublished = {\url{https://huggingface.co/datasets/Nanopocket-ai/FFHQ-2048}},
221
+ note = {Public preview release. Full 70k set available on request.}
222
+ }
223
+ ```
224
+
225
+ ---
226
+
227
+ ## Acknowledgements
228
+
229
+ - **NVIDIA / NVlabs** for releasing the original FFHQ dataset.
230
+ - **Tero Karras, Samuli Laine, Timo Aila** for the StyleGAN paper that introduced FFHQ.
231
+ - **Vahid Kazemi & Josephine Sullivan** for the face-alignment work that made the original collection possible.
232
+ - The Flickr photographers who shared their work under permissive licences.
233
+
234
+ ---
235
+
236
+ ## Changelog
237
+
238
+ - **v1.0 (2026-04)** — Initial public release: first 1,000 images, 2048×2048, NanoPocket Face Enhance v1.