Skip to content

Commit

Permalink
Update RMVPE.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Bebra777228 authored Aug 4, 2024
1 parent 56bf99a commit 8256fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infer_pack/predictor/RMVPE.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def __init__(self, model_path, is_half, device=None):
self.device = device
self.mel_extractor = MelSpectrogram(is_half, 128, 16000, 1024, 160, None, 30, 8000).to(device)
model = E2E(4, 1, (2, 2))
ckpt = torch.load(model_path, map_location="cpu")
ckpt = torch.load(model_path, map_location="cpu", weights_only=True)
model.load_state_dict(ckpt)
model.eval()
if is_half:
Expand Down

0 comments on commit 8256fe2

Please sign in to comment.