harvitronix / five-video-classification-methods

Code that accompanies my blog post outlining five video classification methods in Keras and TensorFlow
https://medium.com/@harvitronix/five-video-classification-methods-implemented-in-keras-and-tensorflow-99cad29cc0b5
MIT License
1.17k stars 479 forks source link

Cant seem to run train.py! #65

Closed AdarshMJ closed 6 years ago

AdarshMJ commented 6 years ago

I keep getting this error! Not able to figure out. please help! Exception in thread Thread-2: Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run self.target(*self.args, **self.__kwargs) File "/usr/local/lib/python2.7/site-packages/keras/utils/data_utils.py", line 568, in data_generator_task generator_output = next(self._generator) TypeError: instance has no next() method

Traceback (most recent call last): File "train.py", line 110, in main() File "train.py", line 107, in main load_to_memory=load_to_memory, batch_size=batch_size, nb_epoch=nb_epoch) File "train.py", line 81, in train workers=1) File "/usr/local/lib/python2.7/site-packages/keras/legacy/interfaces.py", line 87, in wrapper return func(*args, *kwargs) File "/usr/local/lib/python2.7/site-packages/keras/models.py", line 1121, in fit_generator initial_epoch=initial_epoch) File "/usr/local/lib/python2.7/site-packages/keras/legacy/interfaces.py", line 87, in wrapper return func(args, **kwargs) File "/usr/local/lib/python2.7/site-packages/keras/engine/training.py", line 2011, in fit_generator generator_output = next(output_generator) StopIteration

harvitronix commented 6 years ago

@AdarshMJ Take a look at this thread https://github.com/harvitronix/five-video-classification-methods/issues/55

lijiashu commented 5 years ago

do you slove the problem ? I have the trouble too!