fastspeech2-ljspeech / preprocess.py
lushy's picture
Update FastSpeech 2 code and training notebook
f4d4ab8 verified
Raw History Blame Contribute Delete
418 Bytes
import argparse
import yaml
from preprocessor.preprocessor import Preprocessor
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("config", type=str, help="path to preprocess.yaml")
args = parser.parse_args()
config = yaml.load(open(args.config, "r"), Loader=yaml.FullLoader)
preprocessor = Preprocessor(config)
preprocessor.build_from_path()