Can validate a training configuration, but can't save it. #179

Closed
opened 2023-03-26 21:26:49 +00:00 by demonauthor · 5 comments

Almost there!

Windows 11, RTX 4080, Miniconda3 (Python 3.10)

I'm trying to save a training configuration file in the web UI. It validates with the following response:

! EXPERIMENTAL ! BitsAndBytes requested.
For 200 epochs with 667 lines in batches of 8, iterating for 16800 steps (84) steps per epoch)

But when I try to save the configuration file, I get this:

[Errno 2] No such file or directory: './models/.template.dlas.yaml'

and the command line output is:

D:\ai-voice-cloning>call .\venv\Scripts\activate.bat
!WARNING! Automatically deduced sample batch size returned 1.
!WARNING! Automatically deduced sample batch size returned 1.
Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch().
Loading TorToiSe... (AR: ./models/tortoise/autoregressive.pth, vocoder: bigvgan_24khz_100band)
Hardware acceleration found: cuda
Loading tokenizer JSON: ./modules/tortoise-tts/tortoise/data/tokenizer.json
Loaded tokenizer
Loading autoregressive model: ./models/tortoise/autoregressive.pth
Loaded autoregressive model
Loaded diffusion model
Loading vocoder model: bigvgan_24khz_100band
Loading vocoder model: bigvgan_24khz_100band.pth
Removing weight norm...
Loaded vocoder model
Loaded TorToiSe, ready for generation.
Traceback (most recent call last):
File "D:\ai-voice-cloning\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
output = await app.get_blocks().process_api(
File "D:\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 1075, in process_api
result = await self.call_function(
File "D:\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 884, in call_function
prediction = await anyio.to_thread.run_sync(
File "D:\ai-voice-cloning\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "D:\ai-voice-cloning\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "D:\ai-voice-cloning\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "D:\ai-voice-cloning\src\webui.py", line 280, in save_training_settings_proxy
settings, messages = save_training_settings(**kwargs)
File "D:\ai-voice-cloning\src\utils.py", line 1966, in save_training_settings
use_template(f'./models/.template.dlas.yaml', f'./training/{settings["voice"]}/train.yaml')
File "D:\ai-voice-cloning\src\utils.py", line 1953, in use_template
with open(template, 'r', encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: './models/.template.dlas.yaml'
Traceback (most recent call last):
File "D:\ai-voice-cloning\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
output = await app.get_blocks().process_api(
File "D:\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 1075, in process_api
result = await self.call_function(
File "D:\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 884, in call_function
prediction = await anyio.to_thread.run_sync(
File "D:\ai-voice-cloning\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "D:\ai-voice-cloning\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "D:\ai-voice-cloning\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "D:\ai-voice-cloning\src\webui.py", line 280, in save_training_settings_proxy
settings, messages = save_training_settings(**kwargs)
File "D:\ai-voice-cloning\src\utils.py", line 1966, in save_training_settings
use_template(f'./models/.template.dlas.yaml', f'./training/{settings["voice"]}/train.yaml')
File "D:\ai-voice-cloning\src\utils.py", line 1953, in use_template
with open(template, 'r', encoding="utf-8") as f:
FileNotFoundError: [Errno 2] No such file or directory: './models/.template.dlas.yaml'

Almost there! Windows 11, RTX 4080, Miniconda3 (Python 3.10) I'm trying to save a training configuration file in the web UI. It validates with the following response: ! EXPERIMENTAL ! BitsAndBytes requested. For 200 epochs with 667 lines in batches of 8, iterating for 16800 steps (84) steps per epoch) But when I try to save the configuration file, I get this: [Errno 2] No such file or directory: './models/.template.dlas.yaml' and the command line output is: D:\ai-voice-cloning>call .\venv\Scripts\activate.bat !WARNING! Automatically deduced sample batch size returned 1. !WARNING! Automatically deduced sample batch size returned 1. Running on local URL: http://127.0.0.1:7860 To create a public link, set `share=True` in `launch()`. Loading TorToiSe... (AR: ./models/tortoise/autoregressive.pth, vocoder: bigvgan_24khz_100band) Hardware acceleration found: cuda Loading tokenizer JSON: ./modules/tortoise-tts/tortoise/data/tokenizer.json Loaded tokenizer Loading autoregressive model: ./models/tortoise/autoregressive.pth Loaded autoregressive model Loaded diffusion model Loading vocoder model: bigvgan_24khz_100band Loading vocoder model: bigvgan_24khz_100band.pth Removing weight norm... Loaded vocoder model Loaded TorToiSe, ready for generation. Traceback (most recent call last): File "D:\ai-voice-cloning\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict output = await app.get_blocks().process_api( File "D:\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 1075, in process_api result = await self.call_function( File "D:\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 884, in call_function prediction = await anyio.to_thread.run_sync( File "D:\ai-voice-cloning\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "D:\ai-voice-cloning\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "D:\ai-voice-cloning\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run result = context.run(func, *args) File "D:\ai-voice-cloning\src\webui.py", line 280, in save_training_settings_proxy settings, messages = save_training_settings(**kwargs) File "D:\ai-voice-cloning\src\utils.py", line 1966, in save_training_settings use_template(f'./models/.template.dlas.yaml', f'./training/{settings["voice"]}/train.yaml') File "D:\ai-voice-cloning\src\utils.py", line 1953, in use_template with open(template, 'r', encoding="utf-8") as f: FileNotFoundError: [Errno 2] No such file or directory: './models/.template.dlas.yaml' Traceback (most recent call last): File "D:\ai-voice-cloning\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict output = await app.get_blocks().process_api( File "D:\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 1075, in process_api result = await self.call_function( File "D:\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 884, in call_function prediction = await anyio.to_thread.run_sync( File "D:\ai-voice-cloning\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "D:\ai-voice-cloning\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "D:\ai-voice-cloning\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run result = context.run(func, *args) File "D:\ai-voice-cloning\src\webui.py", line 280, in save_training_settings_proxy settings, messages = save_training_settings(**kwargs) File "D:\ai-voice-cloning\src\utils.py", line 1966, in save_training_settings use_template(f'./models/.template.dlas.yaml', f'./training/{settings["voice"]}/train.yaml') File "D:\ai-voice-cloning\src\utils.py", line 1953, in use_template with open(template, 'r', encoding="utf-8") as f: FileNotFoundError: [Errno 2] No such file or directory: './models/.template.dlas.yaml'

Did you run the setup script?

Did you run the setup script?
Author

I ran the initial setup script. "setup-cuda.bat"

Is there a different one?

I ran the initial setup script. "setup-cuda.bat" Is there a different one?

That's the right one. You can try git restore models/.template.dlas.yaml but it's odd that it isn't there already. Have you run update.bat?

That's the right one. You can try `git restore models/.template.dlas.yaml` but it's odd that it isn't there already. Have you run update.bat?
Author

I did run update.bat. Will try the git restore...

I did run update.bat. Will try the git restore...
Author

It was also missing /models/tortoise/train_diffusion_vocoder_22k_level.yml
so I restored that as well... Now it seems to be training.

It was also missing /models/tortoise/train_diffusion_vocoder_22k_level.yml so I restored that as well... Now it seems to be training.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mrq/ai-voice-cloning#179
No description provided.