Prerequisites
Before installing VERSA, ensure you have:- Python 3.8 or higher
- pip package manager
- Git (for cloning the repository)
- CUDA-compatible GPU (optional, for GPU-accelerated metrics)
Python 3.13 users: VERSA uses the latest Whisper commit to ensure compatibility with Python 3.13.
Basic Installation
The basic installation includes the core VERSA toolkit with many commonly used metrics.Install the Package
Install VERSA using pip:This installs the core package with auto-installed metrics including:
- PESQ, STOI for intelligibility
- UTMOS, DNSMOS, NISQA for perceptual quality
- MCD, F0 metrics for spectral analysis
- Signal metrics (SDR, SAR, SIR, SI-SNR, CI-SDR)
- Speaker similarity using ESPnet
Alternative Installation (Without Cloning)
You can install VERSA directly from GitHub without cloning:Metric-Specific Dependencies
VERSA aligns with original APIs provided by algorithm developers rather than redistributing models. Some metrics require additional installation steps.Understanding Auto-Install Status
In the supported metrics documentation, metrics are marked with an “x” in the “Auto-Install” column if they’re included in the basic installation. Metrics without an “x” require additional installation using the provided installers.Installing Additional Metrics
Locate the Installer
Navigate to the You’ll see installation scripts for various metrics:
tools directory:install_visqol.md- For ViSQOL metricinstall_gitlfs.md- For Git LFS dependencies- Additional installers for specific metrics
Run the Installer
Follow the instructions in the relevant installer file. For example, to install ViSQOL:
Common Optional Metrics
Development Installation
If you plan to contribute to VERSA or modify the source code:Install with Dev Dependencies
- pytest for testing
- pytest-cov for coverage reports
- black for code formatting
- flake8 for linting
GPU Support
Many metrics support GPU acceleration for faster evaluation:Multi-GPU Support: When running distributed evaluation, VERSA automatically assigns GPU ranks based on the
--rank parameter and available devices.Slurm Environment Setup
For large-scale distributed evaluation on HPC clusters:Troubleshooting
Import errors for specific metrics
Import errors for specific metrics
Some metrics have optional dependencies. Check the error message for the missing package:
CUDA out of memory errors
CUDA out of memory errors
Reduce batch size or evaluate metrics sequentially:
Git LFS files not downloading
Git LFS files not downloading
Some models require Git LFS:
ESPnet installation issues
ESPnet installation issues
VERSA uses a specific ESPnet branch. If you encounter issues:
Verifying Your Installation
Run the comprehensive test to verify all installed metrics:Next Steps
Quickstart Guide
Run your first evaluation with real audio samples
Configuration
Learn how to configure metrics and customize evaluations