-
Notifications
You must be signed in to change notification settings - Fork 2
/
cgan_fusion_unet.yaml
194 lines (148 loc) · 3.73 KB
/
cgan_fusion_unet.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
###############################################################################
#
# CONFIGURATION FILE FOR MODIS LANDSAT CGAN FUSION
#
###############################################################################
############################################
# EXPERIMENT
############################################
experiment:
# Name of dataset to build from EXPERIMENTS registry
name: 'cgan_fusion_modis_landsat'
# Random seed
seed: 73
# Optional path to checkpoint from which to resume training
chkpt:
# Maximum number of epochs to run training for
max_epochs: 512
# Precision
precision: 32
# Supervision regularization weight
supervision_weight: 0.1
############################################
# DATASETS
############################################
dataset:
# Name of dataset to build from DATASETS registry
name: modis_landsat_reflectance_fusion
# Path to dataset
root: "data/patches/modis_landsat"
# Split ratio in [0, 1] - sum must be == 1
split:
train: 0.7
val: 0.15
test: 0.15
# Dataloading specifications
dataloader:
# Number of frames per batch
batch_size: 64
# Number of workers for loading
num_workers: 1
############################################
# NETWORK
############################################
model:
generator:
# Name of generator to build from MODELS registry
name: 'unet'
# Input image size
input_size:
- 8 # channels
- 256 # height
- 256 # width
# Number of channels of output image
out_channels: 4
# Nb of filters from first to last encoding convolutional block
enc_filters:
- 64
- 128
- 256
- 512
- 1024
- 1024
# Parameters of encoding convolutional blocks
enc_kwargs:
- {bn: False, relu: False}
- {}
- {}
- {}
- {}
- {stride: 1}
# Nb of filters from first to last decoding convolutional block
dec_filters:
- 1024
- 512
- 256
- 128
- 64
- 64
# Parameters of decoding convolutional blocks
dec_kwargs:
- {dropout: 0.4, kernel_size: 2, stride: 1, padding: 0}
- dropout: 0.4
- {}
- {}
- {}
- {relu: False, bn: False}
discriminator:
# Name of discriminator to build from MODELS registry
name: 'patchgan'
# Input image size
input_size:
- 12 # channels
- 256 # height
- 256 # width
# Nb of filters from first to last encoding convolutional block
n_filters:
- 128
- 256
- 512
- 512
- 1
# Parameters of convolutional blocks
conv_kwargs:
- bn: False
- {}
- {}
- {}
- {stride: 1, bn: False, relu: False}
############################################
# OPTIMIZER - LR SCHEDULER
############################################
# Specify optimizer params for LightningModule.configure_optimizers method
optimizer:
generator:
lr: 0.0003
betas:
- 0.5
- 0.999
discriminator:
lr: 0.0003
betas:
- 0.5
- 0.999
weight_decay: 0.000001
# Specify lr scheduler params for LightningModule.configure_optimizers method
lr_scheduler:
generator:
gamma: 0.99
discriminator:
gamma: 0.99
############################################
# CALLBACKS
############################################
early_stopping:
# Specs of checkpoint saving callback
model_checkpoint:
# Quantity to monitor
monitor: 'val_loss'
# Save top k models
save_top_k: 5
# Monitor modality
mode: 'min'
############################################
# TESTING
############################################
testing:
# Path to checkpoint file to load for testing
chkpt: