def train_aug(img_list, box_list, cfg):
    (img_list, box_list) = resize(img_list, box_list, min_size=cfg.min_size_train, max_size=cfg.max_size_train)
    (img_list, box_list) = random_flip(img_list, box_list, h_prob=0.5)
    img_list = to_tensor(img_list)
    img_list = normalize(img_list)
    return (img_list, box_list)
def train_aug(img_list, box_list, cfg):
    (img_list, box_list) = resize(img_list, box_list, min_size=cfg.min_size_train, max_size=cfg.max_size_train)
    (img_list, box_list) = random_flip(img_list, box_list, h_prob=0.5)
    img_list = to_tensor(img_list)
    img_list = normalize(img_list)
    return (img_list, box_list)