tsn-pytorch
tsn-pytorch copied to clipboard
Why subtract 'new_length' to calculate 'average_duration' ?
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!
https://github.com/yjxiong/tsn-pytorch/blob/2f0468e049760530b4995bf72c8a512623929c39/dataset.py#L66