mirror of https://github.com/coqui-ai/TTS.git
fix import statements
This commit is contained in:
parent
a0b7a181c3
commit
01739d4e8d
1
.compute
1
.compute
|
@ -1,4 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source ../tmp/venv/bin/activate
|
source ../tmp/venv/bin/activate
|
||||||
export PYTHONPATH='
|
|
||||||
python train.py --config_path config.json
|
python train.py --config_path config.json
|
2
.install
2
.install
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
virtualenv -p python3 ../tmp/venv
|
virtualenv -p python3 ../tmp/venv
|
||||||
source ../tmp/venv/bin/activate
|
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
|
import torch
|
||||||
from torch.utils.data import Dataset
|
from torch.utils.data import Dataset
|
||||||
|
|
||||||
from TTS.utils.text import text_to_sequence
|
from utils.text import text_to_sequence
|
||||||
from TTS.utils.audio import AudioProcessor
|
from utils.audio import AudioProcessor
|
||||||
from TTS.utils.data import (prepare_data, pad_per_step,
|
from utils.data import (prepare_data, pad_per_step,
|
||||||
prepare_tensor, prepare_stop_target)
|
prepare_tensor, prepare_stop_target)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
import torch
|
import torch
|
||||||
from torch import nn
|
from torch import nn
|
||||||
from TTS.utils.text.symbols import symbols
|
from utils.text.symbols import symbols
|
||||||
from TTS.layers.tacotron import Prenet, Encoder, Decoder, CBHG
|
from layers.tacotron import Prenet, Encoder, Decoder, CBHG
|
||||||
|
|
||||||
|
|
||||||
class Tacotron(nn.Module):
|
class Tacotron(nn.Module):
|
||||||
|
|
1
setup.py
1
setup.py
|
@ -71,6 +71,7 @@ setup(name='TTS',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"numpy",
|
"numpy",
|
||||||
"scipy",
|
"scipy",
|
||||||
|
"librosa",
|
||||||
"torch >= 0.4.0",
|
"torch >= 0.4.0",
|
||||||
"unidecode",
|
"unidecode",
|
||||||
"tensorboardX",
|
"tensorboardX",
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from TTS.utils.text import cleaners
|
from utils.text import cleaners
|
||||||
from TTS.utils.text.symbols import symbols
|
from utils.text.symbols import symbols
|
||||||
|
|
||||||
|
|
||||||
# Mappings from symbol to numeric ID and vice versa:
|
# 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
|
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.
|
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 = '_'
|
_pad = '_'
|
||||||
_eos = '~'
|
_eos = '~'
|
||||||
|
|
Loading…
Reference in New Issue