jbetker commited on
Commit
05e06de
β€’
1 Parent(s): cfbeb2d

Revert "Merge pull request #3 from osanseviero/main"

Browse files

This reverts commit 1a41f7f7694cc88b10961424d10e4490a358f9fd, reversing
changes made to cf7a4bc7e773465a8e913228d642b81ca0475eb7.

Files changed (33) hide show
  1. tortoise_tts/api.py β†’ api.py +10 -10
  2. {tortoise_tts/data β†’ data}/riding_hood.txt +0 -0
  3. {tortoise_tts/data β†’ data}/tokenizer.json +0 -0
  4. tortoise_tts/do_tts.py β†’ do_tts.py +0 -0
  5. tortoise_tts/eval_multiple.py β†’ eval_multiple.py +0 -0
  6. tortoise_tts/is_this_from_tortoise.py β†’ is_this_from_tortoise.py +0 -0
  7. {tortoise_tts/models β†’ models}/arch_util.py +1 -1
  8. {tortoise_tts/models β†’ models}/autoregressive.py +2 -2
  9. {tortoise_tts/models β†’ models}/classifier.py +1 -1
  10. {tortoise_tts/models β†’ models}/clvp.py +3 -3
  11. {tortoise_tts/models β†’ models}/cvvp.py +2 -2
  12. {tortoise_tts/models β†’ models}/diffusion_decoder.py +1 -1
  13. {tortoise_tts/models β†’ models}/transformer.py +0 -0
  14. {tortoise_tts/models β†’ models}/vocoder.py +0 -0
  15. {tortoise_tts/models β†’ models}/xtransformers.py +0 -0
  16. tortoise_tts/read.py β†’ read.py +0 -0
  17. requirements.txt +1 -3
  18. {tortoise_tts/results β†’ results}/.gitattributes +0 -0
  19. {tortoise_tts/results β†’ results}/various/desktop.ini +0 -0
  20. tortoise_tts/samples_generator.py β†’ samples_generator.py +0 -0
  21. setup.py +0 -21
  22. tortoise_tts/sweep.py β†’ sweep.py +0 -0
  23. tortoise_tts/__init__.py +0 -1
  24. tortoise_tts/models/__init__.py +0 -0
  25. tortoise_tts/results/__init__.py +0 -0
  26. tortoise_tts/utils/__init__.py +0 -4
  27. tortoise_tts/voices/__init__.py +0 -0
  28. {tortoise_tts/data β†’ utils}/__init__.py +0 -0
  29. {tortoise_tts/utils β†’ utils}/audio.py +1 -1
  30. {tortoise_tts/utils β†’ utils}/diffusion.py +0 -0
  31. {tortoise_tts/utils β†’ utils}/stft.py +0 -0
  32. {tortoise_tts/utils β†’ utils}/tokenizer.py +0 -3
  33. {tortoise_tts/utils β†’ utils}/typical_sampling.py +0 -0
tortoise_tts/api.py β†’ api.py RENAMED
@@ -8,18 +8,18 @@ import torch.nn.functional as F
8
  import progressbar
9
  import torchaudio
10
 
11
- from tortoise_tts.models.classifier import AudioMiniEncoderWithClassifierHead
12
- from tortoise_tts.models.cvvp import CVVP
13
- from tortoise_tts.models.diffusion_decoder import DiffusionTts
14
- from tortoise_tts.models.autoregressive import UnifiedVoice
15
  from tqdm import tqdm
16
 
17
- from tortoise_tts.models.arch_util import TorchMelSpectrogram
18
- from tortoise_tts.models.clvp import CLVP
19
- from tortoise_tts.models.vocoder import UnivNetGenerator
20
- from tortoise_tts.utils.audio import load_audio, wav_to_univnet_mel, denormalize_tacotron_mel
21
- from tortoise_tts.utils.diffusion import SpacedDiffusion, space_timesteps, get_named_beta_schedule
22
- from tortoise_tts.utils.tokenizer import VoiceBpeTokenizer, lev_distance
23
 
24
 
25
  pbar = None
 
8
  import progressbar
9
  import torchaudio
10
 
11
+ from models.classifier import AudioMiniEncoderWithClassifierHead
12
+ from models.cvvp import CVVP
13
+ from models.diffusion_decoder import DiffusionTts
14
+ from models.autoregressive import UnifiedVoice
15
  from tqdm import tqdm
16
 
17
+ from models.arch_util import TorchMelSpectrogram
18
+ from models.clvp import CLVP
19
+ from models.vocoder import UnivNetGenerator
20
+ from utils.audio import load_audio, wav_to_univnet_mel, denormalize_tacotron_mel
21
+ from utils.diffusion import SpacedDiffusion, space_timesteps, get_named_beta_schedule
22
+ from utils.tokenizer import VoiceBpeTokenizer, lev_distance
23
 
