initial: ocr + pickscore train/test prompts from flow_grpo
Browse files- README.md +43 -0
- ocr/test.jsonl +0 -0
- ocr/train.jsonl +0 -0
- pickscore/test.jsonl +0 -0
- pickscore/train.jsonl +0 -0
README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# miles-diffusion-prompts
|
| 2 |
+
|
| 3 |
+
Prompt datasets used by the miles-diffusion training pipeline.
|
| 4 |
+
|
| 5 |
+
## Layout
|
| 6 |
+
|
| 7 |
+
```
|
| 8 |
+
ocr/
|
| 9 |
+
├── train.jsonl # 19,653 OCR-style prompts for training
|
| 10 |
+
└── test.jsonl # 1,018 OCR-style prompts for eval
|
| 11 |
+
|
| 12 |
+
pickscore/
|
| 13 |
+
├── train.jsonl # 25,432 PickScore-style prompts for training
|
| 14 |
+
└── test.jsonl # 2,048 PickScore-style prompts for eval
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
## Format
|
| 18 |
+
|
| 19 |
+
Each `.jsonl` file has one JSON object per line:
|
| 20 |
+
|
| 21 |
+
```json
|
| 22 |
+
{"input": "A close-up of a medicine bottle with a clear, red warning label..."}
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
UTF-8 encoded (`ensure_ascii=False`), no escaping for non-ASCII characters.
|
| 26 |
+
|
| 27 |
+
## Usage
|
| 28 |
+
|
| 29 |
+
```bash
|
| 30 |
+
hf download --repo-type dataset <namespace>/miles-diffusion-prompts \
|
| 31 |
+
--local-dir /root/datasets/miles-diffusion-prompts
|
| 32 |
+
|
| 33 |
+
python train_diffusion.py \
|
| 34 |
+
--prompt-data /root/datasets/miles-diffusion-prompts/ocr/train.jsonl \
|
| 35 |
+
--eval-prompt-data ocr_test /root/datasets/miles-diffusion-prompts/ocr/test.jsonl \
|
| 36 |
+
...
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
## Provenance
|
| 40 |
+
|
| 41 |
+
Originally extracted from [flow_grpo](https://github.com/yifan123/flow_grpo)'s
|
| 42 |
+
`dataset/{ocr,pickscore}/{train,test}.txt` files (one prompt per line) and
|
| 43 |
+
converted to `{"input": prompt}` JSONL format.
|
ocr/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
ocr/train.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
pickscore/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
pickscore/train.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|