Merge pull request #152 from yt605155624/fix_transformer_tts

fix import bug in transformer tts
This commit is contained in:
TianYuan 2021-08-26 11:22:59 +08:00 committed by GitHub
commit 7b2fcbd4c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 60 additions and 3 deletions

View File

@ -42,6 +42,10 @@ ignore =
# these ignores are from flake8-comprehensions; please fix! # these ignores are from flake8-comprehensions; please fix!
C400,C401,C402,C403,C404,C405,C407,C411,C413,C414,C415 C400,C401,C402,C403,C404,C405,C407,C411,C413,C414,C415
per-file-ignores =
*/__init__.py: F401
# Specify the list of error codes you wish Flake8 to report. # Specify the list of error codes you wish Flake8 to report.
select = select =
E, E,

View File

@ -19,9 +19,9 @@ from pathlib import Path
import tqdm import tqdm
import numpy as np import numpy as np
from parakeet.audio import AudioProcessor
from parakeet.audio import LogMagnitude
from parakeet.datasets import LJSpeechMetaData from parakeet.datasets import LJSpeechMetaData
from parakeet.audio import AudioProcessor, LogMagnitude
from parakeet.frontend import English from parakeet.frontend import English
from config import get_cfg_defaults from config import get_cfg_defaults

View File

@ -13,3 +13,11 @@
# limitations under the License. # limitations under the License.
__version__ = "0.0.0" __version__ = "0.0.0"
import logging
from . import data
from . import datasets
from . import frontend
from . import models
from . import modules
from . import training
from . import utils

View File

@ -11,3 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from .audio import AudioProcessor
from .spec_normalizer import LogMagnitude
from .spec_normalizer import NormalizerBase

View File

@ -13,3 +13,6 @@
# limitations under the License. # limitations under the License.
"""Parakeet's infrastructure for data processing. """Parakeet's infrastructure for data processing.
""" """
from .dataset import *
from .batch import *

View File

@ -11,3 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from .common import *
from .ljspeech import *

View File

@ -11,3 +11,11 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from .cn_normalization import *
from .generate_lexicon import *
from .normalizer import *
from .phonectic import *
from .punctuation import *
from .tone_sandhi import *
from .vocab import *

View File

@ -11,3 +11,5 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from parakeet.frontend.cn_normalization.text_normlization import *

View File

@ -11,3 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from parakeet.frontend.normalizer.normalizer import *
from parakeet.frontend.normalizer.numbers import *

View File

@ -17,7 +17,7 @@ from abc import abstractmethod
from g2p_en import G2p from g2p_en import G2p
from g2pM import G2pM from g2pM import G2pM
from parakeet.frontend import Vocab from parakeet.frontend.vocab import Vocab
from parakeet.frontend.normalizer.normalizer import normalize from parakeet.frontend.normalizer.normalizer import normalize
from parakeet.frontend.punctuation import get_punctuations from parakeet.frontend.punctuation import get_punctuations

View File

@ -11,3 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from .fastspeech2 import *
from .tacotron2 import *
from .transformer_tts import *
from .waveflow import *

View File

@ -11,3 +11,11 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from .attention import *
from .conv import *
from .geometry import *
from .losses import *
from .masking import *
from .positional_encoding import *
from .transformer import *

View File

@ -11,3 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from .cli import *
from .experiment import *

View File

@ -11,3 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from . import checkpoint
from . import display
from . import layer_tools
from . import mp_tools
from . import scheduler