/
githubmirror
/
MockingBird
Обзор
Документация
Войти
/
githubmirror
/
MockingBird
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v0.0.1
utils/modelutils.py
16 строк
767 B
Vega
Add gst (#137)
12 окт 2021, 14:43
Не верифицирован
12 окт 2021, 14:43
2a99f0f
Код
Авторство
О чём код?
from pathlib import Path def check_model_paths(encoder_path: Path, synthesizer_path: Path, vocoder_path: Path): # This function tests the model paths and makes sure at least one is valid. if encoder_path.is_file() or encoder_path.is_dir(): return if synthesizer_path.is_file() or synthesizer_path.is_dir(): return if vocoder_path.is_file() or vocoder_path.is_dir(): return # If none of the paths exist, remind the user to download models if needed print("********************************************************************************") print("Error: Model files not found. Please download the models") print("********************************************************************************\n") quit(-1)