Commit
Β·
88963e4
1
Parent(s):
259c94c
initial commit
Browse files- ET-Instruct/FPO/fpo_annotation.json +3 -0
- ET-Instruct/FPO/tokenized_fpo_annotation.pt +3 -0
- ET-Instruct/evi.json +3 -0
- ETBench/evi/dvc_hirest.json +3 -0
- ETBench/evi/dvc_youcook2.json +3 -0
- ETBench/evi/eca_charades_sta.json +3 -0
- ETBench/evi/epm_eg4d_nlq.json +3 -0
- ETBench/evi/evs_summe.json +3 -0
- ETBench/evi/evs_tvsum.json +3 -0
- ETBench/evi/gvq_qa_ego4d.json +3 -0
- ETBench/evi/rar_perception_test.json +3 -0
- ETBench/evi/rvq_star.json +3 -0
- ETBench/evi/slc_cross_task.json +3 -0
- ETBench/evi/slc_ht_step.json +3 -0
- ETBench/evi/tal_perception_test.json +3 -0
- ETBench/evi/tal_thumos14.json +3 -0
- ETBench/evi/tal_thumos15.json +3 -0
- ETBench/evi/tem_perception_test.json +3 -0
- ETBench/evi/tem_qvhighlights.json +3 -0
- ETBench/evi/tvg_charades_sta.json +3 -0
- ETBench/evi/tvg_qvhighlights.json +3 -0
- ETBench/evi/vhd_qvhighlights.json +3 -0
- ETBench/evi/vhd_youtube_highlights.json +3 -0
- README.md +75 -3
ET-Instruct/FPO/fpo_annotation.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d06f4a87470842485cf2c1cd9775260134d947d7b7628f3a3f427284dd8fed58
|
| 3 |
+
size 276539205
|
ET-Instruct/FPO/tokenized_fpo_annotation.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cedd16c036e06a291b4242e42f5255476d423301f4104f068cd456fb07b9e56a
|
| 3 |
+
size 655216316
|
ET-Instruct/evi.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d07e22bacb09971db4be35c3e76f10e42d774f0707c3d023f38941520d3450dc
|
| 3 |
+
size 80971635
|
ETBench/evi/dvc_hirest.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d20daff23548aed21a2ab7d5d259c368aca3480d6df593f6ce68aa04b0e7ff8
|
| 3 |
+
size 53431
|
ETBench/evi/dvc_youcook2.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:12653eee50b89827511df9865350573be05bbe8e4d3d5c08c863b3168848639e
|
| 3 |
+
size 374612
|
ETBench/evi/eca_charades_sta.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27863910ddec932803a7931a01eab304d13dc2b76a86f20ddc0b4a91a6639c61
|
| 3 |
+
size 316203
|
ETBench/evi/epm_eg4d_nlq.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dcf08d0d7119c273b14e2a95b71af5bc63b6a9bff1ae6dafde9a7ee1ff2ee242
|
| 3 |
+
size 227773
|
ETBench/evi/evs_summe.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:201ee0ced9b3b6c8d3130cde94acf659051828b443595a605859eb4411f6eae0
|
| 3 |
+
size 16417
|
ETBench/evi/evs_tvsum.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:52a3c8b4b343deb676eb4d31082e81babc65dd668c7b95add0a979856f79da8f
|
| 3 |
+
size 29503
|
ETBench/evi/gvq_qa_ego4d.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4fdc75007942fe46825b04168dbbbf05fd37ff5c5181d50ac169c217084decec
|
| 3 |
+
size 227378
|
ETBench/evi/rar_perception_test.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84f3951010bb1f00249400a85e77d83e9ef55a9f669ff8e865c1d0afb5ac19b2
|
| 3 |
+
size 377201
|
ETBench/evi/rvq_star.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2973235b07573ec95986ad486eb0f3b9796e15688d968548846ef14c69700ad
|
| 3 |
+
size 402009
|
ETBench/evi/slc_cross_task.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:82177300230e265443522582b2b038d9235fd679fc158dc1060b6106b64b9d36
|
| 3 |
+
size 198424
|
ETBench/evi/slc_ht_step.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:531b318aa2c138758378343c009799f535731bf018cf972511b22a2c9d1716c9
|
| 3 |
+
size 343154
|
ETBench/evi/tal_perception_test.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:463a7a98ae326827fa34cb8cce512cae3222ff854bf802ff26e74a0206d95490
|
| 3 |
+
size 262613
|
ETBench/evi/tal_thumos14.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:49ba6d6e7fc6c07a2b15831e2864e7a03696adc2789891ec7a234dd1a702fb92
|
| 3 |
+
size 74363
|
ETBench/evi/tal_thumos15.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a0c8c5b82615b83cc4a5b5f9074589c06ad097721f7fe74b371a58c5b2ca88a
|
| 3 |
+
size 152944
|
ETBench/evi/tem_perception_test.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:66d3989f8d30952d881d28c6fcad9b43265f974ba728ba9f85d411dd318c8a8e
|
| 3 |
+
size 247676
|
ETBench/evi/tem_qvhighlights.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9fec56b0e19ed096491410034db4a105f1bcf956f038b8c6b0c1128dcbea7b53
|
| 3 |
+
size 221839
|
ETBench/evi/tvg_charades_sta.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c626ed59a94e00bf5979e079feb386ff569e2b70c6ef9a7382cbd73a4f2c7fec
|
| 3 |
+
size 201680
|
ETBench/evi/tvg_qvhighlights.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0392f7abd3b15082d0fe76572bb95413f86c5368b5c48faf48644b21cc46ec2
|
| 3 |
+
size 220427
|
ETBench/evi/vhd_qvhighlights.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:997c81f8fcc744695665e4fac89fd932c903d01ea3d88c934b7c34a23ed829ee
|
| 3 |
+
size 235422
|
ETBench/evi/vhd_youtube_highlights.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f223f221cfc1b1f916dfe79062c02cd119f4cbadea0bef8877c2de1b24204448
|
| 3 |
+
size 144337
|
README.md
CHANGED
|
@@ -1,3 +1,75 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Dataset used in D2VLM
|
| 2 |
+
|
| 3 |
+
Here we provided the instruction for dataset preparation. We provided the transformed annotation (or steps for transformation) tailor for D2VLM, due to the new training objective design.
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
| Dataset Name | Role | Source |
|
| 7 |
+
|----------------|:--------------------:|:------:|
|
| 8 |
+
| E.T. Bench | Evaluation Benchmark | [Data](https://github.com/PolyU-ChenLab/ETBench/blob/main/docs/BENCHMARK.md) |
|
| 9 |
+
| Charades-STA | Evaluation Benchmark | [Data](https://prior.allenai.org/projects/charades), [Annotation](https://huggingface.co/datasets/ShuhuaiRen/TimeIT) |
|
| 10 |
+
| Youcook2 | Evaluation Benchmark | [Data](http://youcook2.eecs.umich.edu/download), [Annotation](https://huggingface.co/datasets/ShuhuaiRen/TimeIT) |
|
| 11 |
+
| E.T. Instruct | Finetuning data | [Data](https://github.com/PolyU-ChenLab/ETBench/blob/main/docs/DATASET.md) |
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
## E.T. Bench
|
| 16 |
+
1. Download and process the data following [official document](https://github.com/PolyU-ChenLab/ETBench/blob/main/docs/BENCHMARK.md).
|
| 17 |
+
|
| 18 |
+
2. Use the annotations provided in this Hugging Face repo (i.e., `D2VLM-Dataset/ETBench/evi`).
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
## Charades-STA
|
| 22 |
+
1. Follow the provided link in the table above to download the raw videos and the annotations.
|
| 23 |
+
The folder is organized as follows.
|
| 24 |
+
|
| 25 |
+
```
|
| 26 |
+
xx/charades
|
| 27 |
+
ββ Charades_v1 (Downloaded and extracted raw videos from Charades_v1.zip)
|
| 28 |
+
β ββ 001TG.mp4
|
| 29 |
+
β ββ 003WS.mp4
|
| 30 |
+
β ββ ...
|
| 31 |
+
ββ test.caption_coco_format.json
|
| 32 |
+
```
|
| 33 |
+
2. Run the post-processing scripts (in project repo). Remember to update paths in the .py files referenced by the script below.
|
| 34 |
+
|
| 35 |
+
```shell
|
| 36 |
+
bash other_benchmark_organize/charades/run.sh
|
| 37 |
+
```
|
| 38 |
+
## Youcook2
|
| 39 |
+
1. Follow the provided link in the table above to download the raw videos and the annotations.
|
| 40 |
+
The folder is organized as follows.
|
| 41 |
+
|
| 42 |
+
```
|
| 43 |
+
xx/youcook2
|
| 44 |
+
ββ raw_videos (Downloaded and extracted raw videos from raw_videos.tar.gz)
|
| 45 |
+
β ββ testing
|
| 46 |
+
β ββ training
|
| 47 |
+
β ββ validation
|
| 48 |
+
ββ val.caption_coco_format.json
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
2. Run the post-processing scripts (in project repo). Remember to update paths in the .py files referenced by the script below.
|
| 53 |
+
|
| 54 |
+
```shell
|
| 55 |
+
bash other_benchmark_organize/youcook2/run.sh
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
## E.T. Instruct
|
| 59 |
+
1. Download and process the data following [official document](https://github.com/PolyU-ChenLab/ETBench/blob/main/docs/DATASET.md).
|
| 60 |
+
|
| 61 |
+
2. Use the annotations provided in this Hugging Face repo.
|
| 62 |
+
|
| 63 |
+
- `D2VLM-Dataset/ET-Instruct/evi.json` --> For supervised finetuning (SFT).
|
| 64 |
+
|
| 65 |
+
- `/D2VLM-Dataset/ET-Instruct/FPO/tokenized_fpo_annotation.pt` --> For FPO.
|
| 66 |
+
|
| 67 |
+
>> For FPO, we applied an optimization: the dispreferred sample is appended after the preferred (positive) sample within the same sequence, and we adjust the positional encodings and attention mask accordingly. This makes training more efficient than naively training paired samples as separate batch items. One may check the `fpo_anno_gen/run.sh` in the project repo to learn more.
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
|