diff --git a/matcha/hifigan/denoiser.py b/matcha/hifigan/denoiser.py index 452be6a..d912279 100644 --- a/matcha/hifigan/denoiser.py +++ b/matcha/hifigan/denoiser.py @@ -1,6 +1,7 @@ # Code modified from Rafael Valle's implementation https://github.com/NVIDIA/waveglow/blob/5bc2a53e20b3b533362f974cfa1ea0267ae1c2b1/denoiser.py """Waveglow style denoiser can be used to remove the artifacts from the HiFiGAN generated audio.""" + import torch diff --git a/matcha/hifigan/env.py b/matcha/hifigan/env.py index 9ea4f94..a4a649b 100644 --- a/matcha/hifigan/env.py +++ b/matcha/hifigan/env.py @@ -1,4 +1,4 @@ -""" from https://github.com/jik876/hifi-gan """ +"""from https://github.com/jik876/hifi-gan""" import os import shutil diff --git a/matcha/hifigan/meldataset.py b/matcha/hifigan/meldataset.py index d1b3a90..86d75df 100644 --- a/matcha/hifigan/meldataset.py +++ b/matcha/hifigan/meldataset.py @@ -1,4 +1,4 @@ -""" from https://github.com/jik876/hifi-gan """ +"""from https://github.com/jik876/hifi-gan""" import math import os diff --git a/matcha/hifigan/models.py b/matcha/hifigan/models.py index 57305ef..28c6a04 100644 --- a/matcha/hifigan/models.py +++ b/matcha/hifigan/models.py @@ -1,4 +1,4 @@ -""" from https://github.com/jik876/hifi-gan """ +"""from https://github.com/jik876/hifi-gan""" import torch import torch.nn as nn # pylint: disable=consider-using-from-import diff --git a/matcha/hifigan/xutils.py b/matcha/hifigan/xutils.py index eefadcb..e8ea1ed 100644 --- a/matcha/hifigan/xutils.py +++ b/matcha/hifigan/xutils.py @@ -1,4 +1,4 @@ -""" from https://github.com/jik876/hifi-gan """ +"""from https://github.com/jik876/hifi-gan""" import glob import os diff --git a/matcha/models/baselightningmodule.py b/matcha/models/baselightningmodule.py index f8abe7b..5775355 100644 --- a/matcha/models/baselightningmodule.py +++ b/matcha/models/baselightningmodule.py @@ -2,6 +2,7 @@ This is a base lightning module that can be used to train a model. The benefit of this abstraction is that all the logic outside of model definition can be reused for different models. """ + import inspect from abc import ABC from typing import Any, Dict diff --git a/matcha/models/components/text_encoder.py b/matcha/models/components/text_encoder.py index 66e7164..5ed6e1e 100644 --- a/matcha/models/components/text_encoder.py +++ b/matcha/models/components/text_encoder.py @@ -1,4 +1,4 @@ -""" from https://github.com/jaywalnut310/glow-tts """ +"""from https://github.com/jaywalnut310/glow-tts""" import math diff --git a/matcha/text/__init__.py b/matcha/text/__init__.py index 50d7b90..24ed143 100644 --- a/matcha/text/__init__.py +++ b/matcha/text/__init__.py @@ -1,4 +1,5 @@ -""" from https://github.com/keithito/tacotron """ +"""from https://github.com/keithito/tacotron""" + from matcha.text import cleaners from matcha.text.symbols import symbols diff --git a/matcha/text/cleaners.py b/matcha/text/cleaners.py index a9d5587..6aa8de3 100644 --- a/matcha/text/cleaners.py +++ b/matcha/text/cleaners.py @@ -1,4 +1,4 @@ -""" from https://github.com/keithito/tacotron +"""from https://github.com/keithito/tacotron Cleaners are transformations that run over the input text at both training and eval time. diff --git a/matcha/text/numbers.py b/matcha/text/numbers.py index f99a868..b2ba39e 100644 --- a/matcha/text/numbers.py +++ b/matcha/text/numbers.py @@ -1,4 +1,4 @@ -""" from https://github.com/keithito/tacotron """ +"""from https://github.com/keithito/tacotron""" import re diff --git a/matcha/text/symbols.py b/matcha/text/symbols.py index 7018df5..f987e46 100644 --- a/matcha/text/symbols.py +++ b/matcha/text/symbols.py @@ -1,7 +1,8 @@ -""" from https://github.com/keithito/tacotron +"""from https://github.com/keithito/tacotron Defines the set of symbols used in text input to the model. """ + _pad = "_" _punctuation = ';:,.!?¡¿—…"«»“” ' _letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" diff --git a/matcha/utils/generate_data_statistics.py b/matcha/utils/generate_data_statistics.py index 305d806..adf886c 100644 --- a/matcha/utils/generate_data_statistics.py +++ b/matcha/utils/generate_data_statistics.py @@ -4,6 +4,7 @@ when needed. Parameters from hparam.py will be used """ + import argparse import json import os diff --git a/matcha/utils/get_durations_from_trained_model.py b/matcha/utils/get_durations_from_trained_model.py index 0fe2f35..8759c4f 100644 --- a/matcha/utils/get_durations_from_trained_model.py +++ b/matcha/utils/get_durations_from_trained_model.py @@ -4,6 +4,7 @@ when needed. Parameters from hparam.py will be used """ + import argparse import json import os diff --git a/matcha/utils/model.py b/matcha/utils/model.py index 869cc60..31a7643 100644 --- a/matcha/utils/model.py +++ b/matcha/utils/model.py @@ -1,4 +1,4 @@ -""" from https://github.com/jaywalnut310/glow-tts """ +"""from https://github.com/jaywalnut310/glow-tts""" import numpy as np import torch