mirror of https://github.com/coqui-ai/TTS.git
fix import statements
This commit is contained in:
parent
551fe0a2c9
commit
5edfad1e09
1
.compute
1
.compute
|
@ -1,4 +1,3 @@
|
|||
#!/bin/bash
|
||||
source ../tmp/venv/bin/activate
|
||||
export PYTHONPATH='
|
||||
python train.py --config_path config.json
|
2
.install
2
.install
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
1
setup.py
1
setup.py
|
@ -71,6 +71,7 @@ setup(name='TTS',
|
|||
install_requires=[
|
||||
"numpy",
|
||||
"scipy",
|
||||
"librosa",
|
||||
"torch >= 0.4.0",
|
||||
"unidecode",
|
||||
"tensorboardX",
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 = '~'
|
||||
|
|
Loading…
Reference in New Issue