-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SlidingFrameGenerator] Sequence_time not working #32
Comments
Hello, Sorry but I don't see the problem in your example notebook, there are 5 frames in the sequence as expected. And the batch size is 5 as you defined it. Can you explain where I miss the problem ? |
Hey there! Thanks for the fast reply! Is that not how it supposed to work? :) |
OK, the example with basketball players seems to be different that the last one... I see there the same sequences as you mention. And no, it's not exepected to produce this, you should have a sliding window as you say it. That's weird, each test I did hasn't got that problem - so I will make some tests and check what happens. Thanks a lot for that issue report ;) |
Ok that post confirm why i always got overfitting when i try to train with sliding generator to improve performance it's because the generator always take the same image to make his sequence. If i have time i will try to look the code. @TomSeestern if you need try the video generator i will use it to train en x images extracted from videos and next i predict continues videos sequence by sequence with successive image. The result are not the best but it work fine. |
I am not a python OOP expert. I look the code and i don't understand why but the number of frame are good with shuffle are without on line 92 "frames": np.arange(i, i + stop_at)[::step][: self.nbframe]. So i supose that the problem take space in the _get_frames method (generator.py file) because the calcul of step line 403 don't use the time_sequence define by the user. But not sure ! |
I propose an (not optimized) solution and i think it is correct but not sure. |
System Information
python -version
): Python 3.6.9pip freeze | grep keras-video-generators
): keras-video-generators==1.0.14Describe the bug
Sequence_time always defaults to the Full Video Length.
See Colab Notebook for example code:
Colab Notebook
The text was updated successfully, but these errors were encountered: