Comments (3)
I checked the code and found the issue.
It happens because the train.list
file is not well formatted, it is probably empty. In fact, it was my case.
This file is created during the pre-processing step via the preprocess_text.py
script.
We need to make sure that there is no error during the pre-processing step. My preprocessing actually failed but I did not see it from the output. The reason it failed is that I added EN-BR
instead of EN
for the language column. Now the preprocessing works well and the *.list
files aren't empty, so that issue disappeared.
After the former issue, I got a second one where it looped saying that No module named 'matplotlib'
. To fix it I just ran:
pip install matplotlib
I wonder if this dependency should be added as a direct dependency though.
All in all, now the training is running 😃
@Tanmaypatil123 hope it helps.
from melotts.
I just tried it, and it results to the same issue.
2024-05-12 21:24:11.820 | INFO | data_utils:_filter:64 - Init dataset...
0it [00:00, ?it/s]
[rank0]: Traceback (most recent call last):
[rank0]: File "/Workspace/leon/tts/melotts/MeloTTS/melo/train.py", line 635, in <module>
[rank0]: run()
[rank0]: File "/Workspace/leon/tts/melotts/MeloTTS/melo/train.py", line 69, in run
[rank0]: train_dataset = TextAudioSpeakerLoader(hps.data.training_files, hps.data)
[rank0]: File "/Workspace/leon/tts/melotts/MeloTTS/melo/data_utils.py", line 50, in __init__
[rank0]: self._filter()
[rank0]: File "/Workspace/leon/tts/melotts/MeloTTS/melo/data_utils.py", line 84, in _filter
[rank0]: logger.info(f'min: {min(lengths)}; max: {max(lengths)}' )
[rank0]: ValueError: min() arg is an empty sequence
E0512 21:24:14.982235 139701776379072 torch/distributed/elastic/multiprocessing/api.py:826] failed (exitcode: 1) local_rank: 0 (pid: 2520105) of binary: /.pyenv/versions/3.9.10/bin/python
Traceback (most recent call last):
File "/.pyenv/versions/3.9.10/bin/torchrun", line 8, in <module>
sys.exit(main())
File "/.pyenv/versions/3.9.10/lib/python3.9/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 347, in wrapper
return f(*args, **kwargs)
File "/.pyenv/versions/3.9.10/lib/python3.9/site-packages/torch/distributed/run.py", line 879, in main
run(args)
File "/.pyenv/versions/3.9.10/lib/python3.9/site-packages/torch/distributed/run.py", line 870, in run
elastic_launch(
File "/.pyenv/versions/3.9.10/lib/python3.9/site-packages/torch/distributed/launcher/api.py", line 132, in __call__
return launch_agent(self._config, self._entrypoint, list(args))
File "/.pyenv/versions/3.9.10/lib/python3.9/site-packages/torch/distributed/launcher/api.py", line 263, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
============================================================
train.py FAILED
------------------------------------------------------------
Failures:
<NO_OTHER_FAILURES>
------------------------------------------------------------
Root Cause (first observed failure):
[0]:
time : 2024-05-12_21:24:14
host : ...
rank : 0 (local_rank: 0)
exitcode : 1 (pid: 2520105)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
============================================================
from melotts.
Thanks @louistiti I will try this ...
from melotts.
Related Issues (20)
- Can't fine-tune a model on my dataset in Google Colab HOT 1
- when build docker, AttributeError: module 'botocore.exceptions' has no attribute 'HTTPClientError' HOT 3
- I need to help for working MeloTTS Korean in apple silicon python 3.10.14 (pyenv, virtualenv) HOT 3
- Request for PR review: Add support for Thai language HOT 47
- mecab-python3 and python-mecab-ko conflict HOT 1
- Python API BUG HOT 2
- Failed building wheel for mecab-python-3 HOT 5
- 中文文本中夹杂的英文专业术语识别错误 HOT 2
- Docker build error. HOT 1
- Melo TTS pronounces "US" as "ʌs", not "ˌjuː ˈes". HOT 3
- Calling melo CLI for "ZH" long coldstart times, even if cached
- The generated sound is very small?
- Error on english_bert.py in melo/text/english_bert.py when using local bert-base-uncased model.
- botocore HTTPClientError Error
- Is there any way to set intonation and accent in Japanese text-to-speech? HOT 1
- Failed initializing MeCab. HOT 2
- How can i use voice conversion?
- Add support hindi HOT 1
- 可以提供一个针对特定说话人的快速finetune例子吗 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from melotts.