litagin02
f12f20f3da
Rollback of SAFE_STDOUT debug
2024-03-12 19:13:13 +09:00
litagin02
4acfc2977e
Ensure to write use_jp_extra option to config.json
2024-03-12 19:10:43 +09:00
litagin02
005706a456
Fix: colab notebook for 2.4
2024-03-12 17:26:03 +09:00
litagin02
b3cc705caa
Fix: add use_jp_extra parameter to config.json (for non-jp-extra training)
2024-03-11 17:51:55 +09:00
litagin02
44851a6219
Clean and fix docs
2024-03-11 17:05:42 +09:00
litagin02
dada0af2b6
Format import using isort --profile black --gitignore --lai 2 .
2024-03-11 12:37:51 +09:00
litagin02
c776c08235
Apply black formatter
2024-03-11 09:47:47 +09:00
litagin02
42ee7d7608
Fix: ensure encoding utf-8
2024-03-11 09:27:36 +09:00
tsukumi
7f02b0f1d5
Refactor: TTSModelInfo changed from TypedDict to Pydantic model
...
Pydantic models are more robust and properties can be accessed by dots.
2024-03-10 19:21:22 +00:00
tsukumi
859d940916
Fix: failed to start training
2024-03-10 19:15:24 +00:00
tsukumi
be265d42ed
Improve: switch pyworld to pyworld-prebuilt and enable it by default
...
Prebuilt wheels for almost every OS/architecture (except musl) are now available on PyPI, eliminating the need for a build environment.
ref: https://pypi.org/project/pyworld-prebuilt/
2024-03-10 18:11:15 +00:00
tsukumi
9c233630ef
Refactor: don't keep models in bert_feature module for each language
...
BERT models and tokenizers are already stored and managed in the bert_models module and should not be stored here.
In addition, since there may be situations where the user would like to use cpu instead of mps for inference when using it as a library, the automatic switching process to mps was removed.
2024-03-10 14:18:57 +00:00
tsukumi
84b1dbe1b5
Fix: problem with test failures
...
Style-Bert-VITS2 has been reported to not work with some PyTorch 2.2 series, but Python 3.12 is only supported in Torch >= 2.2, so Python 3.12 support is not provided for the time being
2024-03-10 10:48:21 +00:00
tsukumi
afff154da4
Add: test code for style-bert-vits2 as a library
...
By executing "hatch run test:test", you can check whether the test passes in all Python 3.9 to 3.12 environments.
2024-03-10 04:18:39 +00:00
tsukumi
d2fd378b56
Refactor: rename Model / ModelHolder to TTSModel / TTSModelHolder for clarification and add comments to each method
2024-03-10 03:47:17 +00:00
tsukumi
b7d7c78203
Refactor: when pyopenjtalk_worker is called without initialization, continue processing without a worker
...
When using style-bert-vits2 as a library, the requirement to be able to launch it in multiple processes may not be necessary. Also, if the library is embedded and exe-ed using PyInstaller or similar, it is difficult to make pyopenjtalk_worker run in a separate process.
Therefore, we changed it so that the worker is used only when it is explicitly initialized.
2024-03-10 03:04:27 +00:00
tsukumi
a79b1910fb
Add: use hatch to build style-bert-vits2 as a library
2024-03-09 18:38:16 +00:00
tsukumi
0a74fe521b
Merge branch 'dev' of github.com:litagin02/Style-Bert-VITS2 into dev
2024-03-09 18:12:56 +00:00
tsukumi
1d320915e0
Refactor: make tts_model.py independent of style_gen.py
2024-03-09 18:10:25 +00:00
tsukumi
96d22102f3
Refactor: separate adjust_voice() function from tts_model.py
2024-03-09 17:45:56 +00:00
tsukumi
61e2a1deae
Refactor: add type hints to style_bert_vits2.models.utils
2024-03-09 17:26:42 +00:00
tsukumi
98ab8e7978
Refactor: separate module for utilities related to loading/saving checkpoints and safetensors
2024-03-09 15:58:57 +00:00
tsukumi
c594f7ea7a
Refactor: change execution location of pyopenjtalk.initialize()
...
Considering library design, this function with many side effects should not be executed in a library.
2024-03-09 00:26:51 +00:00
tsukumi
8feef04cef
Refactor: add type hints to models.py / models_jp_extra.py
...
I didn't add docstring because it is very technical code and I don't understand what is being implemented.
2024-03-08 23:52:44 +00:00
tsukumi
e1fad54c99
Refactor: add type hints to attentions.py / modules.py / transforms.py
...
I didn't add docstring because it is very technical code and I don't understand what is being implemented.
2024-03-08 22:58:40 +00:00
tsukumi
717ba7925f
Fix: app.py cannot be closed with Ctrl+C
2024-03-08 22:27:21 +00:00
tsukumi
d22a11ebb2
Fix: a bug that prevented speech synthesis in app.py
2024-03-08 22:09:47 +00:00
tsukumi
30ea08d6ea
Fix: forgot to write pyopenjtalk.initialize()
2024-03-08 18:22:40 +00:00
tsukumi
b9e486e72a
Fix: extend timeout for style_bert_vits2.nlp.japanese.pyopenjtalk_worker.worker_client
...
ref: https://github.com/litagin02/Style-Bert-VITS2/pull/91
2024-03-08 16:44:56 +00:00
tsukumi
6b19eac61e
Merge branch 'dev' of github.com:litagin02/Style-Bert-VITS2 into dev
2024-03-08 16:03:06 +00:00
tsukumi
a84783a6cc
Refactor: replace utils.HParams with HyperParameters Pydantic model
...
HyperParameters is largely a drop-in replacement for utils.HParams, which ensures type safety for hyper-parameters.
2024-03-08 15:52:37 +00:00
tsukumi
7f0b252806
Refactor: add Pydantic model representing hyper-parameters of Style-Bert-VITS2 model
2024-03-08 12:49:11 +00:00
tsukumi
8fad591ac0
Fix: backported StrEnum from Python 3.11
2024-03-08 11:59:14 +00:00
tsukumi
c915215ad2
Refactor: moved transforms.py to style_bert_vits2/models/
2024-03-08 09:43:31 +00:00
tsukumi
67ff3105c1
Refactor: moved utils.py to style_bert_vits2/models/
2024-03-08 09:40:27 +00:00
tsukumi
fe7e31e080
Refactor: moved common/tts_model.py to style_bert_vits2/
2024-03-08 09:34:44 +00:00
tsukumi
766699e812
Fix: pyopenjtalk_worker not working
2024-03-08 09:21:09 +00:00
tsukumi
df68771651
Refactor: split style_bert_vits2.nlp.chinese package
...
Configured so that the same public function is exported from the module with the same name for each language.
2024-03-08 09:04:40 +00:00
tsukumi
a672aeefd9
Fix: maintain compatibility with Python 3.9
2024-03-08 08:45:56 +00:00
tsukumi
e2daa55000
Refactor: split style_bert_vits2.nlp.english package
2024-03-08 08:43:54 +00:00
tsukumi
5de4884075
Fix: import error
...
pyopenjtalk_worker.initialize() has the side effect of starting another process and should not be executed automatically on import.
2024-03-08 07:31:33 +00:00
tsukumi
75467936d9
Refactor: cleanup style_bert_vits2/nlp/english/__init__.py
2024-03-08 06:39:51 +00:00
tsukumi
fac4f9a8ab
Refactor: rename text_processing to nlp
...
"text_processing" is clearer, but the import statement is longer.
"nlp" is shorter and makes it clear that it is natural language processing.
2024-03-08 06:20:44 +00:00
tsukumi
8add1b4202
Fix: maintain compatibility with Python 3.9
2024-03-08 06:14:50 +00:00
tsukumi
da7747cc67
Merge branch 'dev' of github.com:litagin02/Style-Bert-VITS2
2024-03-08 05:49:52 +00:00
tsukumi
4d5c537f95
Refactor: introducing Ruff
2024-03-08 05:02:02 +00:00
tsukumi
3f07c256e3
Refactor: make variables private that are not used externally
2024-03-08 05:01:51 +00:00
tsukumi
70f8d53a1e
Add: empty __init__.py
2024-03-07 09:09:24 +00:00
tsukumi
e57cfbf072
Remove: remove currently unused code in style_bert_vits2/models/commons.py
2024-03-07 08:46:13 +00:00
tsukumi
bffd5a67bb
Fix: import error
2024-03-07 08:36:22 +00:00