Can validate a training configuration, but can't save it. #179
Labels
No Label
bug
duplicate
enhancement
help wanted
insufficient info
invalid
news
not a bug
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: mrq/ai-voice-cloning#179
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
inlaunch()
.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?
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?I did run update.bat. Will try the git restore...
It was also missing /models/tortoise/train_diffusion_vocoder_22k_level.yml
so I restored that as well... Now it seems to be training.