20 Star 78 Fork 37

Gitee 极速下载 / real-time-voice-cloning

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/CorentinJ/Real-Time-Voice-Cloning
克隆/下载
synthesizer_preprocess_embeds.py 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
Corentin Jemine 提交于 2021-12-28 13:18 . Major maintenance update (#961)
from synthesizer.preprocess import create_embeddings
from utils.argutils import print_args
from pathlib import Path
import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser(
description="Creates embeddings for the synthesizer from the LibriSpeech utterances.",
formatter_class=argparse.ArgumentDefaultsHelpFormatter
)
parser.add_argument("synthesizer_root", type=Path, help=\
"Path to the synthesizer training data that contains the audios and the train.txt file. "
"If you let everything as default, it should be <datasets_root>/SV2TTS/synthesizer/.")
parser.add_argument("-e", "--encoder_model_fpath", type=Path,
default="saved_models/default/encoder.pt", help=\
"Path your trained encoder model.")
parser.add_argument("-n", "--n_processes", type=int, default=4, help= \
"Number of parallel processes. An encoder is created for each, so you may need to lower "
"this value on GPUs with low memory. Set it to 1 if CUDA is unhappy.")
args = parser.parse_args()
# Preprocess the dataset
print_args(args, parser)
create_embeddings(**vars(args))
Python
1
https://gitee.com/mirrors/real-time-voice-cloning.git
git@gitee.com:mirrors/real-time-voice-cloning.git
mirrors
real-time-voice-cloning
real-time-voice-cloning
master

搜索帮助