mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-07 10:10:23 +08:00
fix: remove outdated codes & add weights_only=True
This commit is contained in:
@@ -303,7 +303,7 @@ class TextAudioLoader(torch.utils.data.Dataset):
|
||||
spec_filename = filename.replace(".wav", ".spec.pt")
|
||||
if os.path.exists(spec_filename):
|
||||
try:
|
||||
spec = torch.load(spec_filename)
|
||||
spec = torch.load(spec_filename, weights_only=True)
|
||||
except:
|
||||
logger.warning("%s %s", spec_filename, traceback.format_exc())
|
||||
spec = spectrogram_torch(
|
||||
|
||||
Reference in New Issue
Block a user