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
Running on Debian testing/3090 Ti/128 GB RAM. Hitting the same problem as with the original code:
File "/mnt/nvme2Tb/AI/soft/YuEGP/inference/gradio_server.py", line 522, in generate_song
save_audio(decodec_rlt, save_path, 16000)
File "/mnt/nvme2Tb/AI/soft/YuEGP/inference/gradio_server.py", line 506, in save_audio
torchaudio.save(str(path), wav, sample_rate=sample_rate, encoding='PCM_S', bits_per_sample=16)
File "/mnt/2Tb/conda/yue/lib/python3.11/site-packages/torchaudio/_backend/utils.py", line 313, in save
return backend.save(
^^^^^^^^^^^^^
File "/mnt/2Tb/conda/yue/lib/python3.11/site-packages/torchaudio/_backend/sox.py", line 72, in save
sox_ext.save_audio_file(
File "/mnt/2Tb/conda/yue/lib/python3.11/site-packages/torch/_ops.py", line 1116, in __call__
return self._op(*args, **(kwargs or {}))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: mp3 does not support `encoding` option.
It happens after the entire generation so it's pretty frustrating because it's impossible to resume it seems. The fix is trivial, change the line to torchaudio.save(str(path), wav, sample_rate=sample_rate) (bits_per_sample is also not supported) but I wonder why it happens in the first place. I use a Conda environment with Python 3.11. Some relevant packages from pip:
Running on Debian testing/3090 Ti/128 GB RAM. Hitting the same problem as with the original code:
It happens after the entire generation so it's pretty frustrating because it's impossible to resume it seems. The fix is trivial, change the line to
torchaudio.save(str(path), wav, sample_rate=sample_rate)
(bits_per_sample
is also not supported) but I wonder why it happens in the first place. I use a Conda environment with Python 3.11. Some relevant packages from pip:Any ideas?
The text was updated successfully, but these errors were encountered: