Skip to content
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

Update slidding to take in count time_sequence param #56

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Fab16BSB
Copy link
Contributor

Im not an python OOP expert and i am some tired but i think i have correct the bug reported
[SlidingFrameGenerator] Sequence_time not working #32

I am new on github an i don't know the procedure to propose a bug solution

It think this solution need to be test an other time and is not the best solution
I had a ternary to send to the _get_frames method the sequence_time or 0 if is none

I had some correct to on the generator file to add this optionnal parameter and calcul the new step using all video is the param is none or using juste the fixed sequence

+Add an assert to check nbframe is possible in sequence
+ Add parameter to  self.sequence_time to self._get_frames() method

-> That change are complement to generator change
Add optional param seq_time to _get_frames() method to use it only on sliding
Add line to get fps
Add ternary to calcul frame_step with end video or time_sequence
@Fab16BSB
Copy link
Contributor Author

I test generator still working with image resuming the complete video
And i try sliding with no sequence and sequence and i see diferents image so i think my correction is working. (no shuffle to compare)
I try with shuffle to
But i advises you to try it before merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant