-
Notifications
You must be signed in to change notification settings - Fork 1
/
nomenclature.py
56 lines (42 loc) · 1.5 KB
/
nomenclature.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
import yaml
from datasets import UWGDense, CASIADataset, FVGDataset, CASIAGenderDataset, FVGGenderDataset, UWGOld, PAIDataset, OUISIRDataset, GREWDataset
from models import GaitFormer, STGCNModel
from particular_model_trainers import WeakMultiTaskTrainer, WildGaitTrainer, SimCLRTrainer, AppearanceTrainer, RecognitionFineTunerTrainer, GenderFineTunerTrainer, GenderTrainer
from evaluators import CASIARecognitionEvaluator, FVGGenderEvaluator, FVGRecognitionEvaluator, CASIAGenderEvaluator, PAIEvaluator, PAIEvaluatorFine
import torch
device = torch.device('cuda')
DATASETS = {
'uwg-dense': UWGDense,
'uwg-old': UWGOld,
'ouisir': OUISIRDataset,
'grew': GREWDataset,
'pai': PAIDataset,
'casia': CASIADataset,
'fvg': FVGDataset,
'casia-gender': CASIAGenderDataset,
'fvg-gender': FVGGenderDataset,
}
EVALUATORS = {
'casia-recognition': CASIARecognitionEvaluator,
'casia-gender': CASIAGenderEvaluator,
'fvg-recognition': FVGRecognitionEvaluator,
'fvg-gender': FVGGenderEvaluator,
'pai': PAIEvaluator,
'pai-fine': PAIEvaluatorFine,
}
TRAINER = {
'weak-multi-task': WeakMultiTaskTrainer,
'wildgait': WildGaitTrainer,
'simclr': SimCLRTrainer,
'appearance': AppearanceTrainer,
'gender': GenderTrainer,
'recognition-fine-tuner': RecognitionFineTunerTrainer,
'gender-fine-tuner': GenderFineTunerTrainer,
}
MODELS = {
'stgcn': STGCNModel,
'gaitformer': GaitFormer,
}
SCHEDULERS = {
'cyclic': torch.optim.lr_scheduler.CyclicLR
}