-
Notifications
You must be signed in to change notification settings - Fork 145
/
Copy pathcrossvit_15_ascend.yaml
65 lines (58 loc) · 1016 Bytes
/
crossvit_15_ascend.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
# system
mode: 0
distribute: True
num_parallel_workers: 8
val_while_train: True
# dataset
dataset: 'imagenet'
data_dir: '/path/to/imagenet'
shuffle: True
dataset_download: False
batch_size: 320
drop_remainder: True
# augmentation
image_resize: 224
scale: [ 0.08, 1.0 ]
ratio: [ 0.75, 1.333 ]
hflip: 0.5
vflip: 0.
interpolation: 'bicubic'
auto_augment: randaug-m9-mstd0.5-inc1
re_prob: 0.25
mixup: 0.8
cutmix: 1.0
color_jitter: 0.4
crop_pct: 0.935
ema: True
# model
model: 'crossvit_15'
num_classes: 1000
pretrained: False
ckpt_path: ''
keep_checkpoint_max: 30
ckpt_save_dir: './ckpt'
epoch_size: 600
dataset_sink_mode: True
amp_level: 'O3'
val_amp_level: 'O3'
drop_path_rate: 0.1
# loss
loss: 'CE'
label_smoothing: 0.1
# lr scheduler
scheduler: 'warmup_cosine_decay'
lr: 0.0009
min_lr: 0.00001
warmup_epochs: 30
decay_epochs: 270
decay_rate: 0.1
num_cycles: 2
cycle_decay: 1
# optimizer
opt: 'adamw'
weight_decay: 0.05
loss_scale: 512
use_nesterov: False
eps: 1e-8
# Scheduler parameters
lr_epoch_stair: True