I met an oserror that showed error opening
This code is a loop to generate a list of wav files with same name every loop. But the loop stopped at sample 10 (total sample 32) at loop 14, which means the loop works well in the past 13 loops.
Traceback (most recent call last):
File "main.py", line 68, in <module>
a.train(dataloader, cfg.STAGE)
File "/home/guest/trainer.py", line 255, in train
save_RIR_results(real_Rcpu, fake, epoch, self.RIR_dir)
File "/home/guest/utils.py", line 186, in save_RIR_results
r = WaveWriter(real_Rpath, channels=1, samplerate=fs)
File "/home/guest/miniconda3/envs/rir/lib/python3.6/site-packages/wavefile/wavefile.py", line 199, in __init__
filename, _sferrormessage(_lib.sf_error(self._sndfile))))
OSError: Error opening '../output/RIRsample10.wav': System error.
I searched online but no one had the same problem with me. Most of them just wrote the wrong directory. But I pretty sure my directory is correct.
I am really confused about this.
Thank you so much for your help.