1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-07 19:40:44 +08:00

feat(rvcmd): add option --update

This commit is contained in:
源文雨
2024-04-23 03:16:27 +09:00
parent deca566ab2
commit 659f5d25b0
4 changed files with 27 additions and 19 deletions

View File

@@ -57,11 +57,12 @@ vc = VC(config)
if not config.nocheck:
from infer.lib.rvcmd import check_all_assets, download_all_assets
if not check_all_assets():
download_all_assets(tmpdir=tmp)
if not check_all_assets():
logging.error("counld not satisfy all assets needed.")
exit(1)
if not check_all_assets(update=config.update):
if config.update:
download_all_assets(tmpdir=tmp)
if not check_all_assets(update=False):
logging.error("counld not satisfy all assets needed.")
exit(1)
if config.dml == True: