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

Why subtract 'new_length' to calculate 'average_duration' ? #131

Open
Gateway2745 opened this issue Oct 22, 2021 · 0 comments
Open

Why subtract 'new_length' to calculate 'average_duration' ? #131

Gateway2745 opened this issue Oct 22, 2021 · 0 comments

Comments

@Gateway2745
Copy link

Hi. Why do you subtract 'new_length' from 'num_frames' and then divide by 'num_segments' to calculate 'average_duration' ? Can we not directly divide 'num_frames' by 'num_segments' to get the 'average_duration' ? Thanks!

average_duration = (record.num_frames - self.new_length + 1) // self.num_segments

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

1 participant