microsoft / VideoX

VideoX: a collection of video cross-modal models
Other
978 stars 161 forks source link

fix metric error when drop_last isTrue in dataloader #48

Closed zmzhang2000 closed 2 years ago

zmzhang2000 commented 2 years ago

When drop_last is True in the DataLoader (train_loader), the lengths of annotations and sorted_segments in run.py are different. Then the predicted time and ground truth time are not matching, and the evalutation results (tIoU) are totally wrong.

The error can be fixed by selecting these annotations whose index are in the sorted_segments_dict.