coqui-ai / data-checker

🫠 check your data, before you wreck your model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🫠 data-checker

Code for checking goodness of data for STT and TTS.

Install with Docker

$ git clone https://github.com/coqui-ai/data-checker.git
$ cd data-checker
$ docker build . -t data-checker

Check your install

$ docker run data-checker python data_checks.py "/code/data/smoke_test/russian_sample_data/ru.csv" 2
.
.
.
πŸ‘€ ─ Found 1 <transcript,clip> pairs in /code/data/smoke_test/russian_sample_data/ru.csv
 Β· First audio file found: ru.wav of type audio/wav
 Β· Checking if audio is readable...
😊 Found no unreadable audiofiles
 Β· Reading audio duration...
πŸ‘€ ─ Found a total of 0.00 hours of readable data
 Β· Get transcript length...
 Β· Get num feature vectors...
😊 Found no audio clips over 30 seconds in length
😊 Found no transcripts under 10 characters in length
 Β· Get ratio (num_feats / transcript_len)...
😊 Found no offending <transcript,clip> pairs
 Β· Calculating ratio (num_feats : transcript_len)...
😊 Found no <transcript,clip> pairs more than 2.0 standard deviations from the mean
πŸŽ‰ ┬ Saved a total of 0.00 hours of data to BEST dataset
   β”œ Removed a total of 0.00 hours (0.00% of original data)
   β”œ Removed a total of 0 samples (0.00% of original data)
   β”” Wrote best data to /code/data/smoke_test/russian_sample_data/ru.BEST

Run on your data

data-checker assumes your CSV has two columns: wav_filename and transcript. Note that you don't actually need to use WAV files, but the header still should be wav_filename.

$ docker run data-checker --mount "type=bind,src=/path/to/my/local/data,dst=/mnt" python data_checks.py "/mnt/my-data.csv" 2

About

🫠 check your data, before you wreck your model

License:MIT License


Languages

Language:Python 93.9%Language:Dockerfile 6.1%