Update root README for N-back transfer bundle
Browse files
README.md
CHANGED
|
@@ -1,36 +1,102 @@
|
|
| 1 |
# N-back_1
|
| 2 |
|
| 3 |
-
This
|
| 4 |
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
- `pairs/nback_1_pairs_20_per_dataset.json`
|
| 8 |
-
|
| 9 |
- `pairs/<dataset>_pairs.json`
|
| 10 |
Per-dataset manifests for easier browsing.
|
| 11 |
- `pairs/manifest_summary.json`
|
| 12 |
-
|
| 13 |
- `videos/<dataset>/<pair_id>/video_1.mp4`
|
| 14 |
- `videos/<dataset>/<pair_id>/video_2.mp4`
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
##
|
| 19 |
|
| 20 |
-
-
|
| 21 |
-
- Across different pairs from the same dataset: the videos are generally similar, but less tightly matched than within a pair.
|
| 22 |
-
- Across different datasets: the videos are intended to be dissimilar.
|
| 23 |
|
| 24 |
-
|
|
|
|
| 25 |
|
| 26 |
-
|
|
|
|
| 27 |
|
| 28 |
-
|
| 29 |
-
2. Pick another pair from the same dataset if you want a more similar source pool.
|
| 30 |
-
3. Pick another pair from a different dataset if you want a less similar source pool.
|
| 31 |
-
4. Use the videos from those pairs as candidate source videos for your N-back sequence.
|
| 32 |
|
| 33 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
The pair JSON files include:
|
| 36 |
|
|
@@ -44,8 +110,9 @@ The pair JSON files include:
|
|
| 44 |
- `repo_video_1_path`
|
| 45 |
- `repo_video_2_path`
|
| 46 |
|
| 47 |
-
`
|
| 48 |
-
|
|
|
|
| 49 |
|
| 50 |
## Datasets Covered
|
| 51 |
|
|
@@ -58,5 +125,8 @@ The pair JSON files include:
|
|
| 58 |
|
| 59 |
## Notes
|
| 60 |
|
| 61 |
-
- The videos
|
| 62 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# N-back_1
|
| 2 |
|
| 3 |
+
This repository is a private transfer bundle for building multi-video N-back sequences.
|
| 4 |
|
| 5 |
+
It contains:
|
| 6 |
+
|
| 7 |
+
- raw source videos
|
| 8 |
+
- pair manifests
|
| 9 |
+
- pre-cut segment packages
|
| 10 |
+
|
| 11 |
+
## Main Idea
|
| 12 |
+
|
| 13 |
+
Each pair contains two highly similar videos from the same dataset.
|
| 14 |
+
|
| 15 |
+
The intended similarity structure is:
|
| 16 |
+
|
| 17 |
+
- within the same pair: highly similar
|
| 18 |
+
- across different pairs from the same dataset: generally similar
|
| 19 |
+
- across different datasets: relatively dissimilar
|
| 20 |
+
|
| 21 |
+
This makes the package suitable for constructing both:
|
| 22 |
+
|
| 23 |
+
- more similar source pools
|
| 24 |
+
- less similar source pools
|
| 25 |
+
|
| 26 |
+
In practice, a simple workflow is:
|
| 27 |
+
|
| 28 |
+
1. Choose one pair as the anchor pair.
|
| 29 |
+
2. If you want another similar source pair, choose a different pair from the same dataset.
|
| 30 |
+
3. If you want a less similar source pair, choose a pair from a different dataset.
|
| 31 |
+
4. Use either the raw videos or the pre-cut segment packages below.
|
| 32 |
+
|
| 33 |
+
## Repository Layout
|
| 34 |
+
|
| 35 |
+
### Raw Pair Package
|
| 36 |
|
| 37 |
- `pairs/nback_1_pairs_20_per_dataset.json`
|
| 38 |
+
Combined manifest with 20 selected pairs from each dataset.
|
| 39 |
- `pairs/<dataset>_pairs.json`
|
| 40 |
Per-dataset manifests for easier browsing.
|
| 41 |
- `pairs/manifest_summary.json`
|
| 42 |
+
Summary counts.
|
| 43 |
- `videos/<dataset>/<pair_id>/video_1.mp4`
|
| 44 |
- `videos/<dataset>/<pair_id>/video_2.mp4`
|
| 45 |
|
| 46 |
+
The raw package is the right choice if you want to cut or sample the videos yourself.
|
| 47 |
|
| 48 |
+
### Pre-cut Packages
|
| 49 |
|
| 50 |
+
Pre-cut segment bundles are stored under folders such as:
|
|
|
|
|
|
|
| 51 |
|
| 52 |
+
- `precut_subsets/...`
|
| 53 |
+
- `precut_full_20pairs_per_dataset_seg10/...`
|
| 54 |
|
| 55 |
+
Each pre-cut package has its own README and manifest.
|
| 56 |
+
These are the right choice if you want to start directly from equal-count video segments.
|
| 57 |
|
| 58 |
+
## Recommended Usage
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
+
### If You Want Raw Videos
|
| 61 |
+
|
| 62 |
+
1. Open `pairs/nback_1_pairs_20_per_dataset.json`.
|
| 63 |
+
2. Choose one pair as the anchor pair.
|
| 64 |
+
3. Choose another pair from the same dataset if you want a more similar source pool.
|
| 65 |
+
4. Choose another pair from a different dataset if you want a less similar source pool.
|
| 66 |
+
5. Read the corresponding raw files from:
|
| 67 |
+
`videos/<dataset>/<pair_id>/video_1.mp4`
|
| 68 |
+
and
|
| 69 |
+
`videos/<dataset>/<pair_id>/video_2.mp4`
|
| 70 |
+
|
| 71 |
+
This is the recommended path if you want full control over:
|
| 72 |
+
|
| 73 |
+
- how many clips to cut from each video
|
| 74 |
+
- clip duration
|
| 75 |
+
- ordering strategy
|
| 76 |
+
- prompt construction
|
| 77 |
+
|
| 78 |
+
### If You Want Pre-cut 10-Way Segments
|
| 79 |
+
|
| 80 |
+
1. Open the README inside the corresponding pre-cut folder.
|
| 81 |
+
2. Use the package manifest there to locate segment files.
|
| 82 |
+
3. Each source video is split into:
|
| 83 |
+
`seg00` to `seg09`
|
| 84 |
+
4. Use the manifest time fields as the planned time windows for downstream construction.
|
| 85 |
+
|
| 86 |
+
This is the recommended path if you want to move quickly and do not want to cut videos on your own server.
|
| 87 |
+
|
| 88 |
+
## Example Sequence Construction
|
| 89 |
+
|
| 90 |
+
Suppose you want to build one source pool for a multi-video N-back sequence.
|
| 91 |
+
|
| 92 |
+
1. Pick one anchor pair from `pairs/nback_1_pairs_20_per_dataset.json`.
|
| 93 |
+
2. Use the two videos in that pair as a highly similar base.
|
| 94 |
+
3. Add another pair from the same dataset if you want more semantically related videos.
|
| 95 |
+
4. Or add a pair from a different dataset if you want a less similar source pool.
|
| 96 |
+
5. If you use a pre-cut package, read the corresponding `seg00` to `seg09` files directly.
|
| 97 |
+
6. If you use raw videos, cut them with your own strategy.
|
| 98 |
+
|
| 99 |
+
## Pair Manifest Fields
|
| 100 |
|
| 101 |
The pair JSON files include:
|
| 102 |
|
|
|
|
| 110 |
- `repo_video_1_path`
|
| 111 |
- `repo_video_2_path`
|
| 112 |
|
| 113 |
+
`repo_video_*_path` is the path inside this Hugging Face repository.
|
| 114 |
+
|
| 115 |
+
The per-pair JSON also keeps the selection metadata used during pair construction, which can help if you want to reuse the same sampling logic.
|
| 116 |
|
| 117 |
## Datasets Covered
|
| 118 |
|
|
|
|
| 125 |
|
| 126 |
## Notes
|
| 127 |
|
| 128 |
+
- The videos come from the original benchmark datasets used in VideoMemoryEval.
|
| 129 |
+
- Some pre-cut packages are produced with fast ffmpeg stream-copy segmentation.
|
| 130 |
+
- In those packages, downstream users should rely on the manifest time windows rather than assuming frame-perfect physical cut points.
|
| 131 |
+
- If you only need one urgent subset, check the `precut_subsets/` folder first.
|
| 132 |
+
- If you want the complete 20-pairs-per-dataset transfer bundle with 10-way cuts, use `precut_full_20pairs_per_dataset_seg10/`.
|