Datasets:
File size: 4,969 Bytes
00bb627 1dd2286 00bb627 4b29572 00bb627 1dd2286 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
---
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}
}
``` |