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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user