Minimal card for now
Browse files
README.md
CHANGED
|
@@ -2,13 +2,6 @@
|
|
| 2 |
license: other
|
| 3 |
license_name: per-source-terms
|
| 4 |
pretty_name: Pretext-270K
|
| 5 |
-
task_categories:
|
| 6 |
-
- any-to-any
|
| 7 |
-
tags:
|
| 8 |
-
- thinkmorph-ssl
|
| 9 |
-
- primer
|
| 10 |
-
- interleaved-reasoning
|
| 11 |
-
- spatial-reasoning
|
| 12 |
configs:
|
| 13 |
- config_name: preview
|
| 14 |
data_files:
|
|
@@ -18,144 +11,4 @@ configs:
|
|
| 18 |
|
| 19 |
# Pretext-270K
|
| 20 |
|
| 21 |
-
|
| 22 |
-
[ThinkMorph-SSL-Base](https://huggingface.co/ThinkMorph/ThinkMorph-SSL-Base), from which
|
| 23 |
-
[ThinkMorph-SSL-Instruct](https://huggingface.co/ThinkMorph/ThinkMorph-SSL-Instruct) is trained further on
|
| 24 |
-
Instruct-181K. It has **270,896 instruction-free text-image-text traces**. Each trace starts
|
| 25 |
-
from a corrupted input image; a textual description follows, then the clean target image,
|
| 26 |
-
then a further description.
|
| 27 |
-
|
| 28 |
-
- **Images:** the target images come from the original source images.
|
| 29 |
-
- **Text:** a teacher model (GPT-5) writes the text segments. It first captions the clean
|
| 30 |
-
image, then sees the caption and both images, so it knows the target, which the student
|
| 31 |
-
does not see in its input.
|
| 32 |
-
|
| 33 |
-
Stage 1 trains on the train rows only: 270,896 rows here, which is the paper's count. The
|
| 34 |
-
1,600 val rows were not used for training.
|
| 35 |
-
|
| 36 |
-
## Composition
|
| 37 |
-
|
| 38 |
-
| Subset | Rows with images | Text-only rows | Sources |
|
| 39 |
-
| --- | ---: | ---: | --- |
|
| 40 |
-
| `mixed_100k` | 100,000 | — | VSI-590K pools (YouTube room tours, Hypersim, ARKitScenes, ScanNet, ...), LLaVA-OneVision-1.5 pools, DeepVision-103K |
|
| 41 |
-
| `jigsaw_fragments_18k` | 8,085 | 10,266 | Matterport3D (text only), Realsee3D, 360+x |
|
| 42 |
-
| `sa1b_55k` | 55,442 | — | SA-1B |
|
| 43 |
-
| `general_99k` | 98,703 | — | PixMo-Cap |
|
| 44 |
-
| **Total** | **262,230** | **10,266** | |
|
| 45 |
-
|
| 46 |
-
### Counts by transformation family (train rows)
|
| 47 |
-
|
| 48 |
-
| Family | Rows | Paper |
|
| 49 |
-
| --- | ---: | ---: |
|
| 50 |
-
| Jigsaw restoration | 52,975 | 52,975 |
|
| 51 |
-
| Colorization | 36,104 | 36,104 |
|
| 52 |
-
| Super-resolution | 36,409 | 36,409 |
|
| 53 |
-
| Masked inpainting | 35,950 | 35,950 |
|
| 54 |
-
| Rotation/flip recovery | 36,763 | 36,763 |
|
| 55 |
-
| Denoising | 36,023 | 36,023 |
|
| 56 |
-
| Deformation recovery | 36,672 | 36,672 |
|
| 57 |
-
| **Total** | **270,896** | **270,896** |
|
| 58 |
-
|
| 59 |
-
### Counts by source (train rows) and the 443-row difference
|
| 60 |
-
|
| 61 |
-
The paper's source table adds up to **270,453**, which is **443 fewer** than the family total
|
| 62 |
-
of 270,896. The data explains the gap:
|
| 63 |
-
|
| 64 |
-
| Source | Rows in data | Paper |
|
| 65 |
-
| --- | ---: | ---: |
|
| 66 |
-
| PixMo-Cap | 98,303 | 98,303 |
|
| 67 |
-
| SA-1B | 55,042 | 55,042 |
|
| 68 |
-
| `mixed_100k`: VSI-590K + LLaVA-OneVision-1.5 + DeepVision-103K | 99,600 | 58,546 + 27,379 + 13,675 = 99,600 |
|
| 69 |
-
| Matterport3D | 10,035 | 10,035 |
|
| 70 |
-
| Realsee3D | 7,251 | 7,251 |
|
| 71 |
-
| 360+x (`source` = `360x_pairs_merged`) | 222 | 222 |
|
| 72 |
-
| 360+x (`source` = `stage0`) | 443 | not listed |
|
| 73 |
-
| **Total** | **270,896** | **270,453** |
|
| 74 |
-
|
| 75 |
-
- **The 443 rows.** They are 360+x images whose `source` field reads `stage0`.
|
| 76 |
-
- **DeepVision.** It can be counted directly in `mixed_100k`: 8,455 + 5,220 = 13,675.
|
| 77 |
-
|
| 78 |
-
## Files
|
| 79 |
-
|
| 80 |
-
| Path | What it is |
|
| 81 |
-
| --- | --- |
|
| 82 |
-
| `shards/SHARDS.json`, `shards/data-*.tar` | The release with images: 260,861 train rows, 1,369 val rows and 533,366 images (140.9 GB), in 133 deterministic tar shards |
|
| 83 |
-
| `text_only/` | 10,266 rows whose images come from Matterport3D. Their images are not distributed here; see [Rows without images](#rows-without-images) |
|
| 84 |
-
| `preview/*.parquet` | The Dataset Viewer preview: a few rows per subset, with images downscaled to at most 768 px |
|
| 85 |
-
|
| 86 |
-
## Download and restore
|
| 87 |
-
|
| 88 |
-
```bash
|
| 89 |
-
python scripts/download_release.py shards/SHARDS.json \
|
| 90 |
-
--base-url https://huggingface.co/datasets/ThinkMorph/Pretext-270K/resolve/<COMMIT>/shards --output shards
|
| 91 |
-
python scripts/shard_data_release.py restore shards/SHARDS.json shards DATA_ROOT/primer-pretext-270k
|
| 92 |
-
```
|
| 93 |
-
|
| 94 |
-
(`hf download ThinkMorph/Pretext-270K --repo-type dataset --include "shards/*"` works too.)
|
| 95 |
-
|
| 96 |
-
- `download_release.py` checks each shard's size and SHA256.
|
| 97 |
-
- `restore` checks every shard before extracting it, then checks every file against the
|
| 98 |
-
`MANIFEST.json` inside the shards.
|
| 99 |
-
- A restored release holds `train.jsonl` (and `val.jsonl` if present), `images/` and
|
| 100 |
-
`MANIFEST.json`, which is the layout the BAGEL loader reads.
|
| 101 |
-
- The scripts are in the PRIMER code release.
|
| 102 |
-
|
| 103 |
-
**Check.** Before upload, the restored release went through the BAGEL loader, which decoded
|
| 104 |
-
every image: 262,230 usable rows and 533,366 images, result
|
| 105 |
-
PASS.
|
| 106 |
-
|
| 107 |
-
## Row format
|
| 108 |
-
|
| 109 |
-
```json
|
| 110 |
-
{"id": "<sha256>", "question": "...", "options": "...", "images": ["images/<sha256>.jpg"],
|
| 111 |
-
"reasoning_thought_0": "...", "reasoning_image_0": "images/<sha256>.jpg",
|
| 112 |
-
"reasoning_thought_1": "...", "answer": "...", "subset": "<source subset>", "source_split": "train"}
|
| 113 |
-
```
|
| 114 |
-
|
| 115 |
-
- The supervision text (`question`, `options`, `answer`/`gt_answer`, every
|
| 116 |
-
`reasoning_thought_N`) and the image bytes are exactly as in the training copy.
|
| 117 |
-
- Image paths are content-hashed relative paths, and `id` is a public id.
|
| 118 |
-
- `subset` names the storage subset a row came from, and `source_split` the split it had
|
| 119 |
-
there.
|
| 120 |
-
- Source metadata fields are removed, because they contain internal storage paths.
|
| 121 |
-
|
| 122 |
-
## Rows without images
|
| 123 |
-
|
| 124 |
-
`text_only/` holds the rows whose images come from **Matterport3D**. Their terms do not allow
|
| 125 |
-
us to redistribute the images. Obtain the source data yourself and rebuild the images.
|
| 126 |
-
|
| 127 |
-
- `text_only/train.jsonl` (and `val.jsonl`): the rows, normalized like the main release
|
| 128 |
-
(same public ids), with `subset` and `source_split`. The image fields keep the
|
| 129 |
-
**original file names**.
|
| 130 |
-
- `text_only/images.jsonl`: one record per original image (`subset`, `split`, `name`). Each
|
| 131 |
-
record gives the byte size and MD5 of the exact file used in training, the upstream
|
| 132 |
-
dataset and ids, the role and a derivation sentence.
|
| 133 |
-
- `text_only/provenance.jsonl`: per row, the reconstruction parameters (for example yaw
|
| 134 |
-
angles of paired views, jigsaw grid and tile permutation, original image id and size, take
|
| 135 |
-
name and frame rank).
|
| 136 |
-
|
| 137 |
-
To get the source data:
|
| 138 |
-
|
| 139 |
-
- **Matterport3D:** sign the Matterport3D Terms of Use. Get the form from
|
| 140 |
-
<https://niessner.github.io/Matterport/> and send it to matterport3d@googlegroups.com. The
|
| 141 |
-
rows name the Matterport3D panoramas they use.
|
| 142 |
-
|
| 143 |
-
A rebuilt image may differ in bytes even when it shows the same content. Compare it with the
|
| 144 |
-
recorded MD5.
|
| 145 |
-
|
| 146 |
-
## Source terms
|
| 147 |
-
|
| 148 |
-
Each source keeps its own terms. The image release has no blanket license.
|
| 149 |
-
|
| 150 |
-
- **Code license.** SAM's Apache-2.0 code license does not cover the SA-1B images.
|
| 151 |
-
- **360+x.** Its project page shows CC BY-NC-SA 4.0.
|
| 152 |
-
- **Realsee3D.** Its Zenodo record lists CC BY 4.0.
|
| 153 |
-
- **Matterport3D.** Its rows are text only.
|
| 154 |
-
|
| 155 |
-
## Provenance
|
| 156 |
-
|
| 157 |
-
- **Training copy.** Training read an internal storage copy that is no longer reachable.
|
| 158 |
-
- **This release.** It is built from the team's archived copy of the same training folders.
|
| 159 |
-
- **What matches.** Train row counts, family counts and source counts match the paper's
|
| 160 |
-
records.
|
| 161 |
-
- **What could not be checked.** Byte identity with the training copy.
|
|
|
|
| 2 |
license: other
|
| 3 |
license_name: per-source-terms
|
| 4 |
pretty_name: Pretext-270K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
configs:
|
| 6 |
- config_name: preview
|
| 7 |
data_files:
|
|
|
|
| 11 |
|
| 12 |
# Pretext-270K
|
| 13 |
|
| 14 |
+
More details will be added later.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|