mirror of
https://github.com/JarodMica/ai-voice-cloning.git
synced 2025-06-07 06:05:52 -04:00
Small reload change
This commit is contained in:
parent
d9f34b6c1e
commit
09acc1a1d8
4 changed files with 10 additions and 2 deletions
1
modules/.gitignore
vendored
Normal file
1
modules/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
bitsandbytes-windows/
|
|
@ -4,3 +4,5 @@ git clone https://github.com/JarodMica/bitsandbytes-windows.git .\modules\bitsan
|
|||
xcopy .\modules\bitsandbytes-windows\bin\* .\venv\Lib\site-packages\bitsandbytes\. /Y
|
||||
xcopy .\modules\bitsandbytes-windows\bin\cuda_setup\* .\venv\Lib\site-packages\bitsandbytes\cuda_setup\. /Y
|
||||
xcopy .\modules\bitsandbytes-windows\bin\nn\* .\venv\Lib\site-packages\bitsandbytes\nn\. /Y
|
||||
|
||||
pause
|
|
@ -10,6 +10,7 @@ python -m pip install -e .\modules\tortoise-tts\
|
|||
python -m pip install -r .\modules\dlas\requirements.txt
|
||||
python -m pip install -e .\modules\dlas\
|
||||
python -m pip install -r .\requirements.txt
|
||||
python -m pip install deepspeed-0.8.3+6eca037c-cp39-cp39-win_amd64.whl
|
||||
|
||||
# setup BnB
|
||||
.\setup-cuda-bnb.bat
|
||||
|
|
|
@ -3724,8 +3724,12 @@ def unload_tts():
|
|||
do_gc()
|
||||
|
||||
def reload_tts():
|
||||
unload_tts()
|
||||
load_tts()
|
||||
subprocess.Popen(["start.bat"])
|
||||
with open("reload_flag.txt", "w") as f:
|
||||
f.write("reload")
|
||||
os.kill(os.getpid(), signal.SIGTERM) # Or signal.SIGKILL for an even harder kill
|
||||
# unload_tts()
|
||||
# load_tts()
|
||||
|
||||
def get_current_voice():
|
||||
global current_voice
|
||||
|
|
Loading…
Add table
Reference in a new issue