18/3521 [..............................] - ETA: 5:33:17 - loss: 9.4843 - acc: 0.0017
Traceback (most recent call last):
File "train.py", line 270, in
main()
File "train.py", line 207, in main
verbose=1)
File "/home/gongke/anaconda3/envs/py27/lib/python2.7/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
return func(*args, *kwargs)
File "/home/gongke/anaconda3/envs/py27/lib/python2.7/site-packages/keras/engine/training.py", line 1418, in fit_generator
initial_epoch=initial_epoch)
File "/home/gongke/anaconda3/envs/py27/lib/python2.7/site-packages/keras/engine/training_generator.py", line 181, in fit_generator
generator_output = next(output_generator)
File "/home/gongke/anaconda3/envs/py27/lib/python2.7/site-packages/keras/utils/data_utils.py", line 601, in get
six.reraise(sys.exc_info())
File "/home/gongke/anaconda3/envs/py27/lib/python2.7/site-packages/keras/utils/data_utils.py", line 595, in get
inputs = self.queue.get(block=True).get()
File "/home/gongke/anaconda3/envs/py27/lib/python2.7/multiprocessing/pool.py", line 572, in get
raise self._value
ValueError: Range cannot be empty (low >= high) unless no samples are taken
I got the error while training the model on my data, have you ever met?
You probably have a audio sample which is having duration less than 2.5 seconds ..This part of the code if time is less than spec length(default value is 250) you get a negative value which causes the above error. Hope that helps.
18/3521 [..............................] - ETA: 5:33:17 - loss: 9.4843 - acc: 0.0017 Traceback (most recent call last): File "train.py", line 270, in
main()
File "train.py", line 207, in main
verbose=1)
File "/home/gongke/anaconda3/envs/py27/lib/python2.7/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
return func(*args, *kwargs)
File "/home/gongke/anaconda3/envs/py27/lib/python2.7/site-packages/keras/engine/training.py", line 1418, in fit_generator
initial_epoch=initial_epoch)
File "/home/gongke/anaconda3/envs/py27/lib/python2.7/site-packages/keras/engine/training_generator.py", line 181, in fit_generator
generator_output = next(output_generator)
File "/home/gongke/anaconda3/envs/py27/lib/python2.7/site-packages/keras/utils/data_utils.py", line 601, in get
six.reraise(sys.exc_info())
File "/home/gongke/anaconda3/envs/py27/lib/python2.7/site-packages/keras/utils/data_utils.py", line 595, in get
inputs = self.queue.get(block=True).get()
File "/home/gongke/anaconda3/envs/py27/lib/python2.7/multiprocessing/pool.py", line 572, in get
raise self._value
ValueError: Range cannot be empty (low >= high) unless no samples are taken
I got the error while training the model on my data, have you ever met?