提交 5b63663a 编写于 作者: C chenfeiyu

folder adjust

上级 ca7d1ddd
...@@ -9,12 +9,12 @@ import argparse ...@@ -9,12 +9,12 @@ import argparse
import sys import sys
import io import io
import numpy as np import numpy as np
sys.path.append("../") # sys.path.append("../")
from hparams import hparams, hparams_debug_string from hparams import hparams, hparams_debug_string
from data.data import TextDataSource, MelSpecDataSource from data import TextDataSource, MelSpecDataSource
from nnmnkwii.datasets import FileSourceDataset from nnmnkwii.datasets import FileSourceDataset
from tqdm import trange from tqdm import trange
import g2p as frontend from parakeet import g2p as frontend
def build_parser(): def build_parser():
......
...@@ -25,7 +25,7 @@ import random ...@@ -25,7 +25,7 @@ import random
# import global hyper parameters # import global hyper parameters
from hparams import hparams from hparams import hparams
import g2p as frontend from parakeet import g2p as frontend
import builder import builder
_frontend = getattr(frontend, hparams.frontend) _frontend = getattr(frontend, hparams.frontend)
......
...@@ -20,10 +20,10 @@ import paddle.fluid.dygraph as dg ...@@ -20,10 +20,10 @@ import paddle.fluid.dygraph as dg
import numpy as np import numpy as np
from modules import conv from parakeet.modules import conv
from modules.modules import Embedding, PositionEmbedding from parakeet.modules.modules import Embedding, PositionEmbedding
from modules.modules import FC, Conv1D, Conv1DGLU, Conv1DTranspose from parakeet.modules.modules import FC, Conv1D, Conv1DGLU, Conv1DTranspose
ConvSpec = namedtuple("ConvSpec", ["out_channels", "filter_size", "dilation"]) ConvSpec = namedtuple("ConvSpec", ["out_channels", "filter_size", "dilation"])
WindowRange = namedtuple("WindowRange", ["backward", "ahead"]) WindowRange = namedtuple("WindowRange", ["backward", "ahead"])
......
...@@ -17,7 +17,7 @@ from paddle import fluid ...@@ -17,7 +17,7 @@ from paddle import fluid
import paddle.fluid.dygraph as dg import paddle.fluid.dygraph as dg
from hparams import hparams, hparams_debug_string from hparams import hparams, hparams_debug_string
import g2p as frontend from parakeet import g2p as frontend
from deepvoice3 import DeepVoiceTTS from deepvoice3 import DeepVoiceTTS
......
...@@ -37,7 +37,7 @@ from tensorboardX import SummaryWriter ...@@ -37,7 +37,7 @@ from tensorboardX import SummaryWriter
# import global hyper parameters # import global hyper parameters
from hparams import hparams from hparams import hparams
import g2p as frontend from parakeet import g2p as frontend
_frontend = getattr(frontend, hparams.frontend) _frontend = getattr(frontend, hparams.frontend)
......
...@@ -28,9 +28,9 @@ import nltk ...@@ -28,9 +28,9 @@ import nltk
from paddle import fluid from paddle import fluid
import paddle.fluid.dygraph as dg import paddle.fluid.dygraph as dg
sys.path.append("../") # sys.path.append("../")
import audio import audio
import g2p as frontend from parakeet import g2p as frontend
import dry_run import dry_run
from hparams import hparams from hparams import hparams
......
...@@ -23,7 +23,7 @@ from paddle import fluid ...@@ -23,7 +23,7 @@ from paddle import fluid
import paddle.fluid.dygraph as dg import paddle.fluid.dygraph as dg
import sys import sys
sys.path.append("../") # sys.path.append("../")
from argparse import ArgumentParser from argparse import ArgumentParser
from hparams import hparams, hparams_debug_string from hparams import hparams, hparams_debug_string
...@@ -32,11 +32,11 @@ from data import (TextDataSource, MelSpecDataSource, ...@@ -32,11 +32,11 @@ from data import (TextDataSource, MelSpecDataSource,
LinearSpecDataSource, LinearSpecDataSource,
PartialyRandomizedSimilarTimeLengthSampler, PartialyRandomizedSimilarTimeLengthSampler,
Dataset, make_loader, create_batch) Dataset, make_loader, create_batch)
import g2p as frontend from parakeet import g2p as frontend
from builder import deepvoice3, WindowRange from builder import deepvoice3, WindowRange
from dry_run import dry_run from dry_run import dry_run
from train_model import train_model from train_model import train_model
from modules.loss import TTSLoss from parakeet.modules.loss import TTSLoss
from tensorboardX import SummaryWriter from tensorboardX import SummaryWriter
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册