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

set rm.model.fit_generator(shuffle=false) #61

Closed giovanniMen closed 6 years ago

giovanniMen commented 6 years ago

First of all thanks for your great work!

When you use lstm in method 4 and you load batch with the fit_generator, if shuffle is True as default setting (see https://keras.io/models/sequential/) the batch will be mixed. Is it correct?

I have this problem in my code, also can't set to false because it raise a TypeError: fit_generator() got an unexpected keyword argument 'shuffle'

I hope to understand this couse it's a bit confusing to me.

harvitronix commented 6 years ago

It shuffles the samples, but not the order of the sequence itself. Does that clear things up for you?