Add files using upload-large-folder tool
Browse files- .gitattributes +1 -59
- README.md +61 -0
- generation_manifest.json +17 -0
- metadata.parquet +3 -0
- quality/validation.json +22 -0
- source_metadata/build_hardnegs_v2_metadata.py +168 -0
- source_metadata/build_hf_hardneg_dataset.py +549 -0
- source_metadata/sampling_manifest.json +0 -0
- source_metadata/v2_manifest.json +13 -0
- videos/plateWithHole3D/plateWithHole3D_S003.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S004.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S010.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S020.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S025.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S033.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S058.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S059.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S067.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S069.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S070.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S081.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S092.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S094.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S099.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S115.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S128.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S135.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S171.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S183.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S188.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S191.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S197.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S199.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S201.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S202.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S227.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S228.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S233.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S234.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S241.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S251.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S257.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S271.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S272.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S274.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S279.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S284.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S289.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S298.mp4 +3 -0
- videos/plateWithHole3D/plateWithHole3D_S303.mp4 +3 -0
.gitattributes
CHANGED
|
@@ -1,60 +1,2 @@
|
|
| 1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
-
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 38 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
-
# Audio files - uncompressed
|
| 40 |
-
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
-
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 42 |
-
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 43 |
-
# Audio files - compressed
|
| 44 |
-
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
-
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 46 |
-
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
-
# Image files - uncompressed
|
| 50 |
-
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
-
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
-
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
-
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
-
# Image files - compressed
|
| 55 |
-
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
-
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
-
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
-
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
metadata.parquet filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
dataset_info:
|
| 3 |
+
features:
|
| 4 |
+
- name: text
|
| 5 |
+
dtype: string
|
| 6 |
+
- name: video
|
| 7 |
+
dtype: string
|
| 8 |
+
- name: hard_negative_texts
|
| 9 |
+
list: string
|
| 10 |
+
- name: hard_negative_videos
|
| 11 |
+
list: string
|
| 12 |
+
splits:
|
| 13 |
+
- name: train
|
| 14 |
+
num_bytes: 956204969
|
| 15 |
+
num_examples: 2700
|
| 16 |
+
download_size: 956204969
|
| 17 |
+
dataset_size: 956204969
|
| 18 |
+
configs:
|
| 19 |
+
- config_name: default
|
| 20 |
+
data_files:
|
| 21 |
+
- split: train
|
| 22 |
+
path: metadata.parquet
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
# Physics Bench Solid Train
|
| 26 |
+
|
| 27 |
+
Repository: `gowitheflowlab/physics-bench-solid-train`
|
| 28 |
+
|
| 29 |
+
Training split with hard negatives for solid simulation video retrieval.
|
| 30 |
+
|
| 31 |
+
- rows: 2700
|
| 32 |
+
- metadata columns: `text`, `video`, `hard_negative_texts`, `hard_negative_videos`
|
| 33 |
+
- hard negatives per row: 5, drawn from the other 99 cases of the same family
|
| 34 |
+
- video paths: repository-relative `videos/<family>/<case_id>.mp4`
|
| 35 |
+
- list alignment: `hard_negative_texts[i]` and `hard_negative_videos[i]` come from the same case
|
| 36 |
+
- `text` and `hard_negative_texts` use the natural-language query style (`solid_eval_queries_v4_dynamics_aligned_raw_parsed`),
|
| 37 |
+
matching the `parsed_text` column of `gowitheflowlab/physics-bench-solid-eval-2700`
|
| 38 |
+
- case parameters are disjoint from the evaluation split, so no evaluation case is reachable here
|
| 39 |
+
|
| 40 |
+
## Reproducibility
|
| 41 |
+
|
| 42 |
+
- sampling: global seed 42, family alphabetical order then case_id order, one
|
| 43 |
+
`random.Random(seed)` stream, `random.sample(sorted(other_99_case_ids), 5)`
|
| 44 |
+
- assignment digest: `a9c1db6e65fb206f`
|
| 45 |
+
- text: generated from the training case metadata; see
|
| 46 |
+
`source_metadata/build_hardnegs_v2_metadata.py` and `source_metadata/v2_manifest.json`
|
| 47 |
+
- validation report: `quality/validation.json`
|
| 48 |
+
|
| 49 |
+
## Loading
|
| 50 |
+
|
| 51 |
+
```python
|
| 52 |
+
from pathlib import Path
|
| 53 |
+
import pyarrow.parquet as pq
|
| 54 |
+
from huggingface_hub import snapshot_download
|
| 55 |
+
|
| 56 |
+
root = Path(snapshot_download("gowitheflowlab/physics-bench-solid-train", repo_type="dataset"))
|
| 57 |
+
rows = pq.read_table(root / "metadata.parquet").to_pylist()
|
| 58 |
+
row = rows[0]
|
| 59 |
+
positive_video = root / row["video"]
|
| 60 |
+
negative_videos = [root / path for path in row["hard_negative_videos"]]
|
| 61 |
+
```
|
generation_manifest.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"repo_id": "gowitheflowlab/physics-bench-solid-train",
|
| 3 |
+
"source_repo": "gowitheflowlab/physics-bench-solid-train-2700",
|
| 4 |
+
"seed": 42,
|
| 5 |
+
"query_suffix": "__query_1",
|
| 6 |
+
"algorithm": "one random.Random(seed) stream; sorted families; sorted case_id; random.sample(other_99, 5)",
|
| 7 |
+
"family_count": 27,
|
| 8 |
+
"total_rows": 2700,
|
| 9 |
+
"assignment_sha256": "666ca8db70d4b46e9998ae2a99883d5e5796e51a3067845d6adfdef6bf47ea95",
|
| 10 |
+
"variant": "v2",
|
| 11 |
+
"v1_repo": "gowitheflowlab/physics-bench-solid-w-hardnegs",
|
| 12 |
+
"v2_text_version": "solid_eval_queries_v4_dynamics_aligned_raw_parsed",
|
| 13 |
+
"v2_text_style": "eval-aligned raw structured query",
|
| 14 |
+
"v2_text_generator": "eval-aligned raw structured query generator",
|
| 15 |
+
"pairing_identical_to_v1": true,
|
| 16 |
+
"pairing_sha256": "a9c1db6e65fb206f7aea42a1e2abf1f78c9337afd9cc21594ab3ce281aaf2e2d"
|
| 17 |
+
}
|
metadata.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9fe0b713a999abd96da6092d5a023a88977d4acb1e48e84ef49859a3f765fdee
|
| 3 |
+
size 624971
|
quality/validation.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"repo_id": "gowitheflowlab/physics-bench-solid-train",
|
| 3 |
+
"rows": 2700,
|
| 4 |
+
"columns": [
|
| 5 |
+
"text",
|
| 6 |
+
"video",
|
| 7 |
+
"hard_negative_texts",
|
| 8 |
+
"hard_negative_videos"
|
| 9 |
+
],
|
| 10 |
+
"unique_positive_texts": 2700,
|
| 11 |
+
"negatives_per_row": [
|
| 12 |
+
5
|
| 13 |
+
],
|
| 14 |
+
"negative_text_matches_own_case_text": true,
|
| 15 |
+
"self_referencing_negatives": 0,
|
| 16 |
+
"staged_video_files": 2700,
|
| 17 |
+
"all_referenced_videos_present": true,
|
| 18 |
+
"video_bytes": 955579998,
|
| 19 |
+
"pairing_identical_to_v1": true,
|
| 20 |
+
"pairing_sha256": "a9c1db6e65fb206f7aea42a1e2abf1f78c9337afd9cc21594ab3ce281aaf2e2d",
|
| 21 |
+
"text_version": "solid_eval_queries_v4_dynamics_aligned_raw_parsed"
|
| 22 |
+
}
|
source_metadata/build_hardnegs_v2_metadata.py
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Build a v2 of a *-w-hardnegs dataset that keeps the v1 positive/negative pairing
|
| 3 |
+
byte-for-byte and only rewrites `text` / `hard_negative_texts` using the eval-aligned
|
| 4 |
+
raw query generator of the corresponding domain.
|
| 5 |
+
"""
|
| 6 |
+
from __future__ import annotations
|
| 7 |
+
|
| 8 |
+
import argparse
|
| 9 |
+
import hashlib
|
| 10 |
+
import importlib.util
|
| 11 |
+
import json
|
| 12 |
+
import sys
|
| 13 |
+
from collections import Counter
|
| 14 |
+
from pathlib import Path
|
| 15 |
+
|
| 16 |
+
import pyarrow as pa
|
| 17 |
+
import pyarrow.parquet as pq
|
| 18 |
+
|
| 19 |
+
FLUID_ROOT = Path("/mnt/iusers01/fatpou01/compsci01/r90629yl/src/Physics_bench/physics_bench_fluid")
|
| 20 |
+
SOLID_ROOT = Path("/mnt/iusers01/fatpou01/compsci01/r90629yl/src/Physics_bench/physics_bench_solid")
|
| 21 |
+
OPTICS_ROOT = Path("/mnt/iusers01/fatpou01/compsci01/r90629yl/src/Physics_bench/physics_bench_optics")
|
| 22 |
+
DYNAMICS_ROOT = Path("/mnt/iusers01/fatpou01/compsci01/r90629yl/src/Physics_bench/physics_bench_dynamics")
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
def _load_module(path: Path, name: str):
|
| 26 |
+
spec = importlib.util.spec_from_file_location(name, path)
|
| 27 |
+
mod = importlib.util.module_from_spec(spec)
|
| 28 |
+
spec.loader.exec_module(mod)
|
| 29 |
+
return mod
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
def make_text_fn(domain: str):
|
| 33 |
+
if domain == "optics":
|
| 34 |
+
sys.path.insert(0, str(OPTICS_ROOT / "src"))
|
| 35 |
+
from physics_bench_optics import dataset as ds
|
| 36 |
+
|
| 37 |
+
def fn(case):
|
| 38 |
+
return ds._parsed_query_text(case, ds._case_tokens(case))
|
| 39 |
+
|
| 40 |
+
return fn, ds.QUERY_VERSION
|
| 41 |
+
if domain == "fluid":
|
| 42 |
+
exp = _load_module(FLUID_ROOT / "scripts" / "export_hf_fluid_test_format.py", "fluid_export")
|
| 43 |
+
return exp._eval_parsed_query_text, exp.EVAL_QUERY_VERSION
|
| 44 |
+
if domain == "solid":
|
| 45 |
+
sys.path.insert(0, str(SOLID_ROOT / "src"))
|
| 46 |
+
from physics_bench_solid import release_pipeline as rp
|
| 47 |
+
|
| 48 |
+
return rp._eval_parsed_query_text, rp.EVAL_QUERY_VERSION
|
| 49 |
+
if domain == "dynamics":
|
| 50 |
+
sys.path.insert(0, str(DYNAMICS_ROOT / "src"))
|
| 51 |
+
from physics_bench_dynamics import parsed_query as pqm
|
| 52 |
+
|
| 53 |
+
return pqm.generate_template_text, pqm.PARSED_QUERY_VERSION
|
| 54 |
+
raise ValueError(domain)
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
def disambiguate(domain: str, texts: dict, cases: dict) -> dict:
|
| 58 |
+
if domain == "dynamics":
|
| 59 |
+
sys.path.insert(0, str(DYNAMICS_ROOT / "src"))
|
| 60 |
+
from physics_bench_dynamics import parsed_query as pqm
|
| 61 |
+
|
| 62 |
+
return pqm.disambiguate_texts(texts, cases)
|
| 63 |
+
if domain == "optics":
|
| 64 |
+
sys.path.insert(0, str(OPTICS_ROOT / "src"))
|
| 65 |
+
from physics_bench_optics import dataset as ds
|
| 66 |
+
|
| 67 |
+
case_vals = {cid: ds._case_tokens(cases[cid]) for cid in texts}
|
| 68 |
+
return ds.disambiguate_parsed_texts(texts, case_vals)
|
| 69 |
+
return texts
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
def case_id_from_path(path: str) -> str:
|
| 73 |
+
return path.split("/")[-1].rsplit(".", 1)[0]
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
def main() -> None:
|
| 77 |
+
ap = argparse.ArgumentParser()
|
| 78 |
+
ap.add_argument("--domain", required=True, choices=["optics", "fluid", "solid", "dynamics"])
|
| 79 |
+
ap.add_argument("--v1-metadata", required=True, help="metadata.parquet downloaded from the v1 repo")
|
| 80 |
+
ap.add_argument("--train-cases", required=True, help="train cases.jsonl / release_cases.jsonl")
|
| 81 |
+
ap.add_argument("--out-dir", required=True)
|
| 82 |
+
ap.add_argument("--benchmark-cases", default=None,
|
| 83 |
+
help="optional benchmark cases file; asserts train params differ (solid safety check)")
|
| 84 |
+
args = ap.parse_args()
|
| 85 |
+
|
| 86 |
+
text_fn, version = make_text_fn(args.domain)
|
| 87 |
+
|
| 88 |
+
cases: dict[str, dict] = {}
|
| 89 |
+
with open(args.train_cases) as fh:
|
| 90 |
+
for line in fh:
|
| 91 |
+
c = json.loads(line)
|
| 92 |
+
cases[str(c["case_id"])] = c
|
| 93 |
+
|
| 94 |
+
if args.benchmark_cases:
|
| 95 |
+
bench: dict[str, dict] = {}
|
| 96 |
+
with open(args.benchmark_cases) as fh:
|
| 97 |
+
for line in fh:
|
| 98 |
+
c = json.loads(line)
|
| 99 |
+
bench[str(c["case_id"])] = c
|
| 100 |
+
shared = sorted(set(cases) & set(bench))
|
| 101 |
+
identical = [c for c in shared if cases[c].get("params") == bench[c].get("params")]
|
| 102 |
+
print(f"[safety] case_id shared with benchmark: {len(shared)}; identical params: {len(identical)}")
|
| 103 |
+
if identical:
|
| 104 |
+
raise ValueError(f"train metadata appears to be the benchmark set, e.g. {identical[:3]}")
|
| 105 |
+
|
| 106 |
+
table = pq.read_table(args.v1_metadata)
|
| 107 |
+
rows = table.to_pylist()
|
| 108 |
+
|
| 109 |
+
referenced: list[str] = []
|
| 110 |
+
for r in rows:
|
| 111 |
+
referenced.append(case_id_from_path(r["video"]))
|
| 112 |
+
referenced.extend(case_id_from_path(v) for v in r["hard_negative_videos"])
|
| 113 |
+
missing = sorted({c for c in referenced if c not in cases})
|
| 114 |
+
if missing:
|
| 115 |
+
raise ValueError(f"{len(missing)} referenced case_ids missing from train metadata, e.g. {missing[:3]}")
|
| 116 |
+
|
| 117 |
+
texts: dict[str, str] = {cid: text_fn(cases[cid]) for cid in sorted(set(referenced))}
|
| 118 |
+
texts = disambiguate(args.domain, texts, cases)
|
| 119 |
+
|
| 120 |
+
new_text = [texts[case_id_from_path(r["video"])] for r in rows]
|
| 121 |
+
new_negs = [[texts[case_id_from_path(v)] for v in r["hard_negative_videos"]] for r in rows]
|
| 122 |
+
|
| 123 |
+
dupes = {k: v for k, v in Counter(new_text).items() if v > 1}
|
| 124 |
+
if dupes:
|
| 125 |
+
raise ValueError(f"positive texts not unique: {len(dupes)} collisions")
|
| 126 |
+
|
| 127 |
+
names = table.schema.names
|
| 128 |
+
out_table = table.set_column(names.index("text"), table.schema.field(names.index("text")),
|
| 129 |
+
pa.array(new_text, type=pa.string()))
|
| 130 |
+
out_table = out_table.set_column(names.index("hard_negative_texts"),
|
| 131 |
+
out_table.schema.field(names.index("hard_negative_texts")),
|
| 132 |
+
pa.array(new_negs, type=out_table.schema.field(names.index("hard_negative_texts")).type))
|
| 133 |
+
|
| 134 |
+
# pairing must be untouched
|
| 135 |
+
assert out_table.column("video").to_pylist() == table.column("video").to_pylist()
|
| 136 |
+
assert out_table.column("hard_negative_videos").to_pylist() == table.column("hard_negative_videos").to_pylist()
|
| 137 |
+
|
| 138 |
+
pair_repr = json.dumps(
|
| 139 |
+
[[r["video"], r["hard_negative_videos"]] for r in rows], separators=(",", ":"), sort_keys=False
|
| 140 |
+
)
|
| 141 |
+
pairing_sha = hashlib.sha256(pair_repr.encode()).hexdigest()
|
| 142 |
+
|
| 143 |
+
out = Path(args.out_dir)
|
| 144 |
+
out.mkdir(parents=True, exist_ok=True)
|
| 145 |
+
pq.write_table(out_table, out / "metadata.parquet", compression="snappy", write_page_index=True)
|
| 146 |
+
|
| 147 |
+
summary = {
|
| 148 |
+
"domain": args.domain,
|
| 149 |
+
"text_version": version,
|
| 150 |
+
"text_style": "eval-aligned raw structured query",
|
| 151 |
+
"rows": len(rows),
|
| 152 |
+
"distinct_cases": len(texts),
|
| 153 |
+
"negatives_per_case": len(rows[0]["hard_negative_videos"]),
|
| 154 |
+
"pairing_identical_to_v1": True,
|
| 155 |
+
"pairing_sha256": pairing_sha,
|
| 156 |
+
"unique_positive_texts": len(set(new_text)),
|
| 157 |
+
"v1_metadata": args.v1_metadata,
|
| 158 |
+
"train_cases": args.train_cases,
|
| 159 |
+
}
|
| 160 |
+
(out / "v2_manifest.json").write_text(json.dumps(summary, indent=2))
|
| 161 |
+
sample = {"positive": new_text[0], "negatives": new_negs[0][:2],
|
| 162 |
+
"video": rows[0]["video"], "negative_videos": rows[0]["hard_negative_videos"][:2]}
|
| 163 |
+
(out / "sample.json").write_text(json.dumps(sample, indent=2))
|
| 164 |
+
print(json.dumps(summary, indent=2))
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
if __name__ == "__main__":
|
| 168 |
+
main()
|
source_metadata/build_hf_hardneg_dataset.py
ADDED
|
@@ -0,0 +1,549 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
|
| 4 |
+
import argparse
|
| 5 |
+
import hashlib
|
| 6 |
+
import json
|
| 7 |
+
import random
|
| 8 |
+
import shutil
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
from typing import Any
|
| 11 |
+
|
| 12 |
+
import pyarrow as pa
|
| 13 |
+
import pyarrow.compute as pc
|
| 14 |
+
import pyarrow.parquet as pq
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
NEGATIVE_COUNT = 5
|
| 18 |
+
SOURCE_COLUMNS = ("query_id", "case_id", "raw_text", "parsed_text", "video")
|
| 19 |
+
OUTPUT_COLUMNS = ("text", "video", "hard_negative_texts", "hard_negative_videos")
|
| 20 |
+
|
| 21 |
+
HF_FEATURES = {
|
| 22 |
+
"text": {"dtype": "string", "_type": "Value"},
|
| 23 |
+
"video": {"dtype": "string", "_type": "Value"},
|
| 24 |
+
"hard_negative_texts": {
|
| 25 |
+
"feature": {"dtype": "string", "_type": "Value"},
|
| 26 |
+
"length": -1,
|
| 27 |
+
"_type": "List",
|
| 28 |
+
},
|
| 29 |
+
"hard_negative_videos": {
|
| 30 |
+
"feature": {"dtype": "string", "_type": "Value"},
|
| 31 |
+
"length": -1,
|
| 32 |
+
"_type": "List",
|
| 33 |
+
},
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
OUTPUT_SCHEMA = pa.schema(
|
| 37 |
+
[
|
| 38 |
+
pa.field("text", pa.string()),
|
| 39 |
+
pa.field("video", pa.string()),
|
| 40 |
+
pa.field("hard_negative_texts", pa.list_(pa.string())),
|
| 41 |
+
pa.field("hard_negative_videos", pa.list_(pa.string())),
|
| 42 |
+
],
|
| 43 |
+
metadata={
|
| 44 |
+
b"huggingface": json.dumps(
|
| 45 |
+
{"info": {"features": HF_FEATURES}},
|
| 46 |
+
separators=(",", ":"),
|
| 47 |
+
).encode()
|
| 48 |
+
},
|
| 49 |
+
)
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def _write_json(path: Path, payload: Any) -> None:
|
| 53 |
+
path.parent.mkdir(parents=True, exist_ok=True)
|
| 54 |
+
path.write_text(
|
| 55 |
+
json.dumps(payload, indent=2, ensure_ascii=False) + "\n",
|
| 56 |
+
encoding="utf-8",
|
| 57 |
+
)
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
def _source_files(source_dir: Path) -> list[tuple[str, Path]]:
|
| 61 |
+
return sorted(
|
| 62 |
+
((path.parent.name, path) for path in source_dir.glob("*/train-*.parquet")),
|
| 63 |
+
key=lambda item: item[0],
|
| 64 |
+
)
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
def _read_query_rows(
|
| 68 |
+
path: Path,
|
| 69 |
+
*,
|
| 70 |
+
query_suffix: str,
|
| 71 |
+
include_video: bool,
|
| 72 |
+
) -> list[dict[str, Any]]:
|
| 73 |
+
columns = list(SOURCE_COLUMNS if include_video else SOURCE_COLUMNS[:-1])
|
| 74 |
+
table = pq.read_table(path, columns=columns)
|
| 75 |
+
filtered = table.filter(pc.ends_with(table["query_id"], pattern=query_suffix))
|
| 76 |
+
return sorted(filtered.to_pylist(), key=lambda row: str(row["case_id"]))
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
def _sample_assignments(
|
| 80 |
+
family_rows: dict[str, list[dict[str, Any]]],
|
| 81 |
+
*,
|
| 82 |
+
seed: int,
|
| 83 |
+
) -> dict[str, dict[str, list[str]]]:
|
| 84 |
+
rng = random.Random(seed)
|
| 85 |
+
assignments: dict[str, dict[str, list[str]]] = {}
|
| 86 |
+
for family in sorted(family_rows):
|
| 87 |
+
rows = sorted(family_rows[family], key=lambda row: str(row["case_id"]))
|
| 88 |
+
family_assignments: dict[str, list[str]] = {}
|
| 89 |
+
for row in rows:
|
| 90 |
+
case_id = str(row["case_id"])
|
| 91 |
+
candidates = [
|
| 92 |
+
str(candidate["case_id"])
|
| 93 |
+
for candidate in rows
|
| 94 |
+
if str(candidate["case_id"]) != case_id
|
| 95 |
+
]
|
| 96 |
+
family_assignments[case_id] = rng.sample(candidates, NEGATIVE_COUNT)
|
| 97 |
+
assignments[family] = family_assignments
|
| 98 |
+
return assignments
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
def _assignment_digest(assignments: dict[str, dict[str, list[str]]]) -> str:
|
| 102 |
+
payload = [
|
| 103 |
+
{
|
| 104 |
+
"family": family,
|
| 105 |
+
"case_id": case_id,
|
| 106 |
+
"negative_case_ids": assignments[family][case_id],
|
| 107 |
+
}
|
| 108 |
+
for family in sorted(assignments)
|
| 109 |
+
for case_id in sorted(assignments[family])
|
| 110 |
+
]
|
| 111 |
+
serialized = json.dumps(payload, sort_keys=True, separators=(",", ":"))
|
| 112 |
+
return hashlib.sha256(serialized.encode()).hexdigest()
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
def _video_relpath(family: str, case_id: str) -> str:
|
| 116 |
+
return f"videos/{family}/{case_id}.mp4"
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
def _update_video_digest(digest: Any, relpath: str, data: bytes) -> None:
|
| 120 |
+
digest.update(relpath.encode())
|
| 121 |
+
digest.update(b"\0")
|
| 122 |
+
digest.update(data)
|
| 123 |
+
digest.update(b"\n")
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
def _readme(
|
| 127 |
+
*,
|
| 128 |
+
repo_id: str,
|
| 129 |
+
source_repo: str,
|
| 130 |
+
seed: int,
|
| 131 |
+
query_suffix: str,
|
| 132 |
+
total_rows: int,
|
| 133 |
+
metadata_size: int,
|
| 134 |
+
video_size: int,
|
| 135 |
+
) -> str:
|
| 136 |
+
total_size = metadata_size + video_size
|
| 137 |
+
return "\n".join(
|
| 138 |
+
[
|
| 139 |
+
"---",
|
| 140 |
+
"dataset_info:",
|
| 141 |
+
" features:",
|
| 142 |
+
" - name: text",
|
| 143 |
+
" dtype: string",
|
| 144 |
+
" - name: video",
|
| 145 |
+
" dtype: string",
|
| 146 |
+
" - name: hard_negative_texts",
|
| 147 |
+
" list: string",
|
| 148 |
+
" - name: hard_negative_videos",
|
| 149 |
+
" list: string",
|
| 150 |
+
" splits:",
|
| 151 |
+
" - name: train",
|
| 152 |
+
f" num_bytes: {total_size}",
|
| 153 |
+
f" num_examples: {total_rows}",
|
| 154 |
+
f" download_size: {total_size}",
|
| 155 |
+
f" dataset_size: {total_size}",
|
| 156 |
+
"configs:",
|
| 157 |
+
"- config_name: default",
|
| 158 |
+
" data_files:",
|
| 159 |
+
" - split: train",
|
| 160 |
+
" path: metadata.parquet",
|
| 161 |
+
"---",
|
| 162 |
+
"",
|
| 163 |
+
"# Physics Bench Solid With Hard Negatives",
|
| 164 |
+
"",
|
| 165 |
+
f"Repository: `{repo_id}`",
|
| 166 |
+
"",
|
| 167 |
+
f"Source dataset: `{source_repo}`",
|
| 168 |
+
"",
|
| 169 |
+
"This repository follows the path-based layout of "
|
| 170 |
+
"`gowitheflowlab/physics-bench-optics-w-hardnegs`.",
|
| 171 |
+
"",
|
| 172 |
+
f"- rows: {total_rows}",
|
| 173 |
+
"- metadata columns: `text`, `video`, `hard_negative_texts`, "
|
| 174 |
+
"`hard_negative_videos`",
|
| 175 |
+
f"- positive text: query 1 (`{query_suffix}`) from the source case",
|
| 176 |
+
f"- hard negatives per row: {NEGATIVE_COUNT}",
|
| 177 |
+
"- video paths: repository-relative `videos/<family>/<case_id>.mp4`",
|
| 178 |
+
"- list alignment: `hard_negative_texts[i]` and "
|
| 179 |
+
"`hard_negative_videos[i]` come from the same case",
|
| 180 |
+
"- candidate pool: only the other 99 cases in the positive case's family",
|
| 181 |
+
"",
|
| 182 |
+
"## Reproducibility",
|
| 183 |
+
"",
|
| 184 |
+
f"- global seed: {seed}",
|
| 185 |
+
"- traversal: family alphabetical order, then case_id order",
|
| 186 |
+
f"- sampling: one `random.Random({seed})` stream for all {total_rows} rows",
|
| 187 |
+
"- selection: `random.sample(sorted(other_99_case_ids), 5)`",
|
| 188 |
+
"",
|
| 189 |
+
"## Loading",
|
| 190 |
+
"",
|
| 191 |
+
"```python",
|
| 192 |
+
"from pathlib import Path",
|
| 193 |
+
"import pyarrow.parquet as pq",
|
| 194 |
+
"from huggingface_hub import snapshot_download",
|
| 195 |
+
"",
|
| 196 |
+
f'root = Path(snapshot_download("{repo_id}", repo_type="dataset"))',
|
| 197 |
+
'rows = pq.read_table(root / "metadata.parquet").to_pylist()',
|
| 198 |
+
"row = rows[0]",
|
| 199 |
+
'positive_video = root / row["video"]',
|
| 200 |
+
'negative_videos = [root / path for path in row["hard_negative_videos"]]',
|
| 201 |
+
"```",
|
| 202 |
+
"",
|
| 203 |
+
"The training metadata intentionally contains only the four retrieval "
|
| 204 |
+
"columns. Case IDs and query IDs are retained in "
|
| 205 |
+
"`source_metadata/sampling_manifest.json` for auditing.",
|
| 206 |
+
"",
|
| 207 |
+
]
|
| 208 |
+
)
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
def _validate_output(
|
| 212 |
+
*,
|
| 213 |
+
out_dir: Path,
|
| 214 |
+
metadata_rows: list[dict[str, Any]],
|
| 215 |
+
family_rows: dict[str, list[dict[str, Any]]],
|
| 216 |
+
expected_total_rows: int,
|
| 217 |
+
source_video_hash: str,
|
| 218 |
+
) -> dict[str, Any]:
|
| 219 |
+
errors: list[str] = []
|
| 220 |
+
table = pq.read_table(out_dir / "metadata.parquet")
|
| 221 |
+
if tuple(table.column_names) != OUTPUT_COLUMNS:
|
| 222 |
+
errors.append(
|
| 223 |
+
f"metadata columns are {table.column_names}, expected {OUTPUT_COLUMNS}"
|
| 224 |
+
)
|
| 225 |
+
written_rows = table.to_pylist()
|
| 226 |
+
if len(written_rows) != expected_total_rows:
|
| 227 |
+
errors.append(
|
| 228 |
+
f"metadata has {len(written_rows)} rows, expected {expected_total_rows}"
|
| 229 |
+
)
|
| 230 |
+
if written_rows != metadata_rows:
|
| 231 |
+
errors.append("metadata changed during parquet serialization")
|
| 232 |
+
|
| 233 |
+
source_by_path: dict[str, dict[str, Any]] = {}
|
| 234 |
+
for family, rows in family_rows.items():
|
| 235 |
+
for row in rows:
|
| 236 |
+
relpath = _video_relpath(family, str(row["case_id"]))
|
| 237 |
+
source_by_path[relpath] = row
|
| 238 |
+
|
| 239 |
+
seen_positive_paths: set[str] = set()
|
| 240 |
+
hard_negative_pairs = 0
|
| 241 |
+
cross_family_count = 0
|
| 242 |
+
self_negative_count = 0
|
| 243 |
+
for row in written_rows:
|
| 244 |
+
video = str(row["video"])
|
| 245 |
+
source = source_by_path.get(video)
|
| 246 |
+
if source is None:
|
| 247 |
+
errors.append(f"positive video path is unknown: {video}")
|
| 248 |
+
continue
|
| 249 |
+
family = Path(video).parts[1]
|
| 250 |
+
if video in seen_positive_paths:
|
| 251 |
+
errors.append(f"duplicate positive video path: {video}")
|
| 252 |
+
seen_positive_paths.add(video)
|
| 253 |
+
if str(row["text"]) != str(source["raw_text"]):
|
| 254 |
+
errors.append(f"positive text mismatch: {video}")
|
| 255 |
+
|
| 256 |
+
negative_texts = list(row["hard_negative_texts"])
|
| 257 |
+
negative_videos = [str(path) for path in row["hard_negative_videos"]]
|
| 258 |
+
if (
|
| 259 |
+
len(negative_texts) != NEGATIVE_COUNT
|
| 260 |
+
or len(negative_videos) != NEGATIVE_COUNT
|
| 261 |
+
):
|
| 262 |
+
errors.append(f"{video}: expected five hard negatives")
|
| 263 |
+
if len(set(negative_videos)) != NEGATIVE_COUNT:
|
| 264 |
+
errors.append(f"{video}: hard-negative videos are not unique")
|
| 265 |
+
for negative_text, negative_video in zip(
|
| 266 |
+
negative_texts,
|
| 267 |
+
negative_videos,
|
| 268 |
+
):
|
| 269 |
+
hard_negative_pairs += 1
|
| 270 |
+
negative_source = source_by_path.get(negative_video)
|
| 271 |
+
if negative_source is None:
|
| 272 |
+
errors.append(f"{video}: unknown hard-negative path {negative_video}")
|
| 273 |
+
continue
|
| 274 |
+
if Path(negative_video).parts[1] != family:
|
| 275 |
+
cross_family_count += 1
|
| 276 |
+
if negative_video == video:
|
| 277 |
+
self_negative_count += 1
|
| 278 |
+
if str(negative_text) != str(negative_source["raw_text"]):
|
| 279 |
+
errors.append(
|
| 280 |
+
f"{video}: hard-negative text/path mismatch for {negative_video}"
|
| 281 |
+
)
|
| 282 |
+
|
| 283 |
+
if cross_family_count:
|
| 284 |
+
errors.append(f"found {cross_family_count} cross-family hard negatives")
|
| 285 |
+
if self_negative_count:
|
| 286 |
+
errors.append(f"found {self_negative_count} self hard negatives")
|
| 287 |
+
|
| 288 |
+
output_digest = hashlib.sha256()
|
| 289 |
+
missing_videos: list[str] = []
|
| 290 |
+
for relpath in sorted(source_by_path):
|
| 291 |
+
path = out_dir / relpath
|
| 292 |
+
if not path.is_file() or path.stat().st_size == 0:
|
| 293 |
+
missing_videos.append(relpath)
|
| 294 |
+
continue
|
| 295 |
+
_update_video_digest(output_digest, relpath, path.read_bytes())
|
| 296 |
+
output_video_hash = output_digest.hexdigest()
|
| 297 |
+
if output_video_hash != source_video_hash:
|
| 298 |
+
errors.append("video bytes changed while creating the hard-negative dataset")
|
| 299 |
+
|
| 300 |
+
return {
|
| 301 |
+
"passed": not errors,
|
| 302 |
+
"errors": errors[:100],
|
| 303 |
+
"metadata_rows": len(written_rows),
|
| 304 |
+
"metadata_columns": table.column_names,
|
| 305 |
+
"video_files": len(source_by_path) - len(missing_videos),
|
| 306 |
+
"missing_videos": missing_videos[:100],
|
| 307 |
+
"hard_negative_pairs": hard_negative_pairs,
|
| 308 |
+
"cross_family_hard_negatives": cross_family_count,
|
| 309 |
+
"self_hard_negatives": self_negative_count,
|
| 310 |
+
"source_video_sha256": source_video_hash,
|
| 311 |
+
"output_video_sha256": output_video_hash,
|
| 312 |
+
"video_bytes_preserved": source_video_hash == output_video_hash,
|
| 313 |
+
}
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
def build_dataset(
|
| 317 |
+
*,
|
| 318 |
+
source_dir: Path,
|
| 319 |
+
out_dir: Path,
|
| 320 |
+
repo_id: str,
|
| 321 |
+
source_repo: str,
|
| 322 |
+
seed: int,
|
| 323 |
+
query_suffix: str,
|
| 324 |
+
expected_rows_per_family: int,
|
| 325 |
+
expected_total_rows: int,
|
| 326 |
+
) -> dict[str, Any]:
|
| 327 |
+
source_files = _source_files(source_dir)
|
| 328 |
+
if not source_files:
|
| 329 |
+
raise FileNotFoundError(
|
| 330 |
+
f"No source family parquet files found under {source_dir}"
|
| 331 |
+
)
|
| 332 |
+
|
| 333 |
+
family_rows = {
|
| 334 |
+
family: _read_query_rows(
|
| 335 |
+
path,
|
| 336 |
+
query_suffix=query_suffix,
|
| 337 |
+
include_video=False,
|
| 338 |
+
)
|
| 339 |
+
for family, path in source_files
|
| 340 |
+
}
|
| 341 |
+
bad_counts = {
|
| 342 |
+
family: len(rows)
|
| 343 |
+
for family, rows in family_rows.items()
|
| 344 |
+
if len(rows) != expected_rows_per_family
|
| 345 |
+
}
|
| 346 |
+
if bad_counts:
|
| 347 |
+
raise ValueError(
|
| 348 |
+
f"Expected {expected_rows_per_family} query-1 rows per family: {bad_counts}"
|
| 349 |
+
)
|
| 350 |
+
if sum(map(len, family_rows.values())) != expected_total_rows:
|
| 351 |
+
raise ValueError(f"Expected {expected_total_rows} query-1 rows in total")
|
| 352 |
+
for family, rows in family_rows.items():
|
| 353 |
+
case_ids = [str(row["case_id"]) for row in rows]
|
| 354 |
+
if len(case_ids) != len(set(case_ids)):
|
| 355 |
+
raise ValueError(f"Duplicate query-1 case IDs in family {family}")
|
| 356 |
+
|
| 357 |
+
assignments = _sample_assignments(family_rows, seed=seed)
|
| 358 |
+
repeated = _sample_assignments(family_rows, seed=seed)
|
| 359 |
+
if assignments != repeated:
|
| 360 |
+
raise AssertionError("Hard-negative sampling is not reproducible")
|
| 361 |
+
|
| 362 |
+
if out_dir.exists():
|
| 363 |
+
shutil.rmtree(out_dir)
|
| 364 |
+
out_dir.mkdir(parents=True)
|
| 365 |
+
|
| 366 |
+
metadata_rows: list[dict[str, Any]] = []
|
| 367 |
+
manifest_rows: list[dict[str, Any]] = []
|
| 368 |
+
source_video_digest = hashlib.sha256()
|
| 369 |
+
video_size = 0
|
| 370 |
+
source_file_map = dict(source_files)
|
| 371 |
+
for family in sorted(family_rows):
|
| 372 |
+
rows = family_rows[family]
|
| 373 |
+
by_case = {str(row["case_id"]): row for row in rows}
|
| 374 |
+
rows_with_video = _read_query_rows(
|
| 375 |
+
source_file_map[family],
|
| 376 |
+
query_suffix=query_suffix,
|
| 377 |
+
include_video=True,
|
| 378 |
+
)
|
| 379 |
+
video_by_case = {
|
| 380 |
+
str(row["case_id"]): row["video"] for row in rows_with_video
|
| 381 |
+
}
|
| 382 |
+
if set(video_by_case) != set(by_case):
|
| 383 |
+
raise ValueError(f"Query/video case mismatch in family {family}")
|
| 384 |
+
|
| 385 |
+
for source_row in rows:
|
| 386 |
+
case_id = str(source_row["case_id"])
|
| 387 |
+
query_id = str(source_row["query_id"])
|
| 388 |
+
if not query_id.endswith(query_suffix):
|
| 389 |
+
raise ValueError(f"Unexpected query ID for query 1: {query_id}")
|
| 390 |
+
|
| 391 |
+
relpath = _video_relpath(family, case_id)
|
| 392 |
+
video_value = video_by_case[case_id]
|
| 393 |
+
video_bytes = bytes(video_value["bytes"])
|
| 394 |
+
if not video_bytes:
|
| 395 |
+
raise ValueError(f"Empty source video bytes for {case_id}")
|
| 396 |
+
video_path = out_dir / relpath
|
| 397 |
+
video_path.parent.mkdir(parents=True, exist_ok=True)
|
| 398 |
+
video_path.write_bytes(video_bytes)
|
| 399 |
+
video_size += len(video_bytes)
|
| 400 |
+
_update_video_digest(source_video_digest, relpath, video_bytes)
|
| 401 |
+
|
| 402 |
+
negative_case_ids = assignments[family][case_id]
|
| 403 |
+
negative_rows = [by_case[negative_id] for negative_id in negative_case_ids]
|
| 404 |
+
negative_paths = [
|
| 405 |
+
_video_relpath(family, negative_id)
|
| 406 |
+
for negative_id in negative_case_ids
|
| 407 |
+
]
|
| 408 |
+
metadata_rows.append(
|
| 409 |
+
{
|
| 410 |
+
"text": str(source_row["raw_text"]),
|
| 411 |
+
"video": relpath,
|
| 412 |
+
"hard_negative_texts": [
|
| 413 |
+
str(row["raw_text"]) for row in negative_rows
|
| 414 |
+
],
|
| 415 |
+
"hard_negative_videos": negative_paths,
|
| 416 |
+
}
|
| 417 |
+
)
|
| 418 |
+
manifest_rows.append(
|
| 419 |
+
{
|
| 420 |
+
"family": family,
|
| 421 |
+
"case_id": case_id,
|
| 422 |
+
"query_id": query_id,
|
| 423 |
+
"video": relpath,
|
| 424 |
+
"negative_case_ids": negative_case_ids,
|
| 425 |
+
"negative_query_ids": [
|
| 426 |
+
str(row["query_id"]) for row in negative_rows
|
| 427 |
+
],
|
| 428 |
+
"hard_negative_videos": negative_paths,
|
| 429 |
+
}
|
| 430 |
+
)
|
| 431 |
+
|
| 432 |
+
del rows_with_video
|
| 433 |
+
del video_by_case
|
| 434 |
+
|
| 435 |
+
metadata_path = out_dir / "metadata.parquet"
|
| 436 |
+
table = pa.Table.from_pylist(metadata_rows, schema=OUTPUT_SCHEMA)
|
| 437 |
+
pq.write_table(
|
| 438 |
+
table,
|
| 439 |
+
metadata_path,
|
| 440 |
+
compression="snappy",
|
| 441 |
+
row_group_size=100,
|
| 442 |
+
write_page_index=True,
|
| 443 |
+
)
|
| 444 |
+
source_video_hash = source_video_digest.hexdigest()
|
| 445 |
+
validation = _validate_output(
|
| 446 |
+
out_dir=out_dir,
|
| 447 |
+
metadata_rows=metadata_rows,
|
| 448 |
+
family_rows=family_rows,
|
| 449 |
+
expected_total_rows=expected_total_rows,
|
| 450 |
+
source_video_hash=source_video_hash,
|
| 451 |
+
)
|
| 452 |
+
assignment_hash = _assignment_digest(assignments)
|
| 453 |
+
validation.update(
|
| 454 |
+
{
|
| 455 |
+
"repo_id": repo_id,
|
| 456 |
+
"source_repo": source_repo,
|
| 457 |
+
"seed": seed,
|
| 458 |
+
"query_suffix": query_suffix,
|
| 459 |
+
"family_count": len(family_rows),
|
| 460 |
+
"rows_per_family": {
|
| 461 |
+
family: len(rows) for family, rows in family_rows.items()
|
| 462 |
+
},
|
| 463 |
+
"assignment_sha256": assignment_hash,
|
| 464 |
+
"second_pass_assignment_sha256": _assignment_digest(repeated),
|
| 465 |
+
"reproducibility_verified": assignments == repeated,
|
| 466 |
+
"single_rng_stream": True,
|
| 467 |
+
"traversal_order": "family alphabetical, then case_id",
|
| 468 |
+
}
|
| 469 |
+
)
|
| 470 |
+
_write_json(out_dir / "quality" / "validation.json", validation)
|
| 471 |
+
_write_json(
|
| 472 |
+
out_dir / "generation_manifest.json",
|
| 473 |
+
{
|
| 474 |
+
"repo_id": repo_id,
|
| 475 |
+
"source_repo": source_repo,
|
| 476 |
+
"seed": seed,
|
| 477 |
+
"query_suffix": query_suffix,
|
| 478 |
+
"algorithm": (
|
| 479 |
+
"one random.Random(seed) stream; sorted families; sorted case_id; "
|
| 480 |
+
"random.sample(other_99, 5)"
|
| 481 |
+
),
|
| 482 |
+
"family_count": len(family_rows),
|
| 483 |
+
"total_rows": len(metadata_rows),
|
| 484 |
+
"assignment_sha256": assignment_hash,
|
| 485 |
+
},
|
| 486 |
+
)
|
| 487 |
+
_write_json(
|
| 488 |
+
out_dir / "source_metadata" / "sampling_manifest.json",
|
| 489 |
+
manifest_rows,
|
| 490 |
+
)
|
| 491 |
+
shutil.copy2(
|
| 492 |
+
Path(__file__).resolve(),
|
| 493 |
+
out_dir / "source_metadata" / Path(__file__).name,
|
| 494 |
+
)
|
| 495 |
+
(out_dir / ".gitattributes").write_text(
|
| 496 |
+
"*.mp4 filter=lfs diff=lfs merge=lfs -text\n",
|
| 497 |
+
encoding="utf-8",
|
| 498 |
+
)
|
| 499 |
+
(out_dir / "README.md").write_text(
|
| 500 |
+
_readme(
|
| 501 |
+
repo_id=repo_id,
|
| 502 |
+
source_repo=source_repo,
|
| 503 |
+
seed=seed,
|
| 504 |
+
query_suffix=query_suffix,
|
| 505 |
+
total_rows=len(metadata_rows),
|
| 506 |
+
metadata_size=metadata_path.stat().st_size,
|
| 507 |
+
video_size=video_size,
|
| 508 |
+
),
|
| 509 |
+
encoding="utf-8",
|
| 510 |
+
)
|
| 511 |
+
if not validation["passed"]:
|
| 512 |
+
raise ValueError(f"Validation failed: {validation['errors'][:10]}")
|
| 513 |
+
return validation
|
| 514 |
+
|
| 515 |
+
|
| 516 |
+
def main() -> None:
|
| 517 |
+
parser = argparse.ArgumentParser(
|
| 518 |
+
description="Build a path-based solid hard-negative video dataset."
|
| 519 |
+
)
|
| 520 |
+
parser.add_argument("--source-dir", type=Path, required=True)
|
| 521 |
+
parser.add_argument("--out-dir", type=Path, required=True)
|
| 522 |
+
parser.add_argument(
|
| 523 |
+
"--repo-id",
|
| 524 |
+
default="gowitheflowlab/physics-bench-solid-w-hardnegs",
|
| 525 |
+
)
|
| 526 |
+
parser.add_argument(
|
| 527 |
+
"--source-repo",
|
| 528 |
+
default="gowitheflowlab/physics-bench-solid-train-2700",
|
| 529 |
+
)
|
| 530 |
+
parser.add_argument("--seed", type=int, default=42)
|
| 531 |
+
parser.add_argument("--query-suffix", default="__query_1")
|
| 532 |
+
parser.add_argument("--expected-rows-per-family", type=int, default=100)
|
| 533 |
+
parser.add_argument("--expected-total-rows", type=int, default=2700)
|
| 534 |
+
args = parser.parse_args()
|
| 535 |
+
result = build_dataset(
|
| 536 |
+
source_dir=args.source_dir.resolve(),
|
| 537 |
+
out_dir=args.out_dir.resolve(),
|
| 538 |
+
repo_id=args.repo_id,
|
| 539 |
+
source_repo=args.source_repo,
|
| 540 |
+
seed=args.seed,
|
| 541 |
+
query_suffix=args.query_suffix,
|
| 542 |
+
expected_rows_per_family=args.expected_rows_per_family,
|
| 543 |
+
expected_total_rows=args.expected_total_rows,
|
| 544 |
+
)
|
| 545 |
+
print(json.dumps(result, indent=2, ensure_ascii=False))
|
| 546 |
+
|
| 547 |
+
|
| 548 |
+
if __name__ == "__main__":
|
| 549 |
+
main()
|
source_metadata/sampling_manifest.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
source_metadata/v2_manifest.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"domain": "solid",
|
| 3 |
+
"text_version": "solid_eval_queries_v4_dynamics_aligned_raw_parsed",
|
| 4 |
+
"text_style": "eval-aligned raw structured query",
|
| 5 |
+
"rows": 2700,
|
| 6 |
+
"distinct_cases": 2700,
|
| 7 |
+
"negatives_per_case": 5,
|
| 8 |
+
"pairing_identical_to_v1": true,
|
| 9 |
+
"pairing_sha256": "a9c1db6e65fb206f7aea42a1e2abf1f78c9337afd9cc21594ab3ce281aaf2e2d",
|
| 10 |
+
"unique_positive_texts": 2700,
|
| 11 |
+
"v1_metadata": "/net/scratch/r90629yl/Physics_bench/hardnegs_v2/solid_v1/metadata.parquet",
|
| 12 |
+
"train_cases": "/mnt/iusers01/fatpou01/compsci01/r90629yl/src/Physics_bench/physics_bench_solid/workspace/solid_train_2700_20260716/release_train/curated_cases.jsonl"
|
| 13 |
+
}
|
videos/plateWithHole3D/plateWithHole3D_S003.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5290f5edb920ff4f6edeed187a8ba7b29ca10144ec30166010783c5af3d853cf
|
| 3 |
+
size 617736
|
videos/plateWithHole3D/plateWithHole3D_S004.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f43a48b77aeb12b6e2821bcca43e89e24e88117f37c6fd8f46f4ddee05346feb
|
| 3 |
+
size 1464084
|
videos/plateWithHole3D/plateWithHole3D_S010.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dbaf59e8dbf041e432c6dfc425d20f16e061d955f662ddb43b23835ce19b8148
|
| 3 |
+
size 1122420
|
videos/plateWithHole3D/plateWithHole3D_S020.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e475e49ba86d05d93d29c8145eb83813758997d8b01e4c205e4bcb861430db0
|
| 3 |
+
size 304127
|
videos/plateWithHole3D/plateWithHole3D_S025.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a17a8e9a9db00fa5923d3c92ad7eb7f46162fde067ed2a0150addc65379aea9
|
| 3 |
+
size 1493679
|
videos/plateWithHole3D/plateWithHole3D_S033.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:15daeb04e4ac7128da2de3ef40a4aedfdd555a7c63c2130bcfc3c9a9d4925b24
|
| 3 |
+
size 1372929
|
videos/plateWithHole3D/plateWithHole3D_S058.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bec95494cdfdf666a6af6ac7a7727acd572be25b5bff86890cf9bf97fa7bf0fe
|
| 3 |
+
size 400973
|
videos/plateWithHole3D/plateWithHole3D_S059.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a72095772f626f9ce04c11d898f1a4143d0f77605d1ebaf1a91735cb87d73a1d
|
| 3 |
+
size 1296611
|
videos/plateWithHole3D/plateWithHole3D_S067.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ad11bca43b0b39a793881d6c131a0eff4510277580bff61f32326b2c02d64d0
|
| 3 |
+
size 673540
|
videos/plateWithHole3D/plateWithHole3D_S069.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78659661cc2096223b63c11d2f43ec81348eecf8dd91262a173a8b0dc0909b37
|
| 3 |
+
size 1272211
|
videos/plateWithHole3D/plateWithHole3D_S070.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0d8f51fd0bd77d5b452f5c50f1f99080b10095ceab5b0e1f05aff23104b838b
|
| 3 |
+
size 715136
|
videos/plateWithHole3D/plateWithHole3D_S081.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:869bfa6f98bb3eeb1d70021c4f46d896242c3842cebae80c3af071b34be596a5
|
| 3 |
+
size 1232402
|
videos/plateWithHole3D/plateWithHole3D_S092.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ec481276629264862d8fc364f9de465bfa5f131a12e653f2546a0fb27bea8cb8
|
| 3 |
+
size 1454789
|
videos/plateWithHole3D/plateWithHole3D_S094.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:49dd1c3ad69079a21ba1460592a673345a55de5c59f5ed16736f718882a68e2c
|
| 3 |
+
size 630564
|
videos/plateWithHole3D/plateWithHole3D_S099.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2765cefb2b63a57da33e1f34294337e416d85cc48142c0f2a6c22a2176b4bce
|
| 3 |
+
size 517562
|
videos/plateWithHole3D/plateWithHole3D_S115.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a00602ff118e3133f417f1b14888b08079b1d19132e883ef997043f871d276dc
|
| 3 |
+
size 1019901
|
videos/plateWithHole3D/plateWithHole3D_S128.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87c3085acd752aca0579567388d5cacf8c2c485f5a6a35768d50c9eba05d2e7d
|
| 3 |
+
size 1361987
|
videos/plateWithHole3D/plateWithHole3D_S135.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ef2ea9ec0ce469d6ae3ab3788e8fd847a409926b605d8c3c68f580c8c7c76bf
|
| 3 |
+
size 451373
|
videos/plateWithHole3D/plateWithHole3D_S171.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d841c906e352dd4fc2b76547d132053c80816243736c91091bd58b9662909815
|
| 3 |
+
size 351479
|
videos/plateWithHole3D/plateWithHole3D_S183.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c26c2b498d9b876a357c06e9611da8a4abf05398a6864dd39add5c6bcfb62e48
|
| 3 |
+
size 1466169
|
videos/plateWithHole3D/plateWithHole3D_S188.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:674b1fe91690ae2db70cc253b87f6188c1bd4627b61b8eeb96d0ca0abd5e6218
|
| 3 |
+
size 1294133
|
videos/plateWithHole3D/plateWithHole3D_S191.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5c44846438ea885c42b7a56deb46e39df808eb689a17bae2a52ff28ba0160a4
|
| 3 |
+
size 982356
|
videos/plateWithHole3D/plateWithHole3D_S197.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:013b9743e2881a9d9eb72113f6e5c69d51f172714972e64a94e45f62d33ab855
|
| 3 |
+
size 426854
|
videos/plateWithHole3D/plateWithHole3D_S199.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a05f0bcffb11bfe7a5fa6951a61e2931bfb0aa51e49d2ccc7255df30f93cccfd
|
| 3 |
+
size 1090750
|
videos/plateWithHole3D/plateWithHole3D_S201.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9be15e821c9b37f3acf4053b496a406400b3e4af280c9af4d8340653ba627f53
|
| 3 |
+
size 1168474
|
videos/plateWithHole3D/plateWithHole3D_S202.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df83f8d4e6b003f6fa7dff71a3df1928b006bd4a7709866dc679c421e832b425
|
| 3 |
+
size 1695648
|
videos/plateWithHole3D/plateWithHole3D_S227.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:126abd7482642c40df8fd7bfdad60b1983800d7372e0c1b096654aec295d5e62
|
| 3 |
+
size 463429
|
videos/plateWithHole3D/plateWithHole3D_S228.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc2b870d19902579442d72e45cfae79453588442ade076763a544742b73604a4
|
| 3 |
+
size 910615
|
videos/plateWithHole3D/plateWithHole3D_S233.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9adcdd0778f550a9cc78e4cbb33b9e24b1bb1888b86f1bb06489f05c8cfb17c3
|
| 3 |
+
size 881597
|
videos/plateWithHole3D/plateWithHole3D_S234.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3de86d0a2dc8e7ae0bf946293f29d02ea0cebb1cb0d5cadc5014901ff8e5e84c
|
| 3 |
+
size 1706550
|
videos/plateWithHole3D/plateWithHole3D_S241.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:92c8a09b3eba85ef369fa961524f65271115e8d0e2b57dc70c906e2276b3af99
|
| 3 |
+
size 1179159
|
videos/plateWithHole3D/plateWithHole3D_S251.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6fe0c1cdc3d413f6f881b995f7ac09976a487850515f20ca77fe11ddbdc811d5
|
| 3 |
+
size 1153220
|
videos/plateWithHole3D/plateWithHole3D_S257.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3a533cb0834d8ad59d47fcf939ed8e652f23a67f24e2ab332cda4939ef3f9097
|
| 3 |
+
size 1263533
|
videos/plateWithHole3D/plateWithHole3D_S271.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef06beac2e19cb659e0ca5a4662305ce98f6d0eac8517908573fab7b2d750a9a
|
| 3 |
+
size 1122241
|
videos/plateWithHole3D/plateWithHole3D_S272.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19b061b5f40943339907e73050c7713cf2f6ecc343a209dabfd8077d0480ff1e
|
| 3 |
+
size 1390256
|
videos/plateWithHole3D/plateWithHole3D_S274.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3f12265da80e476f9ba70dcf7105f06c4296ec32868584e504cad9a9275a137
|
| 3 |
+
size 1470937
|
videos/plateWithHole3D/plateWithHole3D_S279.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c9a5faa8c6cc76fad9118887e2bbdb26b20f1ee86a7da7432116b6a6df8396c
|
| 3 |
+
size 556479
|
videos/plateWithHole3D/plateWithHole3D_S284.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40b51e06f4ac1d85d7171764b0ff21c682da3c29fe009f9e6dfceb53fcdec671
|
| 3 |
+
size 644736
|
videos/plateWithHole3D/plateWithHole3D_S289.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4f4340c737052eea9f812730f23936c55bd3dfb50aab3939245d206e9b888ff8
|
| 3 |
+
size 1416179
|
videos/plateWithHole3D/plateWithHole3D_S298.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2ec5ca8c9085ff6d7fd4f0a376931c2ec0f449d011304d18e45baa74e0391cb
|
| 3 |
+
size 306914
|
videos/plateWithHole3D/plateWithHole3D_S303.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:517cf53d7ec3d4cc70264de50d85b733a23d5fcceea3d74d7b2d0546252e771e
|
| 3 |
+
size 1294210
|