Dataset Preview
Full Screen
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
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 missing columns ({'licenses', 'info'})

This happened while the json dataset builder was generating data using

hf://datasets/dinhanhx/coco-2017-vi/vi/uitviic_captions_train2017.json (at revision 9fba6886f8d4af31c8d7ccd4103988ee6c490de5)

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 "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2011, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 585, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2302, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2256, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              images: list<item: struct<license: int64, file_name: string, coco_url: string, height: int64, width: int64, date_captured: timestamp[s], flickr_url: string, id: int64>>
                child 0, item: struct<license: int64, file_name: string, coco_url: string, height: int64, width: int64, date_captured: timestamp[s], flickr_url: string, id: int64>
                    child 0, license: int64
                    child 1, file_name: string
                    child 2, coco_url: string
                    child 3, height: int64
                    child 4, width: int64
                    child 5, date_captured: timestamp[s]
                    child 6, flickr_url: string
                    child 7, id: int64
              annotations: list<item: struct<image_id: int64, caption: string, id: int64>>
                child 0, item: struct<image_id: int64, caption: string, id: int64>
                    child 0, image_id: int64
                    child 1, caption: string
                    child 2, id: int64
              to
              {'info': {'description': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None), 'version': Value(dtype='string', id=None), 'year': Value(dtype='int64', id=None), 'contributor': Value(dtype='string', id=None), 'date_created': Value(dtype='string', id=None)}, 'licenses': [{'url': Value(dtype='string', id=None), 'id': Value(dtype='int64', id=None), 'name': Value(dtype='string', id=None)}], 'images': [{'license': Value(dtype='int64', id=None), 'file_name': Value(dtype='string', id=None), 'coco_url': Value(dtype='string', id=None), 'height': Value(dtype='int64', id=None), 'width': Value(dtype='int64', id=None), 'date_captured': Value(dtype='timestamp[s]', id=None), 'flickr_url': Value(dtype='string', id=None), 'id': Value(dtype='int64', id=None)}], 'annotations': [{'image_id': Value(dtype='int64', id=None), 'id': Value(dtype='int64', id=None), 'caption': Value(dtype='string', id=None)}]}
              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 1321, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 935, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2013, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              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 missing columns ({'licenses', 'info'})
              
              This happened while the json dataset builder was generating data using
              
              hf://datasets/dinhanhx/coco-2017-vi/vi/uitviic_captions_train2017.json (at revision 9fba6886f8d4af31c8d7ccd4103988ee6c490de5)
              
              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.

info
dict
licenses
list
images
list
annotations
list
{"description":"COCO 2017 Dataset","url":"http://cocodataset.org","version":"1.0","year":2017,"contr(...TRUNCATED)
[{"url":"http://creativecommons.org/licenses/by-nc-sa/2.0/","id":1,"name":"Attribution-NonCommercial(...TRUNCATED)
[{"license":3,"file_name":"000000391895.jpg","coco_url":"http://images.cocodataset.org/train2017/000(...TRUNCATED)
[{"image_id":203564,"id":37,"caption":"A bicycle replica with a clock as the front wheel."},{"image_(...TRUNCATED)
{"description":"COCO 2017 Dataset","url":"http://cocodataset.org","version":"1.0","year":2017,"contr(...TRUNCATED)
[{"url":"http://creativecommons.org/licenses/by-nc-sa/2.0/","id":1,"name":"Attribution-NonCommercial(...TRUNCATED)
[{"license":3,"file_name":"000000391895.jpg","coco_url":"http://images.cocodataset.org/train2017/000(...TRUNCATED)
[{"image_id":203564,"id":37,"caption":"Một bản sao xe đạp với một chiếc đồng hồ l(...TRUNCATED)
{"description":"COCO 2017 Dataset","url":"http://cocodataset.org","version":"1.0","year":2017,"contr(...TRUNCATED)
[{"url":"http://creativecommons.org/licenses/by-nc-sa/2.0/","id":1,"name":"Attribution-NonCommercial(...TRUNCATED)
[{"license":3,"file_name":"000000391895.jpg","coco_url":"http://images.cocodataset.org/train2017/000(...TRUNCATED)
[{"image_id":203564,"id":37,"caption":"Một bản sao xe đạp với một chiếc đồng hồ l(...TRUNCATED)
null
null
[{"license":2,"file_name":"000000535668.jpg","coco_url":"http://images.cocodataset.org/train2017/000(...TRUNCATED)
[{"image_id":157656,"caption":"Người đàn ông đang đánh tennis ngoài sân.","id":4990},{"im(...TRUNCATED)

COCO 2017 image captions in Vietnamese

The dataset is firstly introduced in dinhanhx/VisualRoBERTa. I use VinAI tools to translate COCO 2027 image caption (2017 Train/Val annotations) from English to Vietnamese. Then we merge UIT-ViIC dataset into it. To load the dataset, one can take a look at this code in VisualRoBERTa or this code in Velvet.

I provide both English original and Vietnamese version (including UIT-ViIC).

⚠ Note:

  • UIT-ViIC splits are originated from en/captions_train2017.json. Therefore, I combine all UIT-ViIC splits then I merge into vi/captions_train2017_trans.json. As a result, I get captions_train2017_trans_plus.json.
  • vi/captions_train2017_trans.json and vi/captions_val2017_trans.json are VinAI-translated from the ones in en/.
Downloads last month
79