-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathbase_config_duke_vit.yaml
67 lines (61 loc) · 1.22 KB
/
base_config_duke_vit.yaml
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
66
env:
results_dir: './results/duke/vit_small_patch16_224/'
use_gpu: True
data_parallel: True
sync_bn: False
lightreid:
light_model: False
light_feat: False
light_search: False
data:
sources: ['dukemtmcreid']
targets: ['market1501', 'dukemtmcreid']
img_size: [224, 224] # height, width
transforms_train: ['randomflip', 'padcrop', 'rea']
transforms_test: []
mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225]
sampler: 'pk'
p: 16
k: 4
model:
backbone:
name: 'vit_small_patch16_224'
pretrained: True
pooling:
name: 'avgpool'
head:
name: 'bnhead'
classifier:
name: 'linear'
criterion:
loss1:
display_name: 'classification_loss'
criterion:
name: 'cross_entropy_label_smooth'
inputs:
inputs: 'logits'
targets: 'pids'
weight: 1.0
loss2:
display_name: 'triplet_loss'
criterion:
name: 'tripletloss'
margin: 0.35
metric: 'euclidean'
inputs:
emb: 'feats'
label: 'pids'
weight: 1.0
optim:
optimizer:
name: 'adam'
lr: 3.5e-4
weight_decay: 5.0e-4
lr_scheduler:
name: 'warmup_multistep'
milestones: [40, 70]
gamma: 0.1
warmup_factor: 0.01
warmup_epochs: 10
max_epochs: 120