1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-08 20:10:44 +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

@@ -37,7 +37,7 @@ class AudioPre:
else:
mp = ModelParameters("infer/lib/uvr5_pack/lib_v5/modelparams/4band_v2.json")
model = Nets.CascadedASPPNet(mp.param["bins"] * 2)
cpk = torch.load(model_path, map_location="cpu")
cpk = torch.load(model_path, map_location="cpu", weights_only=True)
model.load_state_dict(cpk)
model.eval()
if is_half: