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

SampleAVAFrames bug #306

Closed
irvingzhang0512 opened this issue Nov 1, 2020 · 1 comment
Closed

SampleAVAFrames bug #306

irvingzhang0512 opened this issue Nov 1, 2020 · 1 comment
Assignees

Comments

@irvingzhang0512
Copy link
Contributor

irvingzhang0512 commented Nov 1, 2020

Thank you very much for your work!
I'm looking forward to your ava models in Nov.

SampleAVAFrames works fine if clip_len=32, frame_interval=2, like in the unittest.
But when clip_len=8, frame_interval=8, this function only returns 2 index, but 8 index are expected.

My guess is that length is not calculated in a proper way.

        length = len(
            range(-self.frame_interval,
                  -(ori_clip_len + 1) // self.frame_interval, # should divide by 2 instead of self.frame_interval
                  -self.frame_interval))

        length = len(
            range(0, (ori_clip_len + 1) // self.frame_interval, # should divide by 2 instead of self.frame_interval
                  self.frame_interval))
@kennymckormick
Copy link
Member

Yes, -self.frame_interval should not be the stepsize and there is a bug in the current code. Actually, I think the current implementation of get_clips is too lengthy. I provide a new implementation in PR #317 (under review now). You can check that for reference.

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

No branches or pull requests

2 participants