mirror of
https://github.com/svc-develop-team/so-vits-svc.git
synced 2025-01-08 11:57:43 +08:00
chore: friendly error report
This commit is contained in:
parent
296f99237a
commit
22a881223c
@ -48,8 +48,8 @@ class TextAudioSpeakerLoader(torch.utils.data.Dataset):
|
||||
filename = filename.replace("\\", "/")
|
||||
audio, sampling_rate = load_wav_to_torch(filename)
|
||||
if sampling_rate != self.sampling_rate:
|
||||
raise ValueError("{} SR doesn't match target {} SR".format(
|
||||
sampling_rate, self.sampling_rate))
|
||||
raise ValueError("{}: {} SR doesn't match target {} SR".format(
|
||||
filename, sampling_rate, self.sampling_rate))
|
||||
audio_norm = audio / self.max_wav_value
|
||||
audio_norm = audio_norm.unsqueeze(0)
|
||||
spec_filename = filename.replace(".wav", ".spec.pt")
|
||||
|
Loading…
Reference in New Issue
Block a user