Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -25,37 +25,61 @@ ParaVT is a multi-agent agentic framework for long-video understanding, post-tra
|
|
| 25 |
|
| 26 |
## Layout
|
| 27 |
|
| 28 |
-
Files are grouped by sentinel bucket (matching the path scheme used by [`paravt.data.sanitize`](https://github.com/mwxely/ParaVT/blob/paravt-release/paravt/data/sanitize.py)). Each
|
| 29 |
|
| 30 |
| Bucket | Contents | Archive convention |
|
| 31 |
|---|---|---|
|
| 32 |
| `longvt_source/<src>/` | LongVT shared training clips (`videor1_*`, `longvideoreason_*`, `geminicot_*`, `tvg_*`, `selftrace_*`) | `<src>_<idx>.zip`, mirroring the [`longvideotool/LongVT-Source`](https://huggingface.co/datasets/longvideotool/LongVT-Source) naming |
|
|
|
|
| 33 |
| `museg/charades/` | Charades-STA clips used by the `charades` SFT split and the `charades_tvg` RL split | `charades_<idx>.zip` |
|
| 34 |
| `museg/et_instruct_164k/` | MuSeG `et_instruct_164k` clips used by the `museg` SFT split | `et_instruct_<idx>.zip` |
|
| 35 |
| `selfqa/` | Self-curated open-ended QA clips (HACS- and Ego4D-derived UUIDs / YouTube IDs) used by the `hacs` and `ego4d_naq` RL splits | `selfqa.zip` (single archive, ~6 GB) |
|
| 36 |
|
| 37 |
-
Each archive is sized to stay below 10 GB on disk so that LFS pointer + Cloudflare CDN serving stays well-behaved.
|
| 38 |
|
| 39 |
## Usage
|
| 40 |
|
| 41 |
```bash
|
|
|
|
| 42 |
huggingface-cli download ParaVT/ParaVT-Source --repo-type dataset --local-dir ./paravt-source
|
| 43 |
|
| 44 |
-
#
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
# Extract zips in place
|
| 50 |
-
( cd ./paravt-source && for z in */*.zip; do unzip -q -d "$(dirname "$z")" "$z"; done )
|
| 51 |
|
| 52 |
-
# Re-link absolute paths inside the parquets (one shot; see ParaVT/ParaVT-Parquet)
|
| 53 |
python -m paravt.data.materialize \
|
| 54 |
--root ./paravt-source \
|
| 55 |
--parquet-dir ./paravt-parquet \
|
| 56 |
--output-dir ./paravt-parquet-materialized
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
```
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
## Citation
|
| 60 |
|
| 61 |
```bibtex
|
|
|
|
| 25 |
|
| 26 |
## Layout
|
| 27 |
|
| 28 |
+
Files are grouped by sentinel bucket (matching the path scheme used by [`paravt.data.sanitize`](https://github.com/mwxely/ParaVT/blob/paravt-release/paravt/data/sanitize.py)). Each archive's members are stored under their full sentinel-form path, so extracting every zip into a single root produces a unified tree that [`paravt.data.materialize`](https://github.com/mwxely/ParaVT/blob/paravt-release/paravt/data/materialize.py) can re-link in one call.
|
| 29 |
|
| 30 |
| Bucket | Contents | Archive convention |
|
| 31 |
|---|---|---|
|
| 32 |
| `longvt_source/<src>/` | LongVT shared training clips (`videor1_*`, `longvideoreason_*`, `geminicot_*`, `tvg_*`, `selftrace_*`) | `<src>_<idx>.zip`, mirroring the [`longvideotool/LongVT-Source`](https://huggingface.co/datasets/longvideotool/LongVT-Source) naming |
|
| 33 |
+
| `longvt_source/videor1_<N>/...` *(images)* | Auxiliary image files (`.png` / `.jpg`) referenced by the multi-modal interleaved rows in `paravt_sft_videor1_50k.parquet` | `videor1_<N>_images.zip` (one per `videor1_<N>` bucket) |
|
| 34 |
| `museg/charades/` | Charades-STA clips used by the `charades` SFT split and the `charades_tvg` RL split | `charades_<idx>.zip` |
|
| 35 |
| `museg/et_instruct_164k/` | MuSeG `et_instruct_164k` clips used by the `museg` SFT split | `et_instruct_<idx>.zip` |
|
| 36 |
| `selfqa/` | Self-curated open-ended QA clips (HACS- and Ego4D-derived UUIDs / YouTube IDs) used by the `hacs` and `ego4d_naq` RL splits | `selfqa.zip` (single archive, ~6 GB) |
|
| 37 |
|
| 38 |
+
Each archive is sized to stay below 10 GB on disk so that LFS pointer + Cloudflare CDN serving stays well-behaved. The `<src>_<idx>.zip` and `videor1_<N>_images.zip` archives that share a `videor1_<N>` prefix unzip into disjoint subdirectories of the same `videor1_<N>/` tree (videos under `CLEVRER/`, `LLaVA-Video-178K/`, … and images under `Chart/`, `Math/`, `Knowledge/`, `OCR/`, …), so they don't overwrite each other.
|
| 39 |
|
| 40 |
## Usage
|
| 41 |
|
| 42 |
```bash
|
| 43 |
+
# 1. Download every archive (use --include for a subset; see below).
|
| 44 |
huggingface-cli download ParaVT/ParaVT-Source --repo-type dataset --local-dir ./paravt-source
|
| 45 |
|
| 46 |
+
# 2. Extract every zip into the same root. Each zip's arcname carries the
|
| 47 |
+
# full sentinel path (e.g. "longvt_source/videor1_7/Math/...png"), so the
|
| 48 |
+
# extraction target must be the top-level root, NOT the per-zip directory.
|
| 49 |
+
( cd ./paravt-source && find . -name "*.zip" -exec unzip -q -o -d . {} \; )
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
+
# 3. Re-link absolute paths inside the parquets (one shot; see ParaVT/ParaVT-Parquet).
|
| 52 |
python -m paravt.data.materialize \
|
| 53 |
--root ./paravt-source \
|
| 54 |
--parquet-dir ./paravt-parquet \
|
| 55 |
--output-dir ./paravt-parquet-materialized
|
| 56 |
+
|
| 57 |
+
# Selective: pull only the buckets you need (e.g. Charades grounding only).
|
| 58 |
+
# Materialize will warn on missing files but produce valid output for the
|
| 59 |
+
# subset that is present.
|
| 60 |
+
huggingface-cli download ParaVT/ParaVT-Source \
|
| 61 |
+
--repo-type dataset --local-dir ./paravt-source \
|
| 62 |
+
--include "museg/charades.zip"
|
| 63 |
```
|
| 64 |
|
| 65 |
+
After step 2 the directory tree under `./paravt-source/` looks like:
|
| 66 |
+
|
| 67 |
+
```
|
| 68 |
+
paravt-source/
|
| 69 |
+
├── longvt_source/
|
| 70 |
+
│ ├── videor1_<N>/ # mp4 from videor1_<N>.zip + png/jpg from videor1_<N>_images.zip
|
| 71 |
+
│ │ ├── CLEVRER/, LLaVA-Video-178K/, NeXT-QA/, ... # videos
|
| 72 |
+
│ │ └── Chart/, Math/, Knowledge/, OCR/, ... # images
|
| 73 |
+
│ ├── longvideoreason_<N>/ # from longvideoreason_<N>_part{1,2}.zip
|
| 74 |
+
│ ├── geminicot_<N>/, tvg_<N>/, selftrace_<N>/, ...
|
| 75 |
+
├── museg/
|
| 76 |
+
│ ├── charades/ # mp4 from museg/charades.zip
|
| 77 |
+
│ └── et_instruct_164k/ # mp4 from museg/et_instruct.zip
|
| 78 |
+
└── selfqa/ # mp4 from selfqa/selfqa.zip
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
The materialized parquets then point at `file://<absolute-path-to-paravt-source>/<sentinel-path>` for every row.
|
| 82 |
+
|
| 83 |
## Citation
|
| 84 |
|
| 85 |
```bibtex
|