-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigs.py
66 lines (60 loc) · 2.16 KB
/
configs.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import os
CLUSTER = os.environ.get('CLUSTER')
if not CLUSTER:
CHECKPOINTS = {
'VIT_BASE_IN21K': 'jx_vit_base_patch16_224_in21k-e5005f0a.pth',
}
DATASETS = {
'cifar10': 'path/small_datasets',
'cifar100': 'path/small_datasets',
'food101': 'path/small_datasets',
'svhn': 'path/small_datasets',
'flowers102': 'path/small_datasets',
'fgvc_aircraft': 'path/small_datasets',
'stanford_cars': 'path/small_datasets',
'dtd': 'path/small_datasets',
'oxford_iiit_pet': 'path/small_datasets',
'vtab': 'path/vtab-1k',
'K400': dict(
TRAIN_ROOT='path/K400',
VAL_ROOT='path/K400',
TRAIN_LIST='path/K400/k400_train.txt',
VAL_LIST='path/K400/k400_val.txt',
NUM_CLASSES=400),
'HMDB51': dict(
TRAIN_ROOT='path/HMDB51',
VAL_ROOT='path/HMDB51',
TRAIN_LIST='path/HMDB51/hmdb51_split1_train.txt' ,
VAL_LIST='path/HMDB51/hmdb51_split1_test.txt',
NUM_CLASSES=51,
),
}
else: # for debug
CHECKPOINTS = {
'VIT_BASE_IN21K': '/mnt/workspace/workgroup/zhaowangbo.zwb/research/dynamic_PEFT_ECCV2024/jx_vit_base_patch16_224_in21k-e5005f0a.pth',
}
DATASETS = {
'cifar10': 'path/small_datasets',
'cifar100': 'path/small_datasets',
'food101': 'path/small_datasets',
'svhn': 'path/small_datasets',
'flowers102': 'path/small_datasets',
'fgvc_aircraft': 'path/small_datasets',
'stanford_cars': 'path/small_datasets',
'dtd': 'path/small_datasets',
'oxford_iiit_pet': 'path/small_datasets',
'vtab': 'path/vtab-1k',
'K400': dict(
TRAIN_ROOT='path/K400',
VAL_ROOT='path/K400',
TRAIN_LIST='path/K400/k400_train.txt',
VAL_LIST='path/K400/k400_val.txt',
NUM_CLASSES=400),
'HMDB51': dict(
TRAIN_ROOT='path/HMDB51',
VAL_ROOT='path/HMDB51',
TRAIN_LIST='path/HMDB51/hmdb51_split1_train.txt' ,
VAL_LIST='path/HMDB51/hmdb51_split1_test.txt',
NUM_CLASSES=51,
),
}