You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
作者你好,我在加载音频时,读入的src参数维数不是二维,此问题在加载不同音频时时有时无,请问作者遇到过类似的问题吗,是如何解决的呢?谢谢
Traceback (most recent call last):
File "D:\model\Dual-Path-RNN-Pytorch-master\Dual-Path-RNN-Pytorch-master\dualrnn_test_wav.py", line 73, in
main()
File "D:\model\Dual-Path-RNN-Pytorch-master\Dual-Path-RNN-Pytorch-master\dualrnn_test_wav.py", line 69, in main
separation.inference(args.save_path)
File "D:\model\Dual-Path-RNN-Pytorch-master\Dual-Path-RNN-Pytorch-master\dualrnn_test_wav.py", line 50, in inference
write_wav(filename, s, 16000)
File "D:\model\Dual-Path-RNN-Pytorch-master\Dual-Path-RNN-Pytorch-master\data_loader\AudioReader.py", line 37, in write_wav
torchaudio.save(fname, src, sample_rate)
File "C:\Users\dell\AppData\Local\conda\conda\envs\d2l\lib\site-packages\torchaudio_backend\utils.py", line 288, in save
return backend.save(uri, src, sample_rate, channels_first, format, encoding, bits_per_sample, buffer_size)
File "C:\Users\dell\AppData\Local\conda\conda\envs\d2l\lib\site-packages\torchaudio_backend\soundfile.py", line 39, in save
soundfile_backend.save(
File "C:\Users\dell\AppData\Local\conda\conda\envs\d2l\lib\site-packages\torchaudio_backend\soundfile_backend.py", line 427, in save
raise ValueError(f"Expected 2D Tensor, got {src.ndim}D.")
ValueError: Expected 2D Tensor, got 1D.
The text was updated successfully, but these errors were encountered:
作者你好,我在加载音频时,读入的src参数维数不是二维,此问题在加载不同音频时时有时无,请问作者遇到过类似的问题吗,是如何解决的呢?谢谢
Traceback (most recent call last):
File "D:\model\Dual-Path-RNN-Pytorch-master\Dual-Path-RNN-Pytorch-master\dualrnn_test_wav.py", line 73, in
main()
File "D:\model\Dual-Path-RNN-Pytorch-master\Dual-Path-RNN-Pytorch-master\dualrnn_test_wav.py", line 69, in main
separation.inference(args.save_path)
File "D:\model\Dual-Path-RNN-Pytorch-master\Dual-Path-RNN-Pytorch-master\dualrnn_test_wav.py", line 50, in inference
write_wav(filename, s, 16000)
File "D:\model\Dual-Path-RNN-Pytorch-master\Dual-Path-RNN-Pytorch-master\data_loader\AudioReader.py", line 37, in write_wav
torchaudio.save(fname, src, sample_rate)
File "C:\Users\dell\AppData\Local\conda\conda\envs\d2l\lib\site-packages\torchaudio_backend\utils.py", line 288, in save
return backend.save(uri, src, sample_rate, channels_first, format, encoding, bits_per_sample, buffer_size)
File "C:\Users\dell\AppData\Local\conda\conda\envs\d2l\lib\site-packages\torchaudio_backend\soundfile.py", line 39, in save
soundfile_backend.save(
File "C:\Users\dell\AppData\Local\conda\conda\envs\d2l\lib\site-packages\torchaudio_backend\soundfile_backend.py", line 427, in save
raise ValueError(f"Expected 2D Tensor, got {src.ndim}D.")
ValueError: Expected 2D Tensor, got 1D.
The text was updated successfully, but these errors were encountered: