@@ -0,0 +1,933 @@
+#!/usr/bin/env python%0A%0Aimport sys%0Aimport os.path as osp%0Athis_dir = osp.dirname(__file__)%0Asys.path.insert(0, osp.join(this_dir, '../../external/'))%0Afrom vdetlib.utils.protocol import proto_load, proto_dump%0Aimport argparse%0Aimport numpy as np%0Aimport scipy.ndimage%0A%0A%0Aif __name__ == '__main__':%0A    parser = argparse.ArgumentParser()%0A    parser.add_argument('gt_file')%0A    parser.add_argument('save_file')%0A    parser.add_argument('--window', type=int, default=11)%0A    args = parser.parse_args()%0A%0A    annot_proto = proto_load(args.gt_file)%0A    for annot in annot_proto%5B'annotations'%5D:%0A        boxes = np.asarray(%5Bbox%5B'bbox'%5D for box in annot%5B'track'%5D%5D, dtype=np.float)%0A        smoothed = scipy.ndimage.filters.gaussian_filter1d(boxes, args.window / 6.,%0A            axis=0, mode='nearest')%0A        for box, pred_bbox in zip(annot%5B'track'%5D, smoothed):%0A            box%5B'bbox'%5D = pred_bbox.tolist()%0A%0A    proto_dump(annot_proto, args.save_file)

Add a script to smooth gt tracks.