dvector
dvector copied to clipboard
Can not reshape tensor due visualization
I am run visualization and get error:
[INFO] model loaded.
Preprocess: 1% 12/889 [00:00<00:27, 31.83it/s]
Traceback (most recent call last):
File "visualize.py", line 89, in
.....
Traceback of TorchScript, original code (most recent call last): File "/home/yist/.pyenv/versions/3.8.5/lib/python3.8/site-packages/torchaudio/transforms.py", line 96, in forward Fourier bins, and time is the number of window hops (n_frame). """ return F.spectrogram( ~~~~~~~~~~~~~ <--- HERE waveform, self.pad, File "/home/yist/.pyenv/versions/3.8.5/lib/python3.8/site-packages/torchaudio/functional/functional.py", line 88, in spectrogram # pack batch shape = waveform.size() waveform = waveform.reshape(-1, shape[-1]) ~~~~~~~~~~~~~~~~ <--- HERE
# default values are consistent with librosa.core.spectrum._spectrogram
RuntimeError: cannot reshape tensor of 0 elements into shape [-1, 0] because the unspecified dimension size -1 can be any value and is ambiguous
Did you solve this problem? I met with this problem too.