Skip to content

Commit 5a8521e

Browse files
grzegorz-k-karchnv-kkudrynski
authored andcommitted
[Tacotron2/PyT] rename common->tacotron2_common
1 parent 5afd63d commit 5a8521e

File tree

15 files changed

+16
-16
lines changed

15 files changed

+16
-16
lines changed
244 KB
Binary file not shown.

PyTorch/SpeechSynthesis/Tacotron2/exports/export_tacotron2_onnx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
import models
3737
from inference import checkpoint_from_distributed, unwrap_distributed, load_and_setup_model, prepare_input_sequence
38-
from common.utils import to_gpu, get_mask_from_lengths
38+
from tacotron2_common.utils import to_gpu, get_mask_from_lengths
3939

4040
def parse_args(parser):
4141
"""

PyTorch/SpeechSynthesis/Tacotron2/preprocess_audio2mel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import torch
33

44
from tacotron2.data_function import TextMelLoader
5-
from common.utils import load_filepaths_and_text
5+
from tacotron2_common.utils import load_filepaths_and_text
66

77
def parse_args(parser):
88
"""

PyTorch/SpeechSynthesis/Tacotron2/tacotron2/data_function.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
import torch
3131
import torch.utils.data
3232

33-
import common.layers as layers
34-
from common.utils import load_wav_to_torch, load_filepaths_and_text, to_gpu
33+
import tacotron2_common.layers as layers
34+
from tacotron2_common.utils import load_wav_to_torch, load_filepaths_and_text, to_gpu
3535
from tacotron2.text import text_to_sequence
3636

3737
class TextMelLoader(torch.utils.data.Dataset):

PyTorch/SpeechSynthesis/Tacotron2/tacotron2/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
from os.path import abspath, dirname
3434
# enabling modules discovery from global entrypoint
3535
sys.path.append(abspath(dirname(__file__)+'/../'))
36-
from common.layers import ConvNorm, LinearNorm
37-
from common.utils import to_gpu, get_mask_from_lengths
36+
from tacotron2_common.layers import ConvNorm, LinearNorm
37+
from tacotron2_common.utils import to_gpu, get_mask_from_lengths
3838

3939

4040
class LocationLayer(nn.Module):

PyTorch/SpeechSynthesis/Tacotron2/common/audio_processing.py renamed to PyTorch/SpeechSynthesis/Tacotron2/tacotron2_common/audio_processing.py

File renamed without changes.

PyTorch/SpeechSynthesis/Tacotron2/common/layers.py renamed to PyTorch/SpeechSynthesis/Tacotron2/tacotron2_common/layers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727

2828
import torch
2929
from librosa.filters import mel as librosa_mel_fn
30-
from common.audio_processing import dynamic_range_compression, dynamic_range_decompression
31-
from common.stft import STFT
30+
from tacotron2_common.audio_processing import dynamic_range_compression, dynamic_range_decompression
31+
from tacotron2_common.stft import STFT
3232

3333

3434
class LinearNorm(torch.nn.Module):

PyTorch/SpeechSynthesis/Tacotron2/common/stft.py renamed to PyTorch/SpeechSynthesis/Tacotron2/tacotron2_common/stft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from torch.autograd import Variable
3737
from scipy.signal import get_window
3838
from librosa.util import pad_center, tiny
39-
from common.audio_processing import window_sumsquare
39+
from tacotron2_common.audio_processing import window_sumsquare
4040

4141

4242
class STFT(torch.nn.Module):

PyTorch/SpeechSynthesis/Tacotron2/common/utils.py renamed to PyTorch/SpeechSynthesis/Tacotron2/tacotron2_common/utils.py

File renamed without changes.

PyTorch/SpeechSynthesis/Tacotron2/tensorrt/convert_tacotron22onnx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
import models
3737
from inference import checkpoint_from_distributed, unwrap_distributed, load_and_setup_model, prepare_input_sequence
38-
from common.utils import to_gpu, get_mask_from_lengths
38+
from tacotron2_common.utils import to_gpu, get_mask_from_lengths
3939

4040
def parse_args(parser):
4141
"""

0 commit comments

Comments
 (0)