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

validate_rnn.py not continuing #84

Closed moonikwe closed 6 years ago

moonikwe commented 6 years ago

When I ran validate_rnn.py, it stops at showing validate_rnn.py:34: UserWarning: The semantics of the Keras 2 argument steps_per_epoch is not the same as the Keras 1 argument samples_per_epoch. steps_per_epoch is the number of batches to draw from the generator at each epoch. Basically steps_per_epoch = samples_per_epoch/batch_size. Similarly nb_val_samples->validation_steps and val_samples->steps arguments have changed. Update your method calls accordingly. val_samples=8) validate_rnn.py:34: UserWarning: Update your evaluate_generator call to the Keras 2 API: evaluate_generator(steps=8, generator=<data.thre...) val_samples=8) Creating test generator with 260 samples. i will yield now Traceback (most recent call last): File "validate_rnn.py", line 54, in main() File "validate_rnn.py", line 51, in main image_shape=image_shape, class_limit=None) File "validate_rnn.py", line 34, in validate val_samples=8) File "/Users/faienix/virtualenvs/pdsc/lib/python2.7/site-packages/keras/legacy/interfaces.py", line 91, in wrapper return func(*args, *kwargs) File "/Users/faienix/virtualenvs/pdsc/lib/python2.7/site-packages/keras/models.py", line 1318, in evaluate_generator use_multiprocessing=use_multiprocessing) File "/Users/faienix/virtualenvs/pdsc/lib/python2.7/site-packages/keras/legacy/interfaces.py", line 91, in wrapper return func(args, **kwargs) File "/Users/faienix/virtualenvs/pdsc/lib/python2.7/site-packages/keras/engine/training.py", line 2362, in evaluate_generator generator_output = next(output_generator) File "/Users/faienix/virtualenvs/pdsc/lib/python2.7/site-packages/keras/utils/data_utils.py", line 785, in get raise StopIteration() StopIteration

I fed my own dataset.