OmniShotCut / datasets /__init__.py
HikariDawn's picture
feat: initial push
796e051
raw
history blame contribute delete
451 Bytes
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import torch.utils.data
import torchvision
from .dataloader import build as build_cut_anything
def build_dataset(set_type, args):
# set_type refers to using Training Dataset or Testing Dataset
if args.dataset_file == 'shot_boundary_detection':
return build_cut_anything(args, set_type)
raise ValueError(f'dataset {args.dataset_file} not supported')