Error when generating voice #53

Closed
opened 2023-03-03 05:48:09 +00:00 by ThrowawayAccount01 · 2 comments

Hi, I am getting this error when trying to generate a voice using a finetuned model and with voice fixer enabled. Here is the stack trace:

C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning>call .\venv\Scripts\activate.bat
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Loading TorToiSe... (using model: ./training/21VO-finetune/models/13130_gpt.pth)
Hardware acceleration found: cuda
Loaded TorToiSe, ready for generation.
Reading from latent: ./voices\21\cond_latents_aba64acf.pth
[1/1] Generating line: This is a test sentence.
Generating autoregressive samples
Computing best candidates using CLVP
Transforming autoregressive outputs into audio..
Generating line took 10.889973402023315 seconds
Loading Voicefixer
Loaded Voicefixer
Traceback (most recent call last):
  File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\src\webui.py", line 54, in run_generation
    sample, outputs, stats = generate(
  File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\src\utils.py", line 381, in generate
    with open(f'{get_voice_dir()}/{voice}/cond_latents.pth', 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: './voices/21/cond_latents.pth'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\venv\lib\site-packages\gradio\routes.py", line 384, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 1024, in process_api
    result = await self.call_function(
  File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 836, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "C:\Users\LXC PC\Desktop\mrqtts\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 "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\venv\lib\site-packages\gradio\helpers.py", line 584, in tracked_fn
    response = fn(*args)
  File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\src\webui.py", line 83, in run_generation
    raise gr.Error(message)
gradio.exceptions.Error: "[Errno 2] No such file or directory: './voices/21/cond_latents.pth'"
Hi, I am getting this error when trying to generate a voice using a finetuned model and with voice fixer enabled. Here is the stack trace: ``` C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning>call .\venv\Scripts\activate.bat Running on local URL: http://127.0.0.1:7860 To create a public link, set `share=True` in `launch()`. Loading TorToiSe... (using model: ./training/21VO-finetune/models/13130_gpt.pth) Hardware acceleration found: cuda Loaded TorToiSe, ready for generation. Reading from latent: ./voices\21\cond_latents_aba64acf.pth [1/1] Generating line: This is a test sentence. Generating autoregressive samples Computing best candidates using CLVP Transforming autoregressive outputs into audio.. Generating line took 10.889973402023315 seconds Loading Voicefixer Loaded Voicefixer Traceback (most recent call last): File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\src\webui.py", line 54, in run_generation sample, outputs, stats = generate( File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\src\utils.py", line 381, in generate with open(f'{get_voice_dir()}/{voice}/cond_latents.pth', 'rb') as f: FileNotFoundError: [Errno 2] No such file or directory: './voices/21/cond_latents.pth' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\venv\lib\site-packages\gradio\routes.py", line 384, in run_predict output = await app.get_blocks().process_api( File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 1024, in process_api result = await self.call_function( File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 836, in call_function prediction = await anyio.to_thread.run_sync( File "C:\Users\LXC PC\Desktop\mrqtts\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 "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run result = context.run(func, *args) File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\venv\lib\site-packages\gradio\helpers.py", line 584, in tracked_fn response = fn(*args) File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\src\webui.py", line 83, in run_generation raise gr.Error(message) gradio.exceptions.Error: "[Errno 2] No such file or directory: './voices/21/cond_latents.pth'" ```
Owner

Whoops, I guess I forgot to update that line. I'll push a fix in a few minutes.

Whoops, I guess I forgot to update that line. I'll push a fix in a few minutes.

Fixed now, thanks.

Fixed now, thanks.
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#53
No description provided.