diff --git a/parakeet/models/deepvoice3/compute_timestamp_ratio.py b/parakeet/models/deepvoice3/compute_timestamp_ratio.py index d737059c1f447c905923749f19f5711d17041d29..286d439de235bb5c04b358605c40734e8dbb1f08 100644 --- a/parakeet/models/deepvoice3/compute_timestamp_ratio.py +++ b/parakeet/models/deepvoice3/compute_timestamp_ratio.py @@ -9,12 +9,12 @@ import argparse import sys import io import numpy as np -sys.path.append("../") +# sys.path.append("../") from hparams import hparams, hparams_debug_string -from data.data import TextDataSource, MelSpecDataSource +from data import TextDataSource, MelSpecDataSource from nnmnkwii.datasets import FileSourceDataset from tqdm import trange -import g2p as frontend +from parakeet import g2p as frontend def build_parser(): diff --git a/parakeet/models/deepvoice3/data.py b/parakeet/models/deepvoice3/data.py index 6c9c85aa7fbdc8386fb56866e55d787cbe5a1d6c..ca44b128bcd54dac394916ea36d39ae9904e141c 100644 --- a/parakeet/models/deepvoice3/data.py +++ b/parakeet/models/deepvoice3/data.py @@ -25,7 +25,7 @@ import random # import global hyper parameters from hparams import hparams -import g2p as frontend +from parakeet import g2p as frontend import builder _frontend = getattr(frontend, hparams.frontend) diff --git a/parakeet/models/deepvoice3/deepvoice3.py b/parakeet/models/deepvoice3/deepvoice3.py index 10e0dac068ab3f85c8f167da609e33ef0d696844..21cdcaf267883336c9f3255cd26b66b076e9a678 100644 --- a/parakeet/models/deepvoice3/deepvoice3.py +++ b/parakeet/models/deepvoice3/deepvoice3.py @@ -20,10 +20,10 @@ import paddle.fluid.dygraph as dg import numpy as np -from modules import conv +from parakeet.modules import conv -from modules.modules import Embedding, PositionEmbedding -from modules.modules import FC, Conv1D, Conv1DGLU, Conv1DTranspose +from parakeet.modules.modules import Embedding, PositionEmbedding +from parakeet.modules.modules import FC, Conv1D, Conv1DGLU, Conv1DTranspose ConvSpec = namedtuple("ConvSpec", ["out_channels", "filter_size", "dilation"]) WindowRange = namedtuple("WindowRange", ["backward", "ahead"]) diff --git a/parakeet/models/deepvoice3/dry_run.py b/parakeet/models/deepvoice3/dry_run.py index 4428e40ef34e655d8059f73f9a47edb0a89d5574..77e1315e33b29947c92a30c29f1cb66aac910740 100644 --- a/parakeet/models/deepvoice3/dry_run.py +++ b/parakeet/models/deepvoice3/dry_run.py @@ -17,7 +17,7 @@ from paddle import fluid import paddle.fluid.dygraph as dg from hparams import hparams, hparams_debug_string -import g2p as frontend +from parakeet import g2p as frontend from deepvoice3 import DeepVoiceTTS diff --git a/parakeet/models/deepvoice3/eval_model.py b/parakeet/models/deepvoice3/eval_model.py index 101d352e5fcd4c02a93502181ba75e2d14fe0d89..e53562661a1dffee637d68cbf2296de99d99cf45 100644 --- a/parakeet/models/deepvoice3/eval_model.py +++ b/parakeet/models/deepvoice3/eval_model.py @@ -37,7 +37,7 @@ from tensorboardX import SummaryWriter # import global hyper parameters from hparams import hparams -import g2p as frontend +from parakeet import g2p as frontend _frontend = getattr(frontend, hparams.frontend) diff --git a/parakeet/models/deepvoice3/synthesis.py b/parakeet/models/deepvoice3/synthesis.py index e589c570a44b45d5aa7782ec66a9c53c432d8c4a..b93bf2b052f77908163e932c48d7682d3a65649e 100644 --- a/parakeet/models/deepvoice3/synthesis.py +++ b/parakeet/models/deepvoice3/synthesis.py @@ -28,9 +28,9 @@ import nltk from paddle import fluid import paddle.fluid.dygraph as dg -sys.path.append("../") +# sys.path.append("../") import audio -import g2p as frontend +from parakeet import g2p as frontend import dry_run from hparams import hparams diff --git a/parakeet/models/deepvoice3/train.py b/parakeet/models/deepvoice3/train.py index 0f6859ca965b2699315ac6b4d2c69fc7c4b78d73..9224335b6f96e2cf8faa5cbf28a36a3f1ab007a6 100644 --- a/parakeet/models/deepvoice3/train.py +++ b/parakeet/models/deepvoice3/train.py @@ -23,7 +23,7 @@ from paddle import fluid import paddle.fluid.dygraph as dg import sys -sys.path.append("../") +# sys.path.append("../") from argparse import ArgumentParser from hparams import hparams, hparams_debug_string @@ -32,11 +32,11 @@ from data import (TextDataSource, MelSpecDataSource, LinearSpecDataSource, PartialyRandomizedSimilarTimeLengthSampler, Dataset, make_loader, create_batch) -import g2p as frontend +from parakeet import g2p as frontend from builder import deepvoice3, WindowRange from dry_run import dry_run from train_model import train_model -from modules.loss import TTSLoss +from parakeet.modules.loss import TTSLoss from tensorboardX import SummaryWriter