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

fix: remove outdated codes & add weights_only=True

This commit is contained in:
源文雨
2025-11-18 13:57:03 +08:00
parent 34f28d97e3
commit 215a3edcef
6 changed files with 15 additions and 49 deletions

View File

@@ -75,7 +75,7 @@ def show_info(path):
try:
if hasattr(path, "name"):
path = path.name
a = torch.load(path, map_location="cpu")
a = torch.load(path, map_location="cpu", weights_only=True)
txt = show_model_info(a, show_long_id=True)
del a
except: