forked from mindspore-lab/mindcv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpvt_v2_b0_ascend.yaml
58 lines (52 loc) · 934 Bytes
/
pvt_v2_b0_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
# 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: 128
drop_remainder: True
# augmentation
image_resize: 224
scale: [0.08, 1.0]
ratio: [0.75, 1.333]
re_value: "random"
hflip: 0.5
interpolation: "bicubic"
auto_augment: randaug-m9-mstd0.5-inc1
re_prob: 0.25
crop_pct: 0.9
mixup: 0.8
cutmix: 1.0
# model
model: "pvt_v2_b0"
num_classes: 1000
pretrained: False
ckpt_path: ""
keep_checkpoint_max: 10
ckpt_save_dir: "./ckpt"
epoch_size: 500
drop_path_rate: 0.1
dataset_sink_mode: True
amp_level: "O2"
# loss
loss: "ce"
label_smoothing: 0.1
# lr scheduler
scheduler: "cosine_decay"
lr: 0.001
min_lr: 0.00001
lr_epoch_stair: True
decay_epochs: 490
warmup_epochs: 10
# optimizer
opt: "adamw"
momentum: 0.9
weight_decay: 0.05
loss_scale_type: "dynamic"
drop_overflow_update: True
use_nesterov: False