Datasets:

Modalities:
Text
Formats:
text
Libraries:
Datasets
License:
visper / README.md
yasserTII's picture
Update README.md
1dd2286 verified
|
raw
history blame
4.97 kB
---
license: cc-by-nc-2.0
language:
- ar
- fr
- es
- zh
pretty_name: visper
---
# ViSpeR: Multilingual Audio-Visual Speech Recognition
This repository contains **ViSpeR**, a large-scale dataset and models for Visual Speech Recognition for Arabic, Chinese, French and Spanish.
## Dataset Summary:
Given the scarcity of publicly available VSR data for non-English languages, we collected VSR data for the most four spoken languages at scale.
Comparison of VSR datasets. Our proposed ViSpeR dataset is larger in size compared to other datasets that cover non-English languages for the VSR task. For our dataset, the numbers in parenthesis denote the number of clips. We also give the clip coverage under TedX and Wild subsets of our ViSpeR dataset.
| Dataset | French (fr) | Spanish (es) | Arabic (ar) | Chinese (zh) |
|-----------------|-----------------|-----------------|-----------------|-----------------|
| **MuAVIC** | 176 | 178 | 16 | -- |
| **VoxCeleb2** | 124 | 42 | -- | -- |
| **AVSpeech** | 122 | 270 | -- | -- |
| **ViSpeR (TedX)** | 192 (160k) | 207 (151k) | 49 (48k) | 129 (143k) |
| **ViSpeR (Wild)** | 799 (548k) | 851 (531k) | 1152 (1.01M) | 658 (593k) |
| **ViSpeR (full)** | 991 (709k) | 1058 (683k) | 1200 (1.06M) | 787 (736k) |
## Downloading the data:
First, use the langauge.json to download the videos and put them in seperate folders. The raw data should be structured as follows:
```bash
Data/
β”œβ”€β”€ Chinese/
β”‚ β”œβ”€β”€ video_id.mp4
β”‚ └── ...
β”œβ”€β”€ Arabic/
β”‚ β”œβ”€β”€ video_id.mp4
β”‚ └── ...
β”œβ”€β”€ French/
β”‚ β”œβ”€β”€ video_id.mp4
β”‚ └── ...
β”œβ”€β”€ Spanish/
β”‚ β”œβ”€β”€ video_id.mp4
β”‚ └── ...
```
## Setup:
1- Setup the environement:
```bash
conda create --name visper python=3.10
conda activate visper
pip install -r requirements.txt
```
2- Install ffmpeg:
```bash
conda install "ffmpeg<5" -c conda-forge
```
## Processing the data:
You need the download the meta data from [HF](https://huggingface.co/datasets/tiiuae/visper), this includes ```train.tar.gz``` and ```test.tar,gz```. Then, use the provided metadata to process the raw data for creating the ViSpeR dataset. You can use the ```crop_videos.py``` to process the data, note that all clips are cropped and transformed
| Languages | Split | Link |
|----------|---------------|----------------|
| en,fr, es, ar, cz | train | [train](https://huggingface.co/datasets/tiiuae/visper/train.tar.gz) |
| en,fr, es, ar, cz | test | [test](https://huggingface.co/tiiuae/visper/test.tar.gz) |
```bash
python crop_videos.py --video_dir [path_to_data_language] --save_path [save_path_language] --json [language_metadata.json] --use_ffmpeg True
```
```bash
ViSpeR/
β”œβ”€β”€ Chinese/
β”‚ β”œβ”€β”€ video_id/
β”‚ β”‚ │── 00001.mp4
β”‚ β”‚ │── 00001.json
β”‚ └── ...
β”œβ”€β”€ Arabic/
β”‚ β”œβ”€β”€ video_id/
β”‚ β”‚ │── 00001.mp4
β”‚ β”‚ │── 00001.json
β”‚ └── ...
β”œβ”€β”€ French/
β”‚ β”œβ”€β”€ video_id/
β”‚ β”‚ │── 00001.mp4
β”‚ β”‚ │── 00001.json
β”‚ └── ...
β”œβ”€β”€ Spanish/
β”‚ β”œβ”€β”€ video_id/
β”‚ β”‚ │── 00001.mp4
β”‚ β”‚ │── 00001.json
β”‚ └── ...
```
The ```video_id/xxxx.json``` has the 'label' of the corresponding video ```video_id/xxxx.mp4```.
## Intended Use
This dataset can be used to train models for visual speech recognition. It's particularly useful for research and development purposes in the field of audio-visual content processing. The data can be used to assess the performance of current and future models.
## Limitations and Biases
Due to the data collection process focusing on YouTube, biases inherent to the platform may be present in the dataset. Also, while measures are taken to ensure diversity in content, the dataset might still be skewed towards certain types of content due to the filtering process.
## Citation
```bash
@inproceedings{djilali2023lip2vec,
title={Lip2Vec: Efficient and Robust Visual Speech Recognition via Latent-to-Latent Visual to Audio Representation Mapping},
author={Djilali, Yasser Abdelaziz Dahou and Narayan, Sanath and Boussaid, Haithem and Almazrouei, Ebtessam and Debbah, Merouane},
booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
pages={13790--13801},
year={2023}
}
@inproceedings{djilali2024vsr,
title={Do VSR Models Generalize Beyond LRS3?},
author={Djilali, Yasser Abdelaziz Dahou and Narayan, Sanath and LeBihan, Eustache and Boussaid, Haithem and Almazrouei, Ebtesam and Debbah, Merouane},
booktitle={Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision},
pages={6635--6644},
year={2024}
}
```