jzi040941 / PercepNet

Unofficial implementation of PercepNet: A Perceptually-Motivated Approach for Low-Complexity, Real-Time Enhancement of Fullband Speech
BSD 3-Clause "New" or "Revised" License
325 stars 91 forks source link

Reading file error in train() #6

Closed sTarAnna closed 3 years ago

sTarAnna commented 3 years ago

On Windows platform. In denoise.cpp, train() f1 = fopen(argv[1], "r"); f2 = fopen(argv[2], "r"); is used to read noise and speech file (pcm or raw). But the mode should be set to 'rb'.

f1 = fopen(argv[1], "rb"); f2 = fopen(argv[2], "rb");

jzi040941 commented 3 years ago

Nice, I didn't know that this is not working in Windows I fixed it!