Open ckgithub2019 opened 1 month ago
I'm using GPU ann Linux, so do I must install it or not?
No, you should not install it.
I tested with a very simple code snippet, but it didn't work
It's a known problem, see #635
I'm using GPU ann Linux, so do I must install it or not?
No, you should not install it.
I tested with a very simple code snippet, but it didn't work
It's a known problem, see #635
it works, thanks. so that means all of "unsqueeze(0)" should be removed by default? the example is wrong or there are some other usages about "unsqueeze(0)"?
From example: torchaudio.save(f"output_sentencelevel{i}.wav", torch.from_numpy(wavs[i]).unsqueeze(0), 24000) torchaudio.save(f"output_wordlevel{i}.wav", torch.from_numpy(wavs[0]).unsqueeze(0), 24000)
it works, thanks. so that means all of "unsqueeze(0)" should be removed by default?
No. In fact, some version (usually newer versions) of torchaudio
will panic if unsqueeze(0)
does not exist.
Tried with sound file instead, which works
import soundfile
soundfile.write(output_filename, wavs[0], 24000)
Tried with sound file instead, which works
import soundfile soundfile.write(output_filename, wavs[0], 24000)
Yes. There're many alternatives to save audio.
1. this issue happens every time. but the README said "Optional: Install TransformerEngine if using NVIDIA GPU (Linux only), The adaptation of TransformerEngine is currently under development and CANNOT run properly now", I'm using GPU ann Linux, so do I must install it or not? confusing:
2. I tested with a very simple code snippet, but it didn't work, and runtime error here:
The tested code here: