Junjun2333 commited on
Commit
4e8eb2c
·
verified ·
1 Parent(s): 26f65bc

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +114 -0
README.md ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - image-classification
5
+ - text-to-image
6
+ language:
7
+ - en
8
+ - zh
9
+ tags:
10
+ - preference
11
+ - reward-model
12
+ - text-to-image
13
+ - human-feedback
14
+ pretty_name: HPDv3++
15
+ size_categories:
16
+ - 100K<n<1M
17
+ ---
18
+
19
+ # HPDv3++: A Dual-Dimension Preference Dataset for Text-to-Image Reward Modeling
20
+
21
+ HPDv3++ is a large-scale human-preference dataset for text-to-image (T2I) generation, built on a frontier generator (Qwen-Image) and annotated along two axes: **text-following (TF)** and **aesthetic quality (Aes)**. It is the dataset used to train [HPSv3++](https://huggingface.co/Junjun2333/HPSv3-PlusPlus), a capability-aware and RL-iteration-aware reward model.
22
+
23
+ Each preference pair stores a **preferred** image (`path1`) and a **non-preferred** image (`path2`) for the same prompt.
24
+
25
+ ## Quick start
26
+
27
+ ```bash
28
+ pip install -U "huggingface_hub[cli]"
29
+ huggingface-cli download Junjun2333/HPDv3-PlusPlus --repo-type dataset --local-dir HPDv3pp
30
+ cd HPDv3pp
31
+ # Reassemble and extract the image pool (split tar parts):
32
+ cat images.tar.part* | tar -xf -
33
+ ```
34
+
35
+ After extraction you get an `images/` directory. Every path in the JSON files
36
+ (`path1` / `path2` / `image_path`) is **relative** and resolves against the
37
+ repo root, e.g. `images/qwen_image/prompt_000000/6.jpg`.
38
+
39
+ ## What you can use directly
40
+
41
+ These four files are ready-to-use, self-contained, and **do not require any
42
+ HPSv3++ code or model** -- just images + JSON. Each record is
43
+ `{"path1": <preferred>, "path2": <non-preferred>, "prompt": <text>}` (the same
44
+ format as HPSv3/HPDv3), with `path1` preferred over `path2`.
45
+
46
+ | File | Pairs | Use |
47
+ |---|---|---|
48
+ | `train/train_aes.json` | 100,463 | Training -- aesthetic preference |
49
+ | `train/train_tf.json` | 90,908 | Training -- text-following preference |
50
+ | `test/test_aes.json` | 5,720 | Evaluation -- aesthetic |
51
+ | `test/test_tf.json` | 4,465 | Evaluation -- text-following |
52
+
53
+ The training and test sets are **disjoint** (no shared pairs), including across
54
+ the two axes (aes/tf), so they can be used together without leakage.
55
+
56
+ ## Repository layout
57
+
58
+ ```
59
+ HPDv3-PlusPlus/
60
+ |-- images.tar.part00, images.tar.part01, ... # split tar of the image pool (~328 GB total)
61
+ |-- train/
62
+ | |-- train_aes.json # 100,463 ready-to-use aesthetic training pairs
63
+ | |-- train_tf.json # 90,908 ready-to-use text-following training pairs
64
+ | |-- stage1_labeled.json # 191,466 labeled pairs (used by HPSv3++ Stage 1)
65
+ | |-- stage1_ref.json # 284,974 original HPDv3 reference pairs (Stage 1 OGD anti-forgetting)
66
+ | |-- stage2_labeled.json # 111,650 labeled pairs (used by HPSv3++ Stage 2)
67
+ | |-- rollout.json # 322,452 unlabeled rollouts, long format, one image per row
68
+ | `-- ogd_std.json # 58,242 pre-computed per-group std (also embedded in rollout.json)
69
+ |-- test/
70
+ | |-- test_aes.json # 5,720 ready-to-use aesthetic test pairs
71
+ | `-- test_tf.json # 4,465 ready-to-use text-following test pairs
72
+ `-- images/ # (after extraction) the unified, deduplicated image pool
73
+ ```
74
+
75
+ ## JSON formats
76
+
77
+ **Preference pairs** (`train_aes`, `train_tf`, `stage1_labeled`, `stage1_ref`, `stage2_labeled`, `test_aes`, `test_tf`):
78
+
79
+ | Field | Meaning |
80
+ |---|---|
81
+ | `path1` / `path2` | Preferred / non-preferred image (relative `images/...` path) |
82
+ | `prompt` | Text prompt |
83
+ | `choice_dist` / `confidence` / `model1` / `model2` | (where annotated) vote distribution, confidence, generator names; `null` otherwise. The ready-to-use `train_aes`/`train_tf` and `test` files keep only `path1/path2/prompt`. |
84
+
85
+ **`rollout.json`** (unlabeled rollouts for HPSv3++ Stage 2; long format, one image per row):
86
+
87
+ | Field | Meaning |
88
+ |---|---|
89
+ | `group_id` | Group id (same prompt + tier + iter_step form one group) |
90
+ | `source` | `capability` or `iteration` |
91
+ | `prompt` | Text prompt |
92
+ | `tier` | Generator tier |
93
+ | `iter_step` / `iter_norm` | Raw / normalized RL iteration |
94
+ | `capability` / `level` | Continuous capability score / discrete level |
95
+ | `image_path` | Relative image path |
96
+ | `ogd_std` | Pre-computed per-group std |
97
+
98
+ ## Notes
99
+
100
+ - The full image pool is ~328 GB (922,699 deduplicated images). If you only need
101
+ the ready-to-use train/test files, you still need the image pool, since the
102
+ JSONs reference images by relative path.
103
+ - For the full two-stage training / evaluation pipeline (which additionally uses
104
+ `rollout.json`, `stage1_ref.json`, etc.), see the HPSv3++ code repository.
105
+
106
+ ## Citation
107
+
108
+ ```bibtex
109
+ @misc{hpsv3pp,
110
+ title = {HPSv3++: Scaling Reward Models Across the Full Spectrum of Diffusion Model Capabilities},
111
+ author = {HPSv3++ Team},
112
+ year = {2026}
113
+ }
114
+ ```