Skip to content

Commit 676d22f

Browse files
authored
Merge pull request #611 from coqui-ai/dev
v0.1.1
2 parents c25a218 + 0c34762 commit 676d22f

File tree

6 files changed

+26
-18
lines changed

6 files changed

+26
-18
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
include README.md
22
include LICENSE.txt
33
include requirements.*.txt
4+
include requirements.txt
45
include TTS/VERSION
56
recursive-include TTS *.json
67
recursive-include TTS *.html

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ dev-deps: ## install development deps
3434
doc-deps: ## install docs dependencies
3535
pip install -r docs/requirements.txt
3636

37+
build-docs: ## build the docs
38+
cd docs && make clean && make build
39+
3740
hub-deps: ## install deps for torch hub use
3841
pip install -r requirements.hub.txt
3942

TTS/.models.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"vctk":{
5252
"sc-glow-tts": {
5353
"description": "Multi-Speaker Transformers based SC-Glow model from https://arxiv.org/abs/2104.05557.",
54-
"github_rls_url": "https://github.com/coqui-ai/TTS/releases/download/v0.1.0/tts_models--en--vctk--sc-glowtts-transformer.zip",
54+
"github_rls_url": "https://github.com/coqui-ai/TTS/releases/download/v0.1.0/tts_models--en--vctk--sc-glow-tts.zip",
5555
"default_vocoder": "vocoder_models/en/vctk/hifigan_v2",
5656
"commit": "b531fa69",
5757
"author": "Edresson Casanova",

TTS/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.0
1+
0.1.1

TTS/utils/trainer_utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ def is_apex_available():
1111

1212

1313
def setup_torch_training_env(cudnn_enable, cudnn_benchmark):
14+
num_gpus = torch.cuda.device_count()
15+
if num_gpus > 1:
16+
raise RuntimeError(
17+
f" [!] {num_gpus} active GPUs. Define the target GPU by `CUDA_VISIBLE_DEVICES`. For multi-gpu training use `TTS/bin/distribute.py`."
18+
)
1419
torch.backends.cudnn.enabled = cudnn_enable
1520
torch.backends.cudnn.benchmark = cudnn_benchmark
1621
torch.manual_seed(54321)
1722
use_cuda = torch.cuda.is_available()
18-
num_gpus = torch.cuda.device_count()
1923
print(" > Using CUDA: ", use_cuda)
2024
print(" > Number of GPUs: ", num_gpus)
2125
return use_cuda, num_gpus

tests/inference_tests/test_synthesize.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ def test_synthesize():
1010

1111
# single speaker model
1212
run_cli(f'tts --text "This is an example." --out_path "{output_path}"')
13-
# run_cli(
14-
# "tts --model_name tts_models/en/ljspeech/speedy-speech-wn "
15-
# f'--text "This is an example." --out_path "{output_path}"'
16-
# )
17-
# run_cli(
18-
# "tts --model_name tts_models/en/ljspeech/speedy-speech-wn "
19-
# "--vocoder_name vocoder_models/en/ljspeech/multiband-melgan "
20-
# f'--text "This is an example." --out_path "{output_path}"'
21-
# )
13+
run_cli(
14+
"tts --model_name tts_models/en/ljspeech/speedy-speech-wn "
15+
f'--text "This is an example." --out_path "{output_path}"'
16+
)
17+
run_cli(
18+
"tts --model_name tts_models/en/ljspeech/speedy-speech-wn "
19+
"--vocoder_name vocoder_models/en/ljspeech/multiband-melgan "
20+
f'--text "This is an example." --out_path "{output_path}"'
21+
)
2222

23-
# # multi-speaker model
24-
# run_cli("tts --model_name tts_models/en/vctk/sc-glow-tts --list_speaker_idxs")
25-
# run_cli(
26-
# f'tts --model_name tts_models/en/vctk/sc-glow-tts --speaker_idx "p304" '
27-
# f'--text "This is an example." --out_path "{output_path}"'
28-
# )
23+
# multi-speaker model
24+
run_cli("tts --model_name tts_models/en/vctk/sc-glow-tts --list_speaker_idxs")
25+
run_cli(
26+
f'tts --model_name tts_models/en/vctk/sc-glow-tts --speaker_idx "p304" '
27+
f'--text "This is an example." --out_path "{output_path}"'
28+
)

0 commit comments

Comments
 (0)