forked from jfzhang95/pytorch-video-recognition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypath.py
25 lines (20 loc) · 749 Bytes
/
mypath.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
25
class Path(object):
@staticmethod
def db_dir(database):
if database == 'ucf101':
# folder that contains class labels
root_dir = '/Path/to/UCF-101'
# Save preprocess data into output_dir
output_dir = '/path/to/VAR/ucf101'
return root_dir, output_dir
elif database == 'hmdb51':
# folder that contains class labels
root_dir = '/Path/to/hmdb-51'
output_dir = '/path/to/VAR/hmdb51'
return root_dir, output_dir
else:
print('Database {} not available.'.format(database))
raise NotImplementedError
@staticmethod
def model_dir():
return '/path/to/Models/c3d-pretrained.pth'