def get_path(row, params, infer=False):
    row['old_image_path'] = (params['root_dir'] / f'train_images/video_{row.video_id}/{row.video_frame}.jpg')
    if infer:
        row['image_path'] = row['old_image_path']
    else:
        row['image_path'] = (params['image_dir'] / f'video_{row.video_id}_{row.video_frame}.jpg')
    row['label_path'] = (params['label_dir'] / f'video_{row.video_id}_{row.video_frame}.txt')
    return row
def get_path(row, params, infer=False):
    row['old_image_path'] = (params['root_dir'] / f'train_images/video_{row.video_id}/{row.video_frame}.jpg')
    if infer:
        row['image_path'] = row['old_image_path']
    else:
        row['image_path'] = (params['image_dir'] / f'video_{row.video_id}_{row.video_frame}.jpg')
    row['label_path'] = (params['label_dir'] / f'video_{row.video_id}_{row.video_frame}.txt')
    return row