fix import statements

This commit is contained in:
Eren 2018-06-21 16:33:30 +02:00
parent 551fe0a2c9
commit 5edfad1e09
8 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,3 @@
#!/bin/bash
source ../tmp/venv/bin/activate
export PYTHONPATH='
python train.py --config_path config.json

View File

@ -1,4 +1,4 @@
#!/bin/bash
virtualenv -p python3 ../tmp/venv
source ../tmp/venv/bin/activate
pip install --no-cache-dir -r requirements.txt
python setup.py develop

View File

View File

@ -5,9 +5,9 @@ import librosa
import torch
from torch.utils.data import Dataset
from TTS.utils.text import text_to_sequence
from TTS.utils.audio import AudioProcessor
from TTS.utils.data import (prepare_data, pad_per_step,
from utils.text import text_to_sequence
from utils.audio import AudioProcessor
from utils.data import (prepare_data, pad_per_step,
prepare_tensor, prepare_stop_target)

View File

@ -1,8 +1,8 @@
# coding: utf-8
import torch
from torch import nn
from TTS.utils.text.symbols import symbols
from TTS.layers.tacotron import Prenet, Encoder, Decoder, CBHG
from utils.text.symbols import symbols
from layers.tacotron import Prenet, Encoder, Decoder, CBHG
class Tacotron(nn.Module):

View File

@ -71,6 +71,7 @@ setup(name='TTS',
install_requires=[
"numpy",
"scipy",
"librosa",
"torch >= 0.4.0",
"unidecode",
"tensorboardX",

View File

@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
import re
from TTS.utils.text import cleaners
from TTS.utils.text.symbols import symbols
from utils.text import cleaners
from utils.text.symbols import symbols
# Mappings from symbol to numeric ID and vice versa:

View File

@ -7,7 +7,7 @@ Defines the set of symbols used in text input to the model.
The default is a set of ASCII characters that works well for English or text that has been run
through Unidecode. For other data, you can modify _characters. See TRAINING_DATA.md for details.
'''
from TTS.utils.text import cmudict
from utils.text import cmudict
_pad = '_'
_eos = '~'