Skip to content

Commit

Permalink
Update rvc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Bebra777228 authored Aug 4, 2024
1 parent 99e933c commit ace97f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def load_hubert(device, is_half, model_path):
return hubert

def get_vc(device, is_half, config, model_path):
cpt = torch.load(model_path, map_location='cpu')
cpt = torch.load(model_path, map_location='cpu', weights_only=True)
if "config" not in cpt or "weight" not in cpt:
raise ValueError(f'Некорректный формат для {model_path}. Используйте голосовую модель, обученную с использованием RVC v2.')

Expand Down

0 comments on commit ace97f4

Please sign in to comment.