Spaces:
Running on Zero
Running on Zero
File size: 451 Bytes
796e051 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # 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')
|