buriburisuri / speech-to-text-wavenet

Speech-to-Text-WaveNet : End-to-end sentence level English speech recognition based on DeepMind's WaveNet and tensorflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alueError: zero-size array to reduction operation maximum which has no identity while training or running pretrained model

opened this issue Β· comments

While trying to run the pre-trained model or training the model I am receiving the below error πŸ‘

python train.py
Traceback (most recent call last):
File "train.py", line 26, in
data = VCTK(batch_size=batch_size)
File "/home//tensor/speech-to-text-wavenet-master/data.py", line 30, in init
labels, wave_files = self._load_corpus(data_path)
File "/home/
/tensor/speech-to-text-wavenet-master/data.py", line 97, in _load_corpus
self.max_len = np.max([len(s) for s in sents])
File "/home/***/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 2252, in amax
out=out, kwargs)
File "/home/
/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py", line 26, in _amax
return umr_maximum(a, axis, None, out, keepdims)
ValueError: zero-size array to reduction operation maximum which has no identity

Can you please provide your inputs.
Python 3.6.1 :: Anaconda custom (64-bit)