24
 
25
  pbar = None
{tortoise_tts/data β†’ data}/riding_hood.txt RENAMED
File without changes
{tortoise_tts/data β†’ data}/tokenizer.json RENAMED
File without changes
tortoise_tts/do_tts.py β†’ do_tts.py RENAMED
File without changes
tortoise_tts/eval_multiple.py β†’ eval_multiple.py RENAMED
File without changes
tortoise_tts/is_this_from_tortoise.py β†’ is_this_from_tortoise.py RENAMED
File without changes
{tortoise_tts/models β†’ models}/arch_util.py RENAMED
@@ -5,7 +5,7 @@ import torch
5
  import torch.nn as nn
6
  import torch.nn.functional as F
7
  import torchaudio
8
- from tortoise_tts.models.xtransformers import ContinuousTransformerWrapper, RelativePositionBias
9
 
10
 
11
  def zero_module(module):
 
5
  import torch.nn as nn
6
  import torch.nn.functional as F
7
  import torchaudio
8
+ from models.xtransformers import ContinuousTransformerWrapper, RelativePositionBias
9
 
10
 
11
  def zero_module(module):
{tortoise_tts/models β†’ models}/autoregressive.py RENAMED
@@ -6,8 +6,8 @@ import torch.nn.functional as F
6
  from transformers import GPT2Config, GPT2PreTrainedModel, LogitsProcessorList
7
  from transformers.modeling_outputs import CausalLMOutputWithCrossAttentions
8
  from transformers.utils.model_parallel_utils import get_device_map, assert_device_map
9
- from tortoise_tts.models.arch_util import AttentionBlock
10
- from tortoise_tts.utils.typical_sampling import TypicalLogitsWarper
11
 
12
 
13
  def null_position_embeddings(range, dim):
 
6
  from transformers import GPT2Config, GPT2PreTrainedModel, LogitsProcessorList
7
  from transformers.modeling_outputs import CausalLMOutputWithCrossAttentions
8
  from transformers.utils.model_parallel_utils import get_device_map, assert_device_map
9
+ from models.arch_util import AttentionBlock
10
+ from utils.typical_sampling import TypicalLogitsWarper
11
 
12
 
13
  def null_position_embeddings(range, dim):
{tortoise_tts/models β†’ models}/classifier.py RENAMED
@@ -3,7 +3,7 @@ import torch.nn as nn
3
  import torch.nn.functional as F
4
  from torch.utils.checkpoint import checkpoint
5
 
6
- from tortoise_tts.models.arch_util import Upsample, Downsample, normalization, zero_module, AttentionBlock
7
 
8
 
9
  class ResBlock(nn.Module):
 
3
  import torch.nn.functional as F
4
  from torch.utils.checkpoint import checkpoint
5
 
6
+ from models.arch_util import Upsample, Downsample, normalization, zero_module, AttentionBlock
7
 
8
 
9
  class ResBlock(nn.Module):
{tortoise_tts/models β†’ models}/clvp.py RENAMED
@@ -3,9 +3,9 @@ import torch.nn as nn
3
  import torch.nn.functional as F
4
  from torch import einsum
5
 
6
- from tortoise_tts.models.arch_util import CheckpointedXTransformerEncoder
7
- from tortoise_tts.models.transformer import Transformer
8
- from tortoise_tts.models.xtransformers import Encoder
9
 
10
 
11
  def exists(val):
 
3
  import torch.nn.functional as F
4
  from torch import einsum
5
 
6
+ from models.arch_util import CheckpointedXTransformerEncoder
7
+ from models.transformer import Transformer
8
+ from models.xtransformers import Encoder
9
 
10
 
11
  def exists(val):
{tortoise_tts/models β†’ models}/cvvp.py RENAMED
@@ -4,8 +4,8 @@ import torch.nn.functional as F
4
  from torch import einsum
5
  from torch.utils.checkpoint import checkpoint
6
 
7
- from tortoise_tts.models.arch_util import AttentionBlock
8
- from tortoise_tts.models.xtransformers import ContinuousTransformerWrapper, Encoder
9
 
10
 
11
  def exists(val):
 
4
  from torch import einsum
5
  from torch.utils.checkpoint import checkpoint
6
 
7
+ from models.arch_util import AttentionBlock
8
+ from models.xtransformers import ContinuousTransformerWrapper, Encoder
9
 
10
 
