yjxiong/tsn-pytorch

Why subtract 'new_length' to calculate 'average_duration' ?

Gateway2745 opened this issue · 0 comments

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