1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-05 01:10:22 +08:00

feat(web): check assets integrity on start

This commit is contained in:
源文雨
2024-04-21 00:16:10 +09:00
parent a30d54f61c
commit 4ed830f785
6 changed files with 206 additions and 7 deletions

View File

@@ -57,6 +57,7 @@ class Config:
self.noparallel,
self.noautoopen,
self.dml,
self.nocheck,
) = self.arg_parse()
self.instead = ""
self.preprocess_per = 3.7
@@ -93,6 +94,9 @@ class Config:
action="store_true",
help="torch_dml",
)
parser.add_argument(
"--nocheck", action="store_true", help="Run without checking assets"
)
cmd_opts = parser.parse_args()
cmd_opts.port = cmd_opts.port if 0 <= cmd_opts.port <= 65535 else 7865
@@ -104,6 +108,7 @@ class Config:
cmd_opts.noparallel,
cmd_opts.noautoopen,
cmd_opts.dml,
cmd_opts.nocheck,
)
# has_mps is only available in nightly pytorch (for now) and MasOS 12.3+.