forked from clovaai/rebias
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkinetics.py
24 lines (20 loc) · 855 Bytes
/
kinetics.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""ReBias
Copyright (c) 2020-present NAVER Corp.
MIT license
Dataset for the action recognition benchmarks.
We use the official implemenation of SlowFast by Facebook research.
https://github.com/facebookresearch/SlowFast
"""
import torch
from datasets.kinetics_tools.loader import construct_loader
def get_kinetics_dataloader(root,
split='train',
logger=None,
anno_file=None,
dataset_name='kinetics50',
batch_size=16):
return construct_loader(root, split, logger,
anno_file=anno_file,
dataset_name=dataset_name,
num_gpus=torch.cuda.device_count(),
batch_size=batch_size)