Skip to content

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

@Gateway2745

Description

@Gateway2745

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions