Datasets:
image
imagewidth (px) 298
300
| image_url
stringclasses 357
values | item_idx
int64 6.13k
585k
| wit_features
dict | wit_idx
int64 6.13k
585k
| youtube_title_text
stringclasses 411
values | youtube_description_text
stringclasses 391
values | youtube_video_content
unknown | youtube_video_starting_time
stringclasses 106
values | youtube_subtitle_text
stringclasses 404
values | youtube_video_size
int64 34.5k
3.63M
| youtube_video_file_path
stringlengths 55
61
|
---|---|---|---|---|---|---|---|---|---|---|---|
http://upload.wikimedia.org/wikipedia/commons/8/8e/HashimotoSt3.jpg | 502,620 | {"attribution_passes_lang_id":[true,true],"caption_alt_text_description":[null,null],"caption_refere(...TRUNCATED) | 502,620 | Shintomicho Station, Tokyo Subway Neighborhood | "Tokyo’s Subway Stations (Metro & TOEI) are excellent and many renovated. This is Shintomicho and (...TRUNCATED) | "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAfB6VtZGF0IRqUfaqhC2HAgAxS0XYlyohCUhQQXQOzMJ+(...TRUNCATED) | 1080 | "'0.799': arriving at shinto\n'1003.44': not sure if that building is in\n'1004.56': operation anymo(...TRUNCATED) | 2,071,201 | /data/video_data.parquet/502/502620/6e7RO-o6u6w/360p_1080.mp4 |
|
http://upload.wikimedia.org/wikipedia/commons/8/8e/HashimotoSt3.jpg | 502,620 | {"attribution_passes_lang_id":[true,true],"caption_alt_text_description":[null,null],"caption_refere(...TRUNCATED) | 502,620 | Shintomicho Station, Tokyo Subway Neighborhood | "Tokyo’s Subway Stations (Metro & TOEI) are excellent and many renovated. This is Shintomicho and (...TRUNCATED) | "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAahwJtZGF0IRqUzbajBmKgWi29UJvSWTaarUwqVaSpVAy(...TRUNCATED) | 1110 | "'0.799': arriving at shinto\n'1003.44': not sure if that building is in\n'1004.56': operation anymo(...TRUNCATED) | 1,774,874 | /data/video_data.parquet/502/502620/6e7RO-o6u6w/360p_1110.mp4 |
|
http://upload.wikimedia.org/wikipedia/commons/8/8e/HashimotoSt3.jpg | 502,620 | {"attribution_passes_lang_id":[true,true],"caption_alt_text_description":[null,null],"caption_refere(...TRUNCATED) | 502,620 | Shintomicho Station, Tokyo Subway Neighborhood | "Tokyo’s Subway Stations (Metro & TOEI) are excellent and many renovated. This is Shintomicho and (...TRUNCATED) | "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAXPSptZGF0IRqUnbWFakFRGHBKEgjAAZw5MtpWrsgRdb2(...TRUNCATED) | 1140 | "'0.799': arriving at shinto\n'1003.44': not sure if that building is in\n'1004.56': operation anymo(...TRUNCATED) | 1,557,230 | /data/video_data.parquet/502/502620/6e7RO-o6u6w/360p_1140.mp4 |
|
http://upload.wikimedia.org/wikipedia/commons/8/8e/HashimotoSt3.jpg | 502,620 | {"attribution_passes_lang_id":[true,true],"caption_alt_text_description":[null,null],"caption_refere(...TRUNCATED) | 502,620 | Shintomicho Station, Tokyo Subway Neighborhood | "Tokyo’s Subway Stations (Metro & TOEI) are excellent and many renovated. This is Shintomicho and (...TRUNCATED) | "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAjgO5tZGF0IRqUfbqdA6CwYCyAABvippcw0kSi0qroSTa(...TRUNCATED) | 1260 | "'0.799': arriving at shinto\n'1003.44': not sure if that building is in\n'1004.56': operation anymo(...TRUNCATED) | 2,364,062 | /data/video_data.parquet/502/502620/6e7RO-o6u6w/360p_1260.mp4 |
|
http://upload.wikimedia.org/wikipedia/commons/8/8e/HashimotoSt3.jpg | 502,620 | {"attribution_passes_lang_id":[true,true],"caption_alt_text_description":[null,null],"caption_refere(...TRUNCATED) | 502,620 | Shintomicho Station, Tokyo Subway Neighborhood | "Tokyo’s Subway Stations (Metro & TOEI) are excellent and many renovated. This is Shintomicho and (...TRUNCATED) | "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAV4fFtZGF0IRqUxemNAmHBFCPBkpxAtemLvTVy2JdM1WB(...TRUNCATED) | 1500 | "'0.799': arriving at shinto\n'1003.44': not sure if that building is in\n'1004.56': operation anymo(...TRUNCATED) | 1,466,489 | /data/video_data.parquet/502/502620/6e7RO-o6u6w/360p_1500.mp4 |
|
http://upload.wikimedia.org/wikipedia/commons/8/8e/HashimotoSt3.jpg | 502,620 | {"attribution_passes_lang_id":[true,true],"caption_alt_text_description":[null,null],"caption_refere(...TRUNCATED) | 502,620 | Shintomicho Station, Tokyo Subway Neighborhood | "Tokyo’s Subway Stations (Metro & TOEI) are excellent and many renovated. This is Shintomicho and (...TRUNCATED) | "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAcuYZtZGF0IRqUtaIKyaFEUCaTTbwpPFiryUyrWLVCVQC(...TRUNCATED) | 1590 | "'0.799': arriving at shinto\n'1003.44': not sure if that building is in\n'1004.56': operation anymo(...TRUNCATED) | 1,920,342 | /data/video_data.parquet/502/502620/6e7RO-o6u6w/360p_1590.mp4 |
|
http://upload.wikimedia.org/wikipedia/commons/8/8e/HashimotoSt3.jpg | 502,620 | {"attribution_passes_lang_id":[true,true],"caption_alt_text_description":[null,null],"caption_refere(...TRUNCATED) | 502,620 | Shintomicho Station, Tokyo Subway Neighborhood | "Tokyo’s Subway Stations (Metro & TOEI) are excellent and many renovated. This is Shintomicho and (...TRUNCATED) | "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAdha1tZGF0IRqUXbKPYaLCmOAQoLWSRday0VJCKBzKgPy(...TRUNCATED) | 1620 | "'0.799': arriving at shinto\n'1003.44': not sure if that building is in\n'1004.56': operation anymo(...TRUNCATED) | 1,970,345 | /data/video_data.parquet/502/502620/6e7RO-o6u6w/360p_1620.mp4 |
|
http://upload.wikimedia.org/wikipedia/commons/8/8e/HashimotoSt3.jpg | 502,620 | {"attribution_passes_lang_id":[true,true],"caption_alt_text_description":[null,null],"caption_refere(...TRUNCATED) | 502,620 | Shintomicho Station, Tokyo Subway Neighborhood | "Tokyo’s Subway Stations (Metro & TOEI) are excellent and many renovated. This is Shintomicho and (...TRUNCATED) | "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAhDSNtZGF0IRqUfdaKx4MgYEUPFTylBo1i1XYhUiquhje(...TRUNCATED) | 2220 | "'0.799': arriving at shinto\n'1003.44': not sure if that building is in\n'1004.56': operation anymo(...TRUNCATED) | 2,201,987 | /data/video_data.parquet/502/502620/6e7RO-o6u6w/360p_2220.mp4 |
|
http://upload.wikimedia.org/wikipedia/commons/8/8e/HashimotoSt3.jpg | 502,620 | {"attribution_passes_lang_id":[true,true],"caption_alt_text_description":[null,null],"caption_refere(...TRUNCATED) | 502,620 | Shintomicho Station, Tokyo Subway Neighborhood | "Tokyo’s Subway Stations (Metro & TOEI) are excellent and many renovated. This is Shintomicho and (...TRUNCATED) | "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAeTw9tZGF0IRqUxa2ZQrFQoSw0CqEqsnNAKlCGWSVESqB(...TRUNCATED) | 2850 | "'0.799': arriving at shinto\n'1003.44': not sure if that building is in\n'1004.56': operation anymo(...TRUNCATED) | 2,022,635 | /data/video_data.parquet/502/502620/6e7RO-o6u6w/360p_2850.mp4 |
|
http://upload.wikimedia.org/wikipedia/commons/8/8e/HashimotoSt3.jpg | 502,620 | {"attribution_passes_lang_id":[true,true],"caption_alt_text_description":[null,null],"caption_refere(...TRUNCATED) | 502,620 | Shintomicho Station, Tokyo Subway Neighborhood | "Tokyo’s Subway Stations (Metro & TOEI) are excellent and many renovated. This is Shintomicho and (...TRUNCATED) | "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAT/YZtZGF0IRqUjbKcxKCw4EwoIYAUqTVS9Tma4slVqqS(...TRUNCATED) | 3240 | "'0.799': arriving at shinto\n'1003.44': not sure if that building is in\n'1004.56': operation anymo(...TRUNCATED) | 1,342,158 | /data/video_data.parquet/502/502620/6e7RO-o6u6w/360p_3240.mp4 |
Dataset Card for "TALI"
Dataset Description
Abstract
TALI is a large-scale, tetramodal dataset designed to facilitate a shift from unimodal and duomodal to tetramodal research in deep learning. It aligns text, video, images, and audio, providing a rich resource for innovative self-supervised learning tasks and multimodal research. TALI enables exploration of how different modalities and data/model scaling affect downstream performance, with the aim of inspiring diverse research ideas and enhancing understanding of model capabilities and robustness in deep learning.
Brief Description
TALI (Temporally and semantically Aligned Audio, Language and Images) is a dataset that uses the Wikipedia Image Text (WIT) captions and article titles to search Youtube for videos that match the captions. It then downloads the video, audio, and subtitles from these videos. The result is a rich multimodal dataset that has multiple caption types related to both the WiT Images, and the Youtube videos. This enables learning to take place between either temporally or semantically aligned text, images, audio and video.
Dataset Information
Modalities
The TALI dataset consists of the following modalities:
- Image:
- Wikipedia caption image
- Randomly sampled image from youtube video
- Text
- Wikipedia Caption Text
- Wikipedia Title Text
- Wikipedia Main Body Text
- YouTube Subtitle Text
- YouTube Description Text
- YouTube Title Text
- Audio
- YouTube Content Audio
- Video
- YouTube Content Video
Usage:
To get started with TALI, you can load the dataset via Hugging Face's datasets
library through our helper functions. The reason we don't use datasets
directly is because we found huggingface_hub downloads much faster and reliable. For a full set of possible configurations look at examples.py. Here's a basic usage example:
First install the tali package:
Installation
For the default install use:
pip install git+https://github.com/AntreasAntoniou/TALI
For the dev install use:
pip install git+https://github.com/AntreasAntoniou/TALI[dev]
Then use the dataset using:
Examples
Import relevant helper functions
import pathlib
from enum import Enum
import torch
from tqdm.auto import tqdm
from tali.data import (
SubModalityTypes,
TALIBaseTransform,
TALIBaseTransformConfig,
VideoFramesFormat,
default_transforms,
load_dataset_via_hub,
)
TALI with default transforms (CLIP and Whisper) and no streaming
def tali_with_transforms_no_streaming(
dataset_storage_path: pathlib.Path | str,
):
if isinstance(dataset_storage_path, str):
dataset_storage_path = pathlib.Path(dataset_storage_path)
dataset = load_dataset_via_hub(
dataset_storage_path, dataset_name="Antreas/TALI"
)["train"]
(
image_transforms,
text_transforms,
audio_transforms,
video_transforms,
) = default_transforms()
preprocessing_transform = TALIBaseTransform(
cache_dir=dataset_storage_path / "cache",
text_tokenizer=text_transforms,
image_tokenizer=image_transforms,
audio_tokenizer=audio_transforms,
video_tokenizer=video_transforms,
config=TALIBaseTransformConfig(
root_filepath=dataset_storage_path,
modality_list=[
SubModalityTypes.youtube_content_video,
SubModalityTypes.youtube_content_audio,
SubModalityTypes.youtube_random_video_frame,
SubModalityTypes.youtube_subtitle_text,
SubModalityTypes.youtube_description_text,
SubModalityTypes.youtube_title_text,
SubModalityTypes.wikipedia_caption_image,
SubModalityTypes.wikipedia_caption_text,
SubModalityTypes.wikipedia_main_body_text,
SubModalityTypes.wikipedia_title_text,
],
video_frames_format=VideoFramesFormat.PIL,
),
)
for sample in tqdm(dataset):
sample = preprocessing_transform(sample)
print(list(sample.keys()))
for key, value in sample.items():
if hasattr(value, "shape"):
print(key, value.shape)
elif isinstance(value, torch.Tensor):
print(key, value.shape)
elif hasattr(value, "__len__"):
print(key, len(value))
print(key, type(value))
break
TALI with no transforms and no streaming, returning text as text, images as PIL images, videos as a list of PIL images, and audio as a sequence of floats
def tali_without_transforms_no_streaming(
dataset_storage_path: pathlib.Path | str,
):
if isinstance(dataset_storage_path, str):
dataset_storage_path = pathlib.Path(dataset_storage_path)
dataset = load_dataset_via_hub(
dataset_storage_path, dataset_name="Antreas/TALI"
)["train"]
preprocessing_transform = TALIBaseTransform(
cache_dir=dataset_storage_path / "cache",
text_tokenizer=None,
image_tokenizer=None,
audio_tokenizer=None,
video_tokenizer=None,
config=TALIBaseTransformConfig(
root_filepath=dataset_storage_path,
modality_list=[
SubModalityTypes.youtube_content_video,
SubModalityTypes.youtube_content_audio,
SubModalityTypes.youtube_random_video_frame,
SubModalityTypes.youtube_subtitle_text,
SubModalityTypes.youtube_description_text,
SubModalityTypes.youtube_title_text,
SubModalityTypes.wikipedia_caption_image,
SubModalityTypes.wikipedia_caption_text,
SubModalityTypes.wikipedia_main_body_text,
SubModalityTypes.wikipedia_title_text,
],
video_frames_format=VideoFramesFormat.PIL,
),
)
for sample in tqdm(dataset):
sample = preprocessing_transform(sample)
print(list(sample.keys()))
for key, value in sample.items():
if hasattr(value, "shape"):
print(key, value.shape)
elif isinstance(value, torch.Tensor):
print(key, value.shape)
elif hasattr(value, "__len__"):
print(key, len(value))
print(key, type(value))
break
TALI with default transforms and streaming
def tali_with_transforms_streaming(
dataset_storage_path: pathlib.Path | str,
):
if isinstance(dataset_storage_path, str):
dataset_storage_path = pathlib.Path(dataset_storage_path)
dataset = load_dataset_via_hub(
dataset_storage_path, dataset_name="Antreas/TALI", streaming=True
)["train"]
(
image_transforms,
text_transforms,
audio_transforms,
video_transforms,
) = default_transforms()
preprocessing_transform = TALIBaseTransform(
cache_dir=dataset_storage_path / "cache",
text_tokenizer=text_transforms,
image_tokenizer=image_transforms,
audio_tokenizer=audio_transforms,
video_tokenizer=video_transforms,
config=TALIBaseTransformConfig(
root_filepath=dataset_storage_path,
modality_list=[
SubModalityTypes.youtube_content_video,
SubModalityTypes.youtube_content_audio,
SubModalityTypes.youtube_random_video_frame,
SubModalityTypes.youtube_subtitle_text,
SubModalityTypes.youtube_description_text,
SubModalityTypes.youtube_title_text,
SubModalityTypes.wikipedia_caption_image,
SubModalityTypes.wikipedia_caption_text,
SubModalityTypes.wikipedia_main_body_text,
SubModalityTypes.wikipedia_title_text,
],
video_frames_format=VideoFramesFormat.PIL,
),
)
for sample in tqdm(dataset):
sample = preprocessing_transform(sample)
print(list(sample.keys()))
for key, value in sample.items():
if hasattr(value, "shape"):
print(key, value.shape)
elif isinstance(value, torch.Tensor):
print(key, value.shape)
elif hasattr(value, "__len__"):
print(key, len(value))
print(key, type(value))
break
TALI with no transforms and streaming, returning text as text, images as PIL images, videos as a list of PIL images, and audio as a sequence of floats
def tali_without_transforms_streaming(
dataset_storage_path: pathlib.Path | str,
):
if isinstance(dataset_storage_path, str):
dataset_storage_path = pathlib.Path(dataset_storage_path)
dataset = load_dataset_via_hub(
dataset_storage_path, dataset_name="Antreas/TALI", streaming=True
)["train"]
preprocessing_transform = TALIBaseTransform(
cache_dir=dataset_storage_path / "cache",
text_tokenizer=None,
image_tokenizer=None,
audio_tokenizer=None,
video_tokenizer=None,
config=TALIBaseTransformConfig(
root_filepath=dataset_storage_path,
modality_list=[
SubModalityTypes.youtube_content_video,
SubModalityTypes.youtube_content_audio,
SubModalityTypes.youtube_random_video_frame,
SubModalityTypes.youtube_subtitle_text,
SubModalityTypes.youtube_description_text,
SubModalityTypes.youtube_title_text,
SubModalityTypes.wikipedia_caption_image,
SubModalityTypes.wikipedia_caption_text,
SubModalityTypes.wikipedia_main_body_text,
SubModalityTypes.wikipedia_title_text,
],
video_frames_format=VideoFramesFormat.PIL,
),
)
for sample in tqdm(dataset):
sample = preprocessing_transform(sample)
print(list(sample.keys()))
for key, value in sample.items():
if hasattr(value, "shape"):
print(key, value.shape)
elif isinstance(value, torch.Tensor):
print(key, value.shape)
elif hasattr(value, "__len__"):
print(key, len(value))
print(key, type(value))
break
Dataset Statistics
TBA
Dataset Creation
The TALI dataset was created by starting from the WiT dataset and using either the context_page_description or page_title as a source-query to search YouTube for video that were creative commons opted-in, and, not age restricted. The top 100 result titles were returned and compared with the source-query using the CLIP text embeddings of the largest CLIP model available. The top-1 title’s video based on the CLIP ranking was chosen and downloaded. The video was broken into 30-second segments and the top-10 segments for eachvideo were chosen based on the distance between the CLIP image embedding of the first image of each segment and the video’s title text. The image, audio, and subtitle frames were extracted from these segments. At sampling time, one of these 10 segments is randomly selected, and a 10-second segment is chosen out of the 30-second clip. The result is 200 video frames (spread throughout the 10-second segment), and 160000 audio frames (10 seconds).
Dataset Use
TALI is designed for use in a wide range of multimodal research tasks, including but not limited to:
- Multimodal understanding and reasoning
- Self-supervised learning
- Multimodal alignment and translation
- Multimodal summarization
- Multimodal question answering
Dataset Curators: Antreas Antoniou
Citation Information: TBA Contributions: Thanks to all contributors including data curators, annotators, and software developers.
- Downloads last month
- 14,672