facebookresearch / denoiser

Real Time Speech Enhancement in the Waveform Domain (Interspeech 2020)We provide a PyTorch implementation of the paper Real Time Speech Enhancement in the Waveform Domain. In which, we present a causal speech enhancement model working on the raw waveform that runs in real-time on a laptop CPU. The proposed model is based on an encoder-decoder architecture with skip-connections. It is optimized on both time and frequency domains, using multiple loss functions. Empirical evidence shows that it is capable of removing various kinds of background noise including stationary and non-stationary noises, as well as room reverb. Additionally, we suggest a set of data augmentation techniques applied directly on the raw waveform which further improve model performance and its generalization abilities.
Other
1.62k stars 299 forks source link

Using denoiser at all doesn't work at all #151

Open GUUser91 opened 1 year ago

GUUser91 commented 1 year ago

I tried this command and it just ends. No output file is created. I'm using Artix Linux.

python -m denoiser.enhance --dns64 --noisy_dir=/home/user/Downloads/grace1/ --out_dir=/home/user/Downloads/grace2 INFO:denoiser.pretrained:Loading pre-trained real time H=64 model trained on DNS.

markrotnam commented 1 year ago

You'll likely have to add the directory where your wav files are ( in this case /home/user/Downloads/) to Path, I don't use linux but if you're not aware of how to add directories to Path, you can follow this guide https://linuxize.com/post/how-to-add-directory-to-path-in-linux/ .

The program should be able to locate your noisy wav files after this, just add --noisy_dir=/home/user/Downloads/grace1/, it'll still be able to find grace 1 even if you only have /home/user/Downloads/ in Path

Note that you'll have to add it to user variables specifically on windows, adding the directory to system variables doesn't work, so if that's applicable to linux just keep that in mind, hope this helps.

Also, if anyone else is checking for help here, you can find path by searching for "Edit the system environment variables" in the start menu and clicking on the "environment variables..." button in the pop up, should have access to both user and system variables on the page that shows up