ibab / tensorflow-wavenet

A TensorFlow implementation of DeepMind's WaveNet paper
MIT License
5.42k stars 1.29k forks source link

Training Audioread.NoBackendError #340

Open ver4rs opened 6 years ago

ver4rs commented 6 years ago

I use Anaconda, on Windows 7 with conda activate. Tensorflow 1.5 librosa 0.5 2 GPU GTX 1060 6GB

Training network with train.py --data_dir=corpus --num_steps=16000 after few second i got this error

Error: Trying to restore saved checkpoints from ./logdir\train\2018-04-14T11-37-47 ... No checkpoint found. files length: 11760 Exception in thread Thread-2: Traceback (most recent call last): File "D:\Anaconda\envs\tenso\lib\threading.py", line 916, in _bootstrap_inner self.run() File "D:\Anaconda\envs\tenso\lib\threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "D:\wavenet\tensorflow-wavenet-master\wavenet\audio_reader.py", line 158, in thread_main for audio, filename, category_id in iterator: File "D:\wavenet\tensorflow-wavenet-master\wavenet\audio_reader.py", line 59, in load_genericaudio audio, = librosa.load(filename, sr=sample_rate, mono=True) File "D:\Anaconda\envs\tenso\lib\site-packages\librosa\core\audio.py", line 11 2, in load with audioread.audio_open(os.path.realpath(path)) as input_file: File "D:\Anaconda\envs\tenso\lib\site-packages\audioread__init__.py", line 11 6, in audio_open raise NoBackendError() audioread.NoBackendError�

ShichengChen commented 6 years ago

I have similar problem and I use the following code. import soundfile as sf audio0, samplerate = sf.read(filename[0], dtype='float32') audio0 = librosa.resample(audio0.T, samplerate, sample_rate)

Abhishek-jagnani commented 5 years ago

I have similar problem and I use the following code. import soundfile as sf audio0, samplerate = sf.read(filename[0], dtype='float32') audio0 = librosa.resample(audio0.T, samplerate, sample_rate)

Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 754, in run self.target(*self.args, **self.kwargs) File "/home/abhishek/tensorflow-wavenet/wavenet/audio_reader.py", line 158, in thread_main for audio, filename, category_id in iterator: File "/home/abhishek/tensorflow-wavenet/wavenet/audio_reader.py", line 59, in load_genericaudio audio, = librosa.load(filename, sr=sample_rate, mono=True) File "/home/abhishek/environments/ibab_cpu2/local/lib/python2.7/site-packages/librosa/core/audio.py", line 119, in load with audioread.audio_open(os.path.realpath(path)) as input_file: File "/home/abhishek/environments/ibab_cpu2/local/lib/python2.7/site-packages/audioread/init__.py", line 116, in audio_open raise NoBackendError() NoBackendError

I'am getting this error. Can you tell where you have used this code

Joll123 commented 2 years ago

Have you solved this problem? then use soundfile library, get following error? RuntimeError: Error opening '/VCTK-Corpus/wav48/p304/p304_393.wav': Format not recognised.