tortoise-base / src /utils.py

Commit History

(try to) unload voicefixer if it raises an error during loading voicefixer
a01eb10

ecker commited on

cleanup block that makes embedding latents for random/microphone happen, remove builtin voice options from voice list to avoid duplicates
dc1902b

ecker commited on

maybe remedy an issue that crops up if you have a non-wav and non-json file in a results folder (assuming)
7978823

ecker commited on

when you have three separate machines running and you test one one, but you accidentally revert changes because you then test on another
3b4f450

ecker commited on

I hate commas make tuples
ef75dba

ecker commited on

you might be wondering why so many small commits instead of rolling the HEAD back one to just combine them, i don't want to force push and roll back the paperspace i'm testing in
f795dd5

ecker commited on

typo
5133967

ecker commited on

forgot to save the simplified training input json first before touching any of the settings that dump to the yaml
1b18b3e

ecker commited on

added VRAM validation for a given batch:gradient accumulation size ratio (based emprically off of 6GiB, 16GiB, and 16x2GiB, would be nice to have more data on what's safe)
0e80e31

ecker commited on

oops
ef7b957

ecker commited on

forgot template
b0baa19

ecker commited on

big cleanup to make my life easier when i add more parameters
3f321fe

ecker commited on

oops
0ab091e

ecker commited on

actually make using adamw_zero optimizer for multi-gpus work
34dcb84

ecker commited on

disable validation if validation dataset not found, clamp validation batch size to validation dataset size instead of simply reusing batch size, switch to adamw_zero optimizier when training with multi-gpus (because the yaml comment said to and I think it might be why I'm absolutely having garbage luck training this japanese dataset)
ff07f70

ecker commited on

lazy wrap around the voicefixer block because sometimes it just an heros itself despite having a specific block to load it beforehand
f1788a5

ecker commited on

fixed notebooks, provided paperspace notebook
83b5125

ecker commited on

made validation working (will document later)
b4098dc

ecker commited on

oops
a7e0dc9

ecker commited on

set validation to save rate and validation file if exists (need to test later)
e862169

ecker commited on

added helper script to cull short enough lines from training set as a validation set (if it yields good results doing validation during training, i'll add it to the web ui)
fe8bf7a

ecker commited on

fixed update checker for dlas+tortoise-tts
7f89e80

ecker commited on

added override for large training plots
6d7e143

ecker commited on

set NaN alarm to show the iteration it happened it
3718e9d

ecker commited on

added update checking for dlas and tortoise-tts, caching voices (for a given model and voice name) so random latents will remain the same
c27ee3c

ecker commited on

fixes
166d491

ecker commited on

brain dead
df5ba63

ecker commited on

fried my brain trying to nail out bugs involving using solely ar model=auto
2726d98

ecker commited on

cleaned up some model loading logic, added 'auto' mode for AR model (deduced by current voice)
d7a5ad9

ecker commited on

added (yet another) experimental voice latent calculation mode (when chunk size is 0 and theres a dataset generated, itll leverage it by padding to a common size then computing them, should help avoid splitting mid-phoneme)
3899f9b

ecker commited on

brain worms and headaches
5063728

ecker commited on

download dvae.pth for the people who managed to somehow put the web UI into a state where it never initializes TTS at all somehow
0f31c34

ecker commited on

moved (actually not working) setting to use BigVGAN to a dropdown to select between vocoders (for when slotting in future ones), and ability to load a new vocoder while TTS is loaded
0f0b394

ecker commited on

reworked generating metadata to embed, should now store overrided settings
e731b9b

ecker commited on

added settings editing (will add a guide on what to do later, and an example)
7798767

ecker commited on

forgot to re-append the existing transcription when skipping existing (have to go back again and do the first 10% of my giant dataset
119ac50

ecker commited on

Im not too sure if manually invoking gc actually closes all the open files from whisperx (or ROCm), but it seems to have gone away longside setting 'ulimit -Sn' to half the output of 'ulimit -Hn'
12c51b6

ecker commited on

and it turned out I wasn't even using the aligned segments, kmsing now that I have to *redo* my dataset again
999878d

ecker commited on

Added option to skip transcribing if it exists in the output text file, because apparently whisperx will throw a "max files opened" error when using ROCm because it does not close some file descriptors if you're batch-transcribing or something, so poor little me, who's retranscribing his japanese dataset for the 305823042th time woke up to it partially done i am so mad I have to wait another few hours for it to continue when I was hoping to wake up to it done
14779a5

ecker commited on

added api_name for generation, added whisperx backend, relocated use whispercpp option to whisper backend list
0e3bbc5

ecker commited on

stretch loss plot to target iteration just so its not so misleading with the scale
788a957

ecker commited on

UI cleanup, actually fix syncing the epoch counter (i hope), setting auto-suggest voice chunk size whatever to 0 will just split based on the average duration length, signal when a NaN info value is detected (there's some safeties in the training, but it will inevitably fuck the model)
5be14ab

ecker commited on

(should) fix reported epoch metric desyncing from defacto metric, fixed finding next milestone from wrong sign because of 2AM brain
287738a

ecker commited on

brianworms
206a14f

ecker commited on

typo
b82961b

ecker commited on

oops
b2e89d8

ecker commited on

print in e-notation for LR
8094401

ecker commited on

remove redundant stats, add showing LR
8b9c9e1

ecker commited on

forgot to remove a debug print
0231550

ecker commited on

whispercpp actually works now (language loading was weird, slicing needed to divide time by 100), transcribing audio checks for silence and discards them
d97639e

ecker commited on