sarulab-speech/UTMOSv2
sarulab-speech/UTMOSv2 has 382 GitHub stars and 39 forks. GitHot measured 0 stars in 24 hours and +2 in 7 days. Last checked 2026-11-25 04:06 UTC. Last push 2026-04-02.
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- Historique en cours
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
À propos
UTokyo-SaruLab MOS Prediction System
Apprentissage automatiqueREADME.md
Original
UTMOSv2: UTokyo-SaruLab MOS Prediction System
🎤✨ Official implementation of ✨🎤
“The T05 System for The VoiceMOS Challenge 2024:
Transfer Learning from Deep Image Classifier to Naturalness MOS Prediction of High-Quality Synthetic Speech”
🏅🎉 accepted by IEEE Spoken Language Technology Workshop (SLT) 2024. 🎉🏅
ꔫ・-・ꔫ・-・ꔫ・-・ꔫ・-・ꔫ・-・ꔫ・-・ꔫ・-・ꔫ
✨ UTMOSv2 achieved 1st place in 7 out of 16 metrics ✨
✨🏆 and 2nd place in the remaining 9 metrics 🏆✨
✨ in the VoiceMOS Challenge 2024 Track1! ✨
🚀 Quick Prediction
✨ You can easily use the pretrained UTMOSv2 model!
🛠️ Using in your Python code 🛠️
✨ allowing you to quickly create models and make predictions with minimal effort!! ✨
If you want to make predictions using the UTMOSv2 library, follow these steps:
Install the UTMOSv2 library from GitHub
uv add git+https://github.com/sarulab-speech/UTMOSv2.git # If you're using pip: # pip install git+https://github.com/sarulab-speech/UTMOSv2.gitMake predictions
To predict the MOS of a tensor or array already loaded in memory:
import utmosv2 model = utmosv2.create_model(pretrained=True) # data: torch.Tensor or np.ndarray with shape (batch_size, sequence_length) or (sequence_length,) # sr: Sampling rate of the input audio data. If not provided, it defaults to 16000 Hz. mos = model.predict(data=data, sr=16000) # Returns a torch.Tensor or np.ndarray with shape (batch_size,) or (1,)To predict the MOS of a single
.wavfile:import utmosv2 model = utmosv2.create_model(pretrained=True) mos = model.predict(input_path="/path/to/wav/file.wav") # Returns a float valueTo predict the MOS of all
.wavfiles in a folder:import utmosv2 model = utmosv2.create_model(pretrained=True) mos = model.predict(input_dir="/path/to/wav/dir/") # Returns a list of dicts with 'file_path' and 'predicted_mos' keys
[!NOTE] When
datais provided,input_pathandinput_dirare ignored.
[!NOTE] Either
input_pathorinput_dirmust be specified whendataisNone, but not both.
📜 Using the inference script 📜
If you want to make predictions using the inference script, follow these steps:
Clone this repository and navigate to UTMOSv2 folder
git clone https://github.com/sarulab-speech/UTMOSv2.git cd UTMOSv2Install Package
uv sync --extra optional # If you're using pip: # pip install --upgrade pip # enable PEP 660 support # pip install -e .[optional] # install with optional dependenciesMake predictions
To predict the MOS of a single
.wavfile:python inference.py --input_path /path/to/wav/file.wav --out_path /path/to/output/file.csvTo predict the MOS of all
.wavfiles in a folder:python inference.py --input_dir /path/to/wav/dir/ --out_path /path/to/output/file.csv
[!NOTE] If you are using zsh, make sure to escape the square brackets like this:
pip install -e '.[optional]'
[!TIP] If
--out_pathis not specified, the prediction results will be output to the standard output. This is particularly useful when the number of files to be predicted is small.
[!NOTE] Either
--input_pathor--input_dirmust be specified, but not both.
[!NOTE] These methods provide quick and simple predictions. For more accurate predictions and detailed usage of the inference script, please refer to the inference guide.
🤗 You can try a simple demonstration on Hugging Face Space:
⚒️ Train UTMOSv2 Yourself
If you want to train UTMOSv2 yourself, please refer to the training guide. To reproduce the training as described in the paper or used in the competition, please refer to this document.
📂 Used Datasets
Details of the datasets used in this project can be found in the datasets documentation.
🔖 Citation
If you find UTMOSv2 useful in your research, please cite the following paper:
@inproceedings{baba2024utmosv2,
title = {The T05 System for The {V}oice{MOS} {C}hallenge 2024: Transfer Learning from Deep Image Classifier to Naturalness {MOS} Prediction of High-Quality Synthetic Speech},
author = {Baba, Kaito and Nakata, Wataru and Saito, Yuki and Saruwatari, Hiroshi},
booktitle = {IEEE Spoken Language Technology Workshop (SLT)},
year = {2024},
pages = {818--824},
doi = {10.1109/SLT61566.2024.10832315},
}
:octocat: GitHub Star History
Explorer des projets similaires
Chargement…