11
  def exists(val):
{tortoise_tts/models β†’ models}/diffusion_decoder.py RENAMED
@@ -7,7 +7,7 @@ import torch.nn as nn
7
  import torch.nn.functional as F
8
  from torch import autocast
9
 
10
- from tortoise_tts.models.arch_util import normalization, AttentionBlock
11
 
12
 
13
  def is_latent(t):
 
7
  import torch.nn.functional as F
8
  from torch import autocast
9
 
10
+ from models.arch_util import normalization, AttentionBlock
11
 
12
 
13
  def is_latent(t):
{tortoise_tts/models β†’ models}/transformer.py RENAMED
File without changes
{tortoise_tts/models β†’ models}/vocoder.py RENAMED
File without changes
{tortoise_tts/models β†’ models}/xtransformers.py RENAMED
File without changes
tortoise_tts/read.py β†’ read.py RENAMED
File without changes
requirements.txt CHANGED
@@ -7,6 +7,4 @@ inflect
7
  progressbar
8
  einops
9
  unidecode
10
- entmax
11
- scipy
12
- librosa
 
7
  progressbar
8
  einops
9
  unidecode
10
+ entmax
 
 
{tortoise_tts/results β†’ results}/.gitattributes RENAMED
File without changes
{tortoise_tts/results β†’ results}/various/desktop.ini RENAMED
File without changes
tortoise_tts/samples_generator.py β†’ samples_generator.py RENAMED
File without changes
setup.py DELETED
@@ -1,21 +0,0 @@
1
- from setuptools import setup, find_packages
2
-
3
- install_requires = [
4
- "torch",
5
- "torchaudio",
6
- "rotary_embedding_torch",
7
- "transformers",
8
- "tokenizers",
9
- "inflect",
10
- "progressbar",
11
- "einops",
12
- "unidecode",
13
- "scipy",
14
- "librosa"
15
- ]
16
-
17
- setup(
18
- name="tortoise_tts",
19
- packages=find_packages(),
20
- install_requires=install_requires,
21
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tortoise_tts/sweep.py β†’ sweep.py RENAMED
File without changes
tortoise_tts/__init__.py DELETED
@@ -1 +0,0 @@
1
- from .api import TextToSpeech
 
 
tortoise_tts/models/__init__.py DELETED
File without changes
tortoise_tts/results/__init__.py DELETED
File without changes
tortoise_tts/utils/__init__.py DELETED
@@ -1,4 +0,0 @@
1
- from .audio import (
2
- load_audio,
3
- get_voices
4
- )
 
 
 
 
 
tortoise_tts/voices/__init__.py DELETED
File without changes
{tortoise_tts/data β†’ utils}/__init__.py RENAMED
File without changes
{tortoise_tts/utils β†’ utils}/audio.py RENAMED
@@ -6,7 +6,7 @@ import torchaudio
6
  import numpy as np
7
  from scipy.io.wavfile import read
8
 
9
- from tortoise_tts.utils.stft import STFT
10
 
11
 
12
  def load_wav_to_torch(full_path):
 
6
  import numpy as np
7
  from scipy.io.wavfile import read
8
 
9
+ from utils.stft import STFT
10
 
11
 
12
  def load_wav_to_torch(full_path):
{tortoise_tts/utils β†’ utils}/diffusion.py RENAMED
File without changes
{tortoise_tts/utils β†’ utils}/stft.py RENAMED
File without changes
{tortoise_tts/utils β†’ utils}/tokenizer.py RENAMED
@@ -3,7 +3,6 @@ import re
3
  import inflect
4
  import torch
5
  from tokenizers import Tokenizer
6
- from pathlib import Path
7
 
8
 
9
  # Regular expression matching whitespace:
@@ -166,8 +165,6 @@ def lev_distance(s1, s2):
166
 
167
  class VoiceBpeTokenizer:
168
  def __init__(self, vocab_file='data/tokenizer.json'):
169
- vocab_file = str(Path(__file__).parent.parent / Path(vocab_file))
170
- print(vocab_file)
171
  if vocab_file is not None:
172
  self.tokenizer = Tokenizer.from_file(vocab_file)
173
 
 
3
  import inflect
4
  import torch
5
  from tokenizers import Tokenizer
 
6
 
7
 
8
  # Regular expression matching whitespace:
 
165
 
166
  class VoiceBpeTokenizer:
167
  def __init__(self, vocab_file='data/tokenizer.json'):
 
 
168
  if vocab_file is not None:
169
  self.tokenizer = Tokenizer.from_file(vocab_file)
170
 
{tortoise_tts/utils β†’ utils}/typical_sampling.py RENAMED
File without changes