Result files still don't increment properly for me #36

Closed
opened 2023-02-15 20:16:33 +00:00 by accountts · 6 comments

result files kept overwriting themselves, it kinda works sometimes, it got 00000 and 00001 but after that it kept overwriting 00001.
Tried with or without voicefixer, or candidates.

I changed line 186-187 in webui.py to

def get_name(line=0, candidate=0, combined=False):
name = f"{int(full_start_time)}"

to avoid that calculation.

result files kept overwriting themselves, it kinda works sometimes, it got 00000 and 00001 but after that it kept overwriting 00001. Tried with or without voicefixer, or candidates. I changed line 186-187 in webui.py to ` def get_name(line=0, candidate=0, combined=False):` ` name = f"{int(full_start_time)}"` to avoid that calculation.
Owner

Gross, I don't want to go back to eye sore timestamps for "uniqueness". I'll admit the current way it does it is still rather naive, but I didn't seem to have any problems are extensively testing it, but when I can salvage whatever free time I have left, I'll try fixing it.

I'm assuming you already updated past commit d2ab3383f8, and you have tried with a cleaned results folder.

Gross, I don't want to go back to eye sore timestamps for "uniqueness". I'll admit the current way it does it is still rather naive, but I didn't seem to have any problems are extensively testing it, but when I can salvage whatever free time I have left, I'll try fixing it. I'm assuming you already updated past commit d2ab3383f835467992bd83187c1b358746e18a9a, and you have tried with a cleaned results folder.
Owner

Should now actually be fixed in commit 7a4460ddf0.

The new behavior will use the last indexed file + 1.

Should now actually be fixed in commit 7a4460ddf087f643b8df60b4317cf9b1cf8dd581. The new behavior will use the last indexed file + 1.
Author

Welp, still the same for me. Emptied the result directory for this voice, generated 3 times, and ended up with only files 00000 and 00001, with second attempt overwritten.
Only thing suspicious is stack traces about hosts not found because I don't have internet on that machine, could this mess up the index ?

Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Initializating TorToiSe...
Hardware acceleration found: cuda
TorToiSe initialized, ready for generation.

Reading from latent: ./voices\solid_snake\cond_latents.pth
Using index: 0
[1/1] Generating line: This is the first generation, Colonel.
Generating autoregressive samples
Computing best candidates using CLVP
Transforming autoregressive outputs into audio..
Generating line took 19.849072456359863 seconds
Generation took 19.849072456359863 seconds, saved to './results/solid_snake//solid_snake_00000.wav'

Reading from latent: ./voices\solid_snake\cond_latents.pth
Using index: 1
[1/1] Generating line: This is the second generation, Colonel.
Generating autoregressive samples
Computing best candidates using CLVP
Transforming autoregressive outputs into audio..
Generating line took 12.46602749824524 seconds
Generation took 12.46602749824524 seconds, saved to './results/solid_snake//solid_snake_00001.wav'

Reading from latent: ./voices\solid_snake\cond_latents.pth
Using index: 1
[1/1] Generating line: This is the third generation, Colonel.
Generating autoregressive samples
Computing best candidates using CLVP
Transforming autoregressive outputs into audio..
Generating line took 11.994595766067505 seconds
Generation took 11.994595766067505 seconds, saved to './results/solid_snake//solid_snake_00001.wav'
Welp, still the same for me. Emptied the result directory for this voice, generated 3 times, and ended up with only files 00000 and 00001, with second attempt overwritten. Only thing suspicious is stack traces about hosts not found because I don't have internet on that machine, could this mess up the index ? ``` Running on local URL: http://127.0.0.1:7860 To create a public link, set `share=True` in `launch()`. Initializating TorToiSe... Hardware acceleration found: cuda TorToiSe initialized, ready for generation. Reading from latent: ./voices\solid_snake\cond_latents.pth Using index: 0 [1/1] Generating line: This is the first generation, Colonel. Generating autoregressive samples Computing best candidates using CLVP Transforming autoregressive outputs into audio.. Generating line took 19.849072456359863 seconds Generation took 19.849072456359863 seconds, saved to './results/solid_snake//solid_snake_00000.wav' Reading from latent: ./voices\solid_snake\cond_latents.pth Using index: 1 [1/1] Generating line: This is the second generation, Colonel. Generating autoregressive samples Computing best candidates using CLVP Transforming autoregressive outputs into audio.. Generating line took 12.46602749824524 seconds Generation took 12.46602749824524 seconds, saved to './results/solid_snake//solid_snake_00001.wav' Reading from latent: ./voices\solid_snake\cond_latents.pth Using index: 1 [1/1] Generating line: This is the third generation, Colonel. Generating autoregressive samples Computing best candidates using CLVP Transforming autoregressive outputs into audio.. Generating line took 11.994595766067505 seconds Generation took 11.994595766067505 seconds, saved to './results/solid_snake//solid_snake_00001.wav' ```
Owner

Oh, I think I found the issue. One moment.

Oh, I think I found the issue. One moment.
Owner

Should actually be fixed now in commit 63bcadcbbe. The reason I never caught it was that I didn't actually test it with single lines with only one candidate (ironically, I started bothering to generate multiple candidates yesterday), and my regex was slightly wrong.

As for the stack traces about hosts not found issue, I'd assume it is from not having a connection. Every time tortoise loads a model, it'll check if there's an update for that model before loading it. You can check the Only Load Models Locally checkbox to make it stop doing that (or at least should, I don't think I tested it since it's just an environment variable that should nix it).

Should actually be fixed now in commit 63bcadcbbe9139d0ece9fcdd811e1f5cac17896d. The reason I never caught it was that I didn't actually test it with single lines with only one candidate (ironically, I started bothering to generate multiple candidates yesterday), and my regex was slightly wrong. As for the `stack traces about hosts not found` issue, I'd assume it is from not having a connection. Every time tortoise loads a model, it'll check if there's an update for that model before loading it. You can check the `Only Load Models Locally` checkbox to make it stop doing that (or at least should, I don't think I tested it since it's just an environment variable that should nix it).
Author

Thanks that fixed it. Cheers

Thanks that fixed it. Cheers
Sign in to join this conversation.
No Label
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/tortoise-tts#36
No description provided.