mirror of
https://github.com/shivammehta25/Matcha-TTS.git
synced 2026-02-04 09:49:21 +08:00
Update download urls
This commit is contained in:
71
.pylintrc
71
.pylintrc
@@ -82,16 +82,6 @@ disable=missing-docstring,
|
|||||||
no-name-in-module,
|
no-name-in-module,
|
||||||
no-member,
|
no-member,
|
||||||
unsubscriptable-object,
|
unsubscriptable-object,
|
||||||
print-statement,
|
|
||||||
parameter-unpacking,
|
|
||||||
unpacking-in-except,
|
|
||||||
old-raise-syntax,
|
|
||||||
backtick,
|
|
||||||
long-suffix,
|
|
||||||
old-ne-operator,
|
|
||||||
old-octal-literal,
|
|
||||||
import-star-module-level,
|
|
||||||
non-ascii-bytes-literal,
|
|
||||||
raw-checker-failed,
|
raw-checker-failed,
|
||||||
bad-inline-option,
|
bad-inline-option,
|
||||||
locally-disabled,
|
locally-disabled,
|
||||||
@@ -106,67 +96,6 @@ disable=missing-docstring,
|
|||||||
too-many-arguments,
|
too-many-arguments,
|
||||||
too-many-locals,
|
too-many-locals,
|
||||||
too-many-statements,
|
too-many-statements,
|
||||||
apply-builtin,
|
|
||||||
basestring-builtin,
|
|
||||||
buffer-builtin,
|
|
||||||
cmp-builtin,
|
|
||||||
coerce-builtin,
|
|
||||||
execfile-builtin,
|
|
||||||
file-builtin,
|
|
||||||
long-builtin,
|
|
||||||
raw_input-builtin,
|
|
||||||
reduce-builtin,
|
|
||||||
standarderror-builtin,
|
|
||||||
unicode-builtin,
|
|
||||||
xrange-builtin,
|
|
||||||
coerce-method,
|
|
||||||
delslice-method,
|
|
||||||
getslice-method,
|
|
||||||
setslice-method,
|
|
||||||
no-absolute-import,
|
|
||||||
old-division,
|
|
||||||
dict-iter-method,
|
|
||||||
dict-view-method,
|
|
||||||
next-method-called,
|
|
||||||
metaclass-assignment,
|
|
||||||
indexing-exception,
|
|
||||||
raising-string,
|
|
||||||
reload-builtin,
|
|
||||||
oct-method,
|
|
||||||
hex-method,
|
|
||||||
nonzero-method,
|
|
||||||
cmp-method,
|
|
||||||
input-builtin,
|
|
||||||
round-builtin,
|
|
||||||
intern-builtin,
|
|
||||||
unichr-builtin,
|
|
||||||
map-builtin-not-iterating,
|
|
||||||
zip-builtin-not-iterating,
|
|
||||||
range-builtin-not-iterating,
|
|
||||||
filter-builtin-not-iterating,
|
|
||||||
using-cmp-argument,
|
|
||||||
eq-without-hash,
|
|
||||||
div-method,
|
|
||||||
idiv-method,
|
|
||||||
rdiv-method,
|
|
||||||
exception-message-attribute,
|
|
||||||
invalid-str-codec,
|
|
||||||
sys-max-int,
|
|
||||||
bad-python3-import,
|
|
||||||
deprecated-string-function,
|
|
||||||
deprecated-str-translate-call,
|
|
||||||
deprecated-itertools-function,
|
|
||||||
deprecated-types-field,
|
|
||||||
next-method-defined,
|
|
||||||
dict-items-not-iterating,
|
|
||||||
dict-keys-not-iterating,
|
|
||||||
dict-values-not-iterating,
|
|
||||||
deprecated-operator-function,
|
|
||||||
deprecated-urllib-function,
|
|
||||||
xreadlines-attribute,
|
|
||||||
deprecated-sys-function,
|
|
||||||
exception-escape,
|
|
||||||
comprehension-escape,
|
|
||||||
duplicate-code,
|
duplicate-code,
|
||||||
not-callable,
|
not-callable,
|
||||||
import-outside-toplevel,
|
import-outside-toplevel,
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ from matcha.text import sequence_to_text, text_to_sequence
|
|||||||
from matcha.utils.utils import assert_model_downloaded, get_user_data_dir, intersperse
|
from matcha.utils.utils import assert_model_downloaded, get_user_data_dir, intersperse
|
||||||
|
|
||||||
MATCHA_URLS = {
|
MATCHA_URLS = {
|
||||||
"matcha_ljspeech": "https://drive.google.com/file/d/1BBzmMU7k3a_WetDfaFblMoN18GqQeHCg/view?usp=drive_link",
|
"matcha_ljspeech": "https://github.com/shivammehta25/Matcha-TTS-checkpoints/releases/download/v1.0/matcha_ljspeech.ckpt",
|
||||||
"matcha_vctk": "https://drive.google.com/file/d/1enuxmfslZciWGAl63WGh2ekVo00FYuQ9/view?usp=drive_link",
|
"matcha_vctk": "https://github.com/shivammehta25/Matcha-TTS-checkpoints/releases/download/v1.0/matcha_vctk.ckpt",
|
||||||
}
|
}
|
||||||
|
|
||||||
VOCODER_URLS = {
|
VOCODER_URLS = {
|
||||||
@@ -63,7 +63,7 @@ def get_texts(args):
|
|||||||
if args.text:
|
if args.text:
|
||||||
texts = [args.text]
|
texts = [args.text]
|
||||||
else:
|
else:
|
||||||
with open(args.file) as f:
|
with open(args.file, encoding="utf-8") as f:
|
||||||
texts = f.readlines()
|
texts = f.readlines()
|
||||||
return texts
|
return texts
|
||||||
|
|
||||||
@@ -140,7 +140,7 @@ def validate_args(args):
|
|||||||
|
|
||||||
if args.checkpoint_path is None:
|
if args.checkpoint_path is None:
|
||||||
# When using pretrained models
|
# When using pretrained models
|
||||||
if args.model in SINGLESPEAKER_MODEL.keys():
|
if args.model in SINGLESPEAKER_MODEL:
|
||||||
args = validate_args_for_single_speaker_model(args)
|
args = validate_args_for_single_speaker_model(args)
|
||||||
|
|
||||||
if args.model in MULTISPEAKER_MODEL:
|
if args.model in MULTISPEAKER_MODEL:
|
||||||
|
|||||||
Reference in New Issue
Block a user