-
Notifications
You must be signed in to change notification settings - Fork 4
/
csmae_cesd.yaml
90 lines (78 loc) · 2.11 KB
/
csmae_cesd.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
defaults:
- _self_
- override hydra/hydra_logging: disabled
- override hydra/job_logging: disabled
wandb:
enabled: True
entity: <entity>
project: <project>
# disable hydra outputs
hydra:
output_subdir: null
run:
dir: .
augmentations:
- rrc:
enabled: false
crop_min_scale: 0.08
crop_max_scale: 1.0
horizontal_flip:
prob: 0.5
vertical_flip:
prob: 0.5
crop_size: 120
num_crops: 1
backbone:
name: "vit_base"
kwargs:
patch_size: 15 # patch size for ViT backbone
img_size: 120
in_chans: 12
multi_sensor_encoder_depth: 12 # Depth for Multi-Sensor-Encoder
cross_sensor_encoder_depth: 0 # Depth for Cross-Sensor-Encoder
masking_strategy: 'random' # 'identical' | 'disjoint' | 'random'
global_pool: 'avg' # 'avg' | 'token'
method_kwargs:
decoder_embed_dim: 512
decoder_depth: 8 # Depth for decoder
decoder_num_heads: 16
decoding_strategy: 'specific' # 'common' | 'specific'
reconstruction_strategy: 'disjoint' # 'identical' | 'disjoint'
mask_ratio: 0.5 # % of tokens to be masked out
norm_pix_loss: False # normalize pixel values in MSE loss
apply_umr_loss: True # Uni-Modal-Reconstruction loss
apply_cmr_loss: True # Cross-Modal-Reconstruction loss
apply_mde_loss: False # MDE loss
apply_mim_loss: True # MIM loss
mim_temp: 0.5 # Temperature applied in MIM loss
data:
dataset: "ben"
root_dir: <path/to/lmdb/file>
split_dir: <path/to/[train,test,val].csv files>
num_workers: 10
num_bands: 12
img_size: 120
num_classes: 19
optimizer:
batch_size: 128
lr: 1.0e-4
classifier_lr: 1.0e-4
weight_decay: 0.05
kwargs:
betas: [0.9, 0.95]
scheduler:
name: "warmup_cosine"
warmup_start_lr: 0.0
lr_decay_steps:
min_lr: 0
warmup_epochs: 10
interval: step
checkpoint:
dir: "trained_models"
find_unused_parameters: False
seed: 42
max_epochs: 1
devices: [0]
sync_batchnorm: True
accelerator: "gpu"
precision: 16