Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -26,15 +26,30 @@ Each preference pair stores a **preferred** image (`path1`) and a **non-preferre
|
|
| 26 |
|
| 27 |
```bash
|
| 28 |
pip install -U "huggingface_hub[cli]"
|
| 29 |
-
|
| 30 |
cd HPDv3pp
|
| 31 |
-
# Reassemble and extract
|
| 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 |
|
|
@@ -57,7 +72,7 @@ the two axes (aes/tf), so they can be used together without leakage.
|
|
| 57 |
|
| 58 |
```
|
| 59 |
HPDv3-PlusPlus/
|
| 60 |
-
|-- images.tar.part00, images.tar.part01, ... # split tar of
|
| 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
|
|
@@ -69,7 +84,8 @@ HPDv3-PlusPlus/
|
|
| 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/ #
|
|
|
|
| 73 |
```
|
| 74 |
|
| 75 |
## JSON formats
|
|
@@ -97,9 +113,11 @@ HPDv3-PlusPlus/
|
|
| 97 |
|
| 98 |
## Notes
|
| 99 |
|
| 100 |
-
- The
|
| 101 |
-
|
| 102 |
-
|
|
|
|
|
|
|
| 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 |
|
|
|
|
| 26 |
|
| 27 |
```bash
|
| 28 |
pip install -U "huggingface_hub[cli]"
|
| 29 |
+
hf download Junjun2333/HPDv3-PlusPlus --repo-type dataset --local-dir HPDv3pp
|
| 30 |
cd HPDv3pp
|
| 31 |
+
# Reassemble and extract our image pool (split tar parts -> images/qwen_image, images/rollout, images/thumbs):
|
| 32 |
cat images.tar.part* | tar -xf -
|
| 33 |
```
|
| 34 |
|
| 35 |
+
The split tar contains **only the images we generated** (`images/qwen_image/`,
|
| 36 |
+
`images/rollout/`, `images/thumbs/`). The `stage1_ref.json` reference pairs point
|
| 37 |
+
to the **original HPDv3 images** (`images/hpdv3/...`), which we do **not**
|
| 38 |
+
re-host here. If you need them (only required to reproduce HPSv3++ Stage 1 with
|
| 39 |
+
the original HPDv3 reference set), download the HPDv3 images from the official
|
| 40 |
+
repo and place them under `images/hpdv3/`:
|
| 41 |
+
|
| 42 |
+
```bash
|
| 43 |
+
# Original HPDv3 images (only needed for stage1_ref.json)
|
| 44 |
+
hf download MizzenAI/HPDv3 --repo-type dataset --include "images.tar.gz.*" --local-dir hpdv3_src
|
| 45 |
+
cat hpdv3_src/images.tar.gz.* | gunzip | tar -xv # then move/symlink the resulting images into images/hpdv3/
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
After extraction you get an `images/` directory. Every path in the JSON files
|
| 49 |
(`path1` / `path2` / `image_path`) is **relative** and resolves against the
|
| 50 |
+
repo root, e.g. `images/qwen_image/prompt_000000/6.jpg`. The four ready-to-use
|
| 51 |
+
train/test files (`train_aes`, `train_tf`, `test_aes`, `test_tf`) reference only
|
| 52 |
+
our own images and need no HPDv3 download.
|
| 53 |
|
| 54 |
## What you can use directly
|
| 55 |
|
|
|
|
| 72 |
|
| 73 |
```
|
| 74 |
HPDv3-PlusPlus/
|
| 75 |
+
|-- images.tar.part00, images.tar.part01, ... # split tar of OUR images (~268 GB; qwen_image + rollout + thumbs)
|
| 76 |
|-- train/
|
| 77 |
| |-- train_aes.json # 100,463 ready-to-use aesthetic training pairs
|
| 78 |
| |-- train_tf.json # 90,908 ready-to-use text-following training pairs
|
|
|
|
| 84 |
|-- test/
|
| 85 |
| |-- test_aes.json # 5,720 ready-to-use aesthetic test pairs
|
| 86 |
| `-- test_tf.json # 4,465 ready-to-use text-following test pairs
|
| 87 |
+
`-- images/ # after extraction: qwen_image/, rollout/, thumbs/ (ours);
|
| 88 |
+
# hpdv3/ must be downloaded separately from MizzenAI/HPDv3 (only for stage1_ref)
|
| 89 |
```
|
| 90 |
|
| 91 |
## JSON formats
|
|
|
|
| 113 |
|
| 114 |
## Notes
|
| 115 |
|
| 116 |
+
- The images we host here (`qwen_image` + `rollout` + `thumbs`) are ~268 GB. The
|
| 117 |
+
original HPDv3 images (`hpdv3/`, ~60 GB, referenced only by `stage1_ref.json`)
|
| 118 |
+
are not re-hosted -- download them from MizzenAI/HPDv3 if needed (see Quick start).
|
| 119 |
+
- The ready-to-use train/test files reference only our own images, so they work
|
| 120 |
+
with just the split tar above (no HPDv3 download needed).
|
| 121 |
- For the full two-stage training / evaluation pipeline (which additionally uses
|
| 122 |
`rollout.json`, `stage1_ref.json`, etc.), see the HPSv3++ code repository.
|
| 123 |
|