uv sync
Install mac-only dependencies if you have a Mac:
uv pip install -r requirements_mac.txt
Create the configuration file.
cp config.example.toml config.toml
Right now, only Whisper can be used for evaluation.
Login with huggingface_hub token, requires a token generated from https://huggingface.co/settings/tokens (not required for custom dataset use).
huggingface-cli login
Use evaluate_dataset.py to evaluate either the Fleurs, the CommonVoice or a locally saved custom dataset.
python evaluate_dataset.py fleurs
Use the length option to reduce the number of data points.
python evaluate_dataset.py cv --length=100
Use the variant option to choose a Whisper variant: whisper (default), transformers, whisperx, whisper_timestamped or whisper_mlx (only compatible with Apple Silicon chips).
python evaluate_dataset.py cv --variant=whisperx
Use the test_size option to split the dataset (default: test_size=0.2). Works only on custom dataset.
python evaluate_dataset.py custom --test_size=0.4
Use the seed option to randomize the test split (default: seed=42). Works only on custom dataset.
python evaluate_dataset.py custom --seed=84
Clean up (normalize) VTT files with vtt_cleaning.py.
python vtt_cleaning.py
Calculate WERs (word error rates) based on reference and hypothesis text files.
python wer_calculation.py
40 commits
26 commits
Python
99.3%
uv sync
Install mac-only dependencies if you have a Mac:
uv pip install -r requirements_mac.txt
Create the configuration file.
cp config.example.toml config.toml
Right now, only Whisper can be used for evaluation.
Login with huggingface_hub token, requires a token generated from https://huggingface.co/settings/tokens (not required for custom dataset use).
huggingface-cli login
Use evaluate_dataset.py to evaluate either the Fleurs, the CommonVoice or a locally saved custom dataset.
python evaluate_dataset.py fleurs
Use the length option to reduce the number of data points.
python evaluate_dataset.py cv --length=100
Use the variant option to choose a Whisper variant: whisper (default), transformers, whisperx, whisper_timestamped or whisper_mlx (only compatible with Apple Silicon chips).
python evaluate_dataset.py cv --variant=whisperx
Use the test_size option to split the dataset (default: test_size=0.2). Works only on custom dataset.
python evaluate_dataset.py custom --test_size=0.4
Use the seed option to randomize the test split (default: seed=42). Works only on custom dataset.
python evaluate_dataset.py custom --seed=84
Clean up (normalize) VTT files with vtt_cleaning.py.
python vtt_cleaning.py
Calculate WERs (word error rates) based on reference and hypothesis text files.
python wer_calculation.py
40 commits
26 commits
Python
99.3%