-
Notifications
You must be signed in to change notification settings - Fork 63
/
byol_r50_IM.yaml
105 lines (97 loc) · 2.1 KB
/
byol_r50_IM.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
epochs: 300
use_byol_iters: True
total_images: 1281167
global_batch_size: 4096
output_dir: output_dir
seed: 0
device: gpu
model:
name: BYOL
backbone:
name: ResNet
depth: 50
with_pool: True
zero_init_residual: False
neck:
name: NonLinearNeckV2
in_channels: 2048
hid_channels: 4096
out_channels: 256
with_avg_pool: False
predictor:
name: NonLinearNeckV2
in_channels: 256
hid_channels: 4096
out_channels: 256
with_avg_pool: False
head:
name: L2Head
target_decay_method: cosine # cosine
target_decay_rate: 0.99
align_init_network: False
use_synch_bn: True
num_classes: 1000
embedding_dim: 2048
dataloader:
train:
loader:
num_workers: 8
use_shared_memory: True
sampler:
batch_size: 128
shuffle: True
drop_last: True
dataset:
name: ImageNet
dataroot: data/ILSVRC2012/train
return_label: True
return_two_sample: True
transforms:
- name: RandomResizedCrop
size: 224
scale: [0.08, 1.]
interpolation: bicubic
- name: ByolNormalize
- name: Clip
view_trans1:
- name: ByolRandomHorizontalFlip
- name: RandomApply
transforms:
- name: ByolColorJitter
brightness: 0.4
contrast: 0.4
saturation: 0.2
hue: 0.1
p: 0.8
- name: ByolRandomGrayscale
p: 0.2
- name: Clip
view_trans2:
- name: ByolRandomHorizontalFlip
- name: RandomApply
transforms:
- name: ByolColorJitter
brightness: 0.4
contrast: 0.4
saturation: 0.2
hue: 0.1
p: 0.8
- name: ByolRandomGrayscale
p: 0.2
- name: Clip
lr_scheduler:
name: CosineWarmup
learning_rate: 4.8
T_max: 93835
warmup_steps: 3127
start_lr: 0.0001
end_lr: 4.8
optimizer:
name: LarsMomentumOptimizer
momentum: 0.9
lars_weight_decay: 1.0e-6
epsilon: 1e-9
exclude_from_weight_decay: [".b_0","batch_norm"]
log_config:
name: LogHook
interval: 10