The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 2 new columns ({'video_name', 'question'}) and 2 missing columns ({'answer', 'type'}).
This happened while the json dataset builder was generating data using
hf://datasets/NoahMartinezXiang/ActivityNet-QA/Source_JSON/train_q.json (at revision 40129029f477b94cd6515a421fabe790a9b93ab3), ['hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/Source_JSON/train_a.json', 'hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/Source_JSON/train_q.json', 'hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/train.json', 'hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/train_full.json', 'hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/train_videos_merge.zip'], ['hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/Source_JSON/train_a.json', 'hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/Source_JSON/train_q.json', 'hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/train.json', 'hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/train_full.json', 'hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/train_videos_merge.zip']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1837, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
video_name: string
question: string
question_id: string
to
{'answer': Value('string'), 'type': Value('int64'), 'question_id': Value('string')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1839, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
...<4 lines>...
)
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 2 new columns ({'video_name', 'question'}) and 2 missing columns ({'answer', 'type'}).
This happened while the json dataset builder was generating data using
hf://datasets/NoahMartinezXiang/ActivityNet-QA/Source_JSON/train_q.json (at revision 40129029f477b94cd6515a421fabe790a9b93ab3), ['hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/Source_JSON/train_a.json', 'hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/Source_JSON/train_q.json', 'hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/train.json', 'hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/train_full.json', 'hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/train_videos_merge.zip'], ['hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/Source_JSON/train_a.json', 'hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/Source_JSON/train_q.json', 'hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/train.json', 'hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/train_full.json', 'hf://datasets/NoahMartinezXiang/ActivityNet-QA@40129029f477b94cd6515a421fabe790a9b93ab3/train_videos_merge.zip']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
answer string | type int64 | question_id string |
|---|---|---|
no | 3 | v_okC18bPTils_3 |
no | 3 | v_ALjodjboELk_3 |
no | 3 | v__ucD-3rUWWE_3 |
no | 3 | v_AAQp3iEJxJc_3 |
no | 3 | v_whcxrkF2hws_3 |
no | 3 | v_LrputIUn4oY_3 |
yes | 3 | v_Mzt-E6pxuUI_2 |
yes | 3 | v_syAccI5soVw_2 |
yes | 3 | v_SMUWOVJ3bzE_2 |
yes | 3 | v_yvTmIulkl7c_2 |
no | 3 | v_Mzt-E6pxuUI_3 |
no | 3 | v_syAccI5soVw_3 |
no | 3 | v_SMUWOVJ3bzE_3 |
no | 3 | v_yvTmIulkl7c_3 |
no | 3 | v_96kej9yK8To_3 |
no | 3 | v_p3-tF0riSpQ_3 |
no | 3 | v_OZftVCeblMk_9 |
no | 3 | v_XqW8wjFpGRU_3 |
yes | 3 | v_li16LYa7us8_2 |
no | 3 | v_FL9yhHtoc6c_3 |
yes | 3 | v_dU4sCY0kHtk_2 |
no | 3 | v_JxEnKQ7iXUI_3 |
yes | 3 | v_1P_BTFhNZFo_2 |
yes | 3 | v_XqW8wjFpGRU_2 |
yes | 3 | v_JxEnKQ7iXUI_2 |
no | 3 | v_DPsa28MmdoI_3 |
yes | 3 | v_DPsa28MmdoI_2 |
yes | 3 | v_WVM8itzRVjs_2 |
yes | 3 | v_Xfu6WQuFEks_2 |
yes | 3 | v_WVxP7f_OyEs_2 |
no | 3 | v_jCd-VeMUwRg_3 |
yes | 3 | v_J7GJKAoU0rE_2 |
yes | 3 | v_rqraLuIBvyg_2 |
yes | 3 | v_lx83HHNNrlc_2 |
yes | 3 | v_HEuC9ZEY91E_2 |
yes | 3 | v_a7oaRcmRZ5k_2 |
no | 3 | v_5aUWT0CmJlc_3 |
no | 3 | v_87hjft6OBiU_3 |
male | 8 | v_x--RoqrwiLI_6 |
boy | 8 | v_XQWebGbAjxU_6 |
male | 8 | v_xOGOd2UJaMY_6 |
no | 3 | v_MO8Dfz2Lp3w_3 |
no | 3 | v_KNpeiKm3xyM_3 |
no | 3 | v_-s1MQAiOMeY_3 |
yes | 3 | v_hZD-CjWt0Rg_2 |
yes | 3 | v_yPEf9ajKwI8_2 |
no | 3 | v_FXl3qRRs9jw_3 |
yes | 3 | v_67NwPB79MTo_2 |
no | 3 | v_Yyv8oxrFGV0_3 |
yes | 3 | v_-s1MQAiOMeY_2 |
no | 3 | v_yPEf9ajKwI8_3 |
yes | 3 | v_FXl3qRRs9jw_2 |
yes | 3 | v_Yyv8oxrFGV0_2 |
no | 3 | v_hZD-CjWt0Rg_3 |
no | 3 | v_67NwPB79MTo_3 |
no | 3 | v_qU_605hliNw_3 |
yes | 3 | v_P6t2HLPZ3Dk_2 |
yes | 3 | v_fljxcvQe_Mo_2 |
yes | 3 | v_LxwKUIJdt_4_2 |
yes | 3 | v_J7Q3b1uFHyc_2 |
no | 3 | v_Jbl0E75cx8o_3 |
yes | 3 | v_nxNJNn8blDw_2 |
yes | 3 | v_80spFFIdnC4_2 |
yes | 3 | v_KylUHdDXuCg_2 |
yes | 3 | v_RpItv2ztook_2 |
yes | 3 | v_rgrzN8ELIxI_2 |
no | 3 | v_Z56Xq8Ud4I0_3 |
no | 3 | v_AsTfp_4Um1A_3 |
no | 3 | v_0Zg9UgCp4a4_3 |
no | 3 | v_ffGPrFNbQkA_3 |
no | 3 | v_cTbkhIaj_Xc_3 |
no | 3 | v_XQ0_P0LpCFM_3 |
yes | 3 | v_0S0fNrI4oVs_2 |
yes | 3 | v_XQ0_P0LpCFM_2 |
no | 3 | v_0S0fNrI4oVs_3 |
yes | 3 | v_3YiGMRp-7B4_2 |
yes | 3 | v_cTbkhIaj_Xc_2 |
yes | 3 | v_jCd-VeMUwRg_2 |
no | 3 | v_J7GJKAoU0rE_3 |
no | 3 | v_rqraLuIBvyg_3 |
yes | 3 | v_lx83HHNNrlc_3 |
no | 3 | v_nxNJNn8blDw_3 |
no | 3 | v_a7oaRcmRZ5k_3 |
no | 3 | v_HEuC9ZEY91E_3 |
no | 3 | v_nrC41oAR-F0_3 |
no | 3 | v_nxyENrsY4mo_3 |
yes | 3 | v_ZL7xefcDWYc_2 |
no | 3 | v_wUg9S2xx850_3 |
no | 3 | v_aJsDVKt5Igs_3 |
yes | 3 | v_x39KxoQHEp4_2 |
yes | 3 | v_vQ8NJRCSyb4_2 |
yes | 3 | v_WYcTPQSXwRc_2 |
yes | 3 | v_n0Az4cLruf4_2 |
yes | 3 | v_ohNtDBYmhX0_2 |
no | 3 | v_aINlF3UDJ7s_3 |
yes | 3 | v_Xa1yH3vxlAk_2 |
yes | 3 | v_XP8pufIBsnM_2 |
yes | 3 | v_x0cSfzhQRAs_2 |
yes | 3 | v_ORI5ZNZARw8_2 |
no | 3 | v_xOGOd2UJaMY_3 |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Activitynet-QA
The ActivityNet-QA dataset contains 58,000 human-annotated QA pairs on 5,800 videos derived from the popular ActivityNet dataset. The dataset provides a benckmark for testing the performance of VideoQA models on long-term spatio-temporal reasoning.
Splits
train: 32,000 QA pairs on 3,200 videos
val: 18,000 QA pairs on 1,800 videos
test: 8,000 QA pairs on 800 videos
Question Format
All the questions are stored in the *_q.json files. Each entry in the json file is of the following format.
{
"video_name": str,
"question": str,
"question_id": str
}
The video_name field corresponds to the orginal video id in the ActivityNet dataset, the url for this video is https://www.youtube.com/watch?v=<video_name>. The question_id field refer to the unique id for the question in the dataset. The question field contains the questions in English.
Answer Format
All the answers are stored in the *_a.json files. Each entry in the file is of the following format.
{
"answer": str,
"type": int,
"question_id": str
}
The answer field contains the answer with respect to the question with question_id
The type file contains the question or answer types for this question:
Question types: [0].Motion [1].Spatial Relationship [2].Temporal Relationship [3-8].Free
Answer types: [3].Yes/No [4].Color [5].Object [6].Location [7].Number [8].Other
Licence
The code and the dataset are distributed under MIT LICENSE. They are only allowed for non-commercial use.
Citation
If the project are helpful for your research, please cite
@inproceedings{yu2019activityqa,
author = {Yu, Zhou and Xu, Dejing and Yu, Jun and Yu, Ting and Zhao, Zhou and Zhuang, Yueting and Tao, Dacheng},
title = {ActivityNet-QA: A Dataset for Understanding Complex Web Videos via Question Answering},
booktitle = {AAAI},
pages = {9127--9134},
year = {2019}
}
license: apache-2.0
- Downloads last month
- 95