Document public AliTok token dataset and source terms
Browse files
README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: imagenet
|
| 4 |
+
license_link: https://image-net.org/accessagreement
|
| 5 |
+
pretty_name: ORT ImageNet-1K AliTok pretokenized training data
|
| 6 |
+
size_categories:
|
| 7 |
+
- 1M<n<10M
|
| 8 |
+
task_categories:
|
| 9 |
+
- image-generation
|
| 10 |
+
configs:
|
| 11 |
+
- config_name: default
|
| 12 |
+
data_files:
|
| 13 |
+
- split: train
|
| 14 |
+
path: data/train-*.parquet
|
| 15 |
+
---
|
| 16 |
+
# ORT: AliTok pretokenized ImageNet-1K
|
| 17 |
+
|
| 18 |
+
Precomputed AliTok token IDs for the ImageNet-1K training split used by our ORT project.
|
| 19 |
+
1,281,167 image records; each record contains 10 crop variants of 273 tokens.
|
| 20 |
+
Vocabulary size: 4096. Labels are the original integer IDs (0–999).
|
| 21 |
+
Only `label` and `tokens` are included. The token sequences can be decoded using
|
| 22 |
+
the matching AliTok tokenizer; they are not anonymized image representations.
|
| 23 |
+
|
| 24 |
+
This repository is publicly downloadable without an access request. Availability
|
| 25 |
+
here does not replace the [ImageNet access agreement](https://image-net.org/accessagreement)
|
| 26 |
+
or grant additional rights to the underlying images. Use is subject to the source
|
| 27 |
+
terms, including non-commercial research and educational use. No MIT or Apache
|
| 28 |
+
license is asserted for this dataset.
|
| 29 |
+
|
| 30 |
+
## Usage
|
| 31 |
+
|
| 32 |
+
```python
|
| 33 |
+
from datasets import load_dataset
|
| 34 |
+
data = load_dataset("donglixu/ORT-ImageNet-AliTok", split="train")
|
| 35 |
+
data.save_to_disk("data/imagenet_alitok_train")
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
Use this directory with the [ORT training code](https://github.com/Xudangliatiger/ORT).
|
| 39 |
+
The trainer chooses one crop per image visit. Keep all crops grouped per image.
|
| 40 |
+
This dataset is for AliTok-based generators, not RAR/MaskGIT (256 tokens, 1024 vocabulary).
|
| 41 |
+
|
| 42 |
+
## Provenance and validation
|
| 43 |
+
|
| 44 |
+
Exported from our existing merged AliTok token dataset, preserving row order,
|
| 45 |
+
labels and all crop token IDs. Private storage metadata and internal IDs are omitted.
|
| 46 |
+
The exact historical image cropping pipeline and class-name mapping have not been
|
| 47 |
+
independently reconstructed; ten crop variants are verified from the stored data.
|
| 48 |
+
The publication script checks every record's label range, crop count, sequence
|
| 49 |
+
length and token range. Checksums and row counts are in `manifest.json` once upload
|
| 50 |
+
finishes. Until that manifest is present, the upload is incomplete.
|