Datasets:
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- .vscode/settings.json +5 -0
- LongTVQA_plus_subtitle_clip_level.json +0 -0
- LongTVQA_plus_subtitle_episode_level.json +0 -0
- LongTVQA_plus_train.json +3 -0
- LongTVQA_plus_val.json +0 -0
- README.md +90 -3
- up.py +7 -0
.gitattributes
CHANGED
|
@@ -57,3 +57,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
LongTVQA_plus_train.json filter=lfs diff=lfs merge=lfs -text
|
.vscode/settings.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"python-envs.defaultEnvManager": "ms-python.python:conda",
|
| 3 |
+
"python-envs.defaultPackageManager": "ms-python.python:conda",
|
| 4 |
+
"python-envs.pythonProjects": []
|
| 5 |
+
}
|
LongTVQA_plus_subtitle_clip_level.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
LongTVQA_plus_subtitle_episode_level.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
LongTVQA_plus_train.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2655b7e2954918022564847248887577e20fa8fe871ac9b74f9438ce293367c6
|
| 3 |
+
size 57356136
|
LongTVQA_plus_val.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
README.md
CHANGED
|
@@ -1,3 +1,90 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LongTVQA+ Dataset
|
| 2 |
+
|
| 3 |
+
This repository contains the **LongTVQA+** dataset in JSON format. LongTVQA+ differs from the original TVQA dataset in three ways:
|
| 4 |
+
|
| 5 |
+
1. The questions in TVQA+ are a subset of TVQA (The Big Bang Theory).
|
| 6 |
+
2. TVQA+ provides frame-level bounding box annotations for visual concept words in questions and correct answers.
|
| 7 |
+
3. TVQA+ has refined timestamp annotations.
|
| 8 |
+
|
| 9 |
+
Please refer to the TVQA+ paper for more details.
|
| 10 |
+
|
| 11 |
+
## Files
|
| 12 |
+
|
| 13 |
+
- `LongTVQA_plus_train.json` — training split (23,545 QA samples)
|
| 14 |
+
- `LongTVQA_plus_val.json` — validation split (3,017 QA samples)
|
| 15 |
+
- `LongTVQA_plus_subtitles.json` — subtitles indexed by video clip (4,198 clips)
|
| 16 |
+
|
| 17 |
+
## QA JSON format
|
| 18 |
+
|
| 19 |
+
Each entry in `LongTVQA_plus_train.json` and `LongTVQA_plus_val.json` is a dictionary with the following fields:
|
| 20 |
+
|
| 21 |
+
| Key | Type | Description |
|
| 22 |
+
| --- | --- | --- |
|
| 23 |
+
| `qid` | int | Question ID (same as in TVQA). |
|
| 24 |
+
| `q` | str | Question text. |
|
| 25 |
+
| `a0` ... `a4` | str | Five multiple-choice answers. |
|
| 26 |
+
| `answer_idx` | str | Correct answer index (`"0"`-`"4"`). |
|
| 27 |
+
| `ts` | list | Refined timestamp annotation, e.g. `[0, 5.4]` indicates the localized span starts at 0s and ends at 5.4s. |
|
| 28 |
+
| `vid_name` | str | Video clip name. Format: `{show_name_abbr}_s{season}e{episode}_seg{segment}_clip_{clip}`; e.g. `friends_s06e12_seg02_clip_16`. Episodes typically have two segments split by the opening song. Clips for **The Big Bang Theory** omit `{show_name_abbr}` (e.g. `s05e02_seg02_clip_00`). |
|
| 29 |
+
| `bbox` | dict | Bounding boxes for annotated frames (3 FPS). Keys are frame numbers. Values are lists of boxes with `img_id`, `top`, `left`, `width`, `height`, and `label`. |
|
| 30 |
+
|
| 31 |
+
### QA sample
|
| 32 |
+
|
| 33 |
+
```json
|
| 34 |
+
{
|
| 35 |
+
"answer_idx": "1",
|
| 36 |
+
"qid": 134094,
|
| 37 |
+
"ts": [5.99, 11.98],
|
| 38 |
+
"a1": "Howard is talking to Raj and Leonard",
|
| 39 |
+
"a0": "Howard is talking to Bernadette",
|
| 40 |
+
"a3": "Howard is talking to Leonard and Penny",
|
| 41 |
+
"a2": "Howard is talking to Sheldon , and Raj",
|
| 42 |
+
"q": "Who is Howard talking to when he is in the lab room ?",
|
| 43 |
+
"vid_name": "s05e02_seg02_clip_00",
|
| 44 |
+
"a4": "Howard is talking to Penny and Bernadette",
|
| 45 |
+
"bbox": {
|
| 46 |
+
"14": [
|
| 47 |
+
{
|
| 48 |
+
"img_id": 14,
|
| 49 |
+
"top": 153,
|
| 50 |
+
"label": "Howard",
|
| 51 |
+
"width": 180,
|
| 52 |
+
"height": 207,
|
| 53 |
+
"left": 339
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"img_id": 14,
|
| 57 |
+
"top": 6,
|
| 58 |
+
"label": "lab",
|
| 59 |
+
"width": 637,
|
| 60 |
+
"height": 354,
|
| 61 |
+
"left": 3
|
| 62 |
+
}
|
| 63 |
+
],
|
| 64 |
+
"20": [],
|
| 65 |
+
"26": [],
|
| 66 |
+
"32": [],
|
| 67 |
+
"38": []
|
| 68 |
+
}
|
| 69 |
+
}
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
## Subtitles JSON format
|
| 73 |
+
|
| 74 |
+
`LongTVQA_plus_subtitles.json` is a dictionary keyed by `vid_name`. Each value has:
|
| 75 |
+
|
| 76 |
+
| Key | Type | Description |
|
| 77 |
+
| --- | --- | --- |
|
| 78 |
+
| `sub_text` | str | Subtitle text for the clip, with utterances separated by `<eos>`. |
|
| 79 |
+
| `sub_time` | list | Start times (seconds) corresponding to each subtitle segment. |
|
| 80 |
+
|
| 81 |
+
### Subtitles sample
|
| 82 |
+
|
| 83 |
+
```json
|
| 84 |
+
{
|
| 85 |
+
"s09e14_seg02_clip_04": {
|
| 86 |
+
"sub_text": "Sheldon : That 's a risk I 'm willing to take ! <eos> Amy : Well , this is so nice . <eos> ...",
|
| 87 |
+
"sub_time": [0.9550000000000001, 3.825, 5.359, 7.295]
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
```
|
up.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from huggingface_hub import login, upload_folder
|
| 2 |
+
|
| 3 |
+
# (optional) Login with your Hugging Face credentials
|
| 4 |
+
login()
|
| 5 |
+
|
| 6 |
+
# Push your dataset files
|
| 7 |
+
upload_folder(folder_path=".", repo_id="longvideoagent/LongTVQA_plus", repo_type="dataset")
|