Commit
·
60bda88
1
Parent(s):
0d97a47
Add model weights
Browse files- Prithvi-EO-V2-300M-TL-Sen1Floods11.ckpt +3 -0
- config.yaml +211 -0
Prithvi-EO-V2-300M-TL-Sen1Floods11.ckpt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eb7db01b161d8919c7e61fed209d8633dabd49f5f81c785600790e43832344ba
|
3 |
+
size 1276881720
|
config.yaml
ADDED
@@ -0,0 +1,211 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# lightning.pytorch==2.4.0
|
2 |
+
seed_everything: 0
|
3 |
+
trainer:
|
4 |
+
accelerator: auto
|
5 |
+
strategy: auto
|
6 |
+
devices: auto
|
7 |
+
num_nodes: 1
|
8 |
+
precision: 16-mixed
|
9 |
+
logger:
|
10 |
+
class_path: lightning.pytorch.loggers.TensorBoardLogger
|
11 |
+
init_args:
|
12 |
+
save_dir: /dccstor/geofm-finetuning/benchmark-geo-bench-paolo/
|
13 |
+
name: test2
|
14 |
+
log_graph: false
|
15 |
+
default_hp_metric: true
|
16 |
+
prefix: ''
|
17 |
+
comment: ''
|
18 |
+
max_queue: 10
|
19 |
+
flush_secs: 120
|
20 |
+
filename_suffix: ''
|
21 |
+
callbacks:
|
22 |
+
- class_path: lightning.pytorch.callbacks.RichProgressBar
|
23 |
+
init_args:
|
24 |
+
refresh_rate: 1
|
25 |
+
leave: false
|
26 |
+
theme:
|
27 |
+
description: white
|
28 |
+
progress_bar: '#6206E0'
|
29 |
+
progress_bar_finished: '#6206E0'
|
30 |
+
progress_bar_pulse: '#6206E0'
|
31 |
+
batch_progress: white
|
32 |
+
time: grey54
|
33 |
+
processing_speed: grey70
|
34 |
+
metrics: white
|
35 |
+
metrics_text_delimiter: ' '
|
36 |
+
metrics_format: .3f
|
37 |
+
- class_path: lightning.pytorch.callbacks.LearningRateMonitor
|
38 |
+
init_args:
|
39 |
+
logging_interval: epoch
|
40 |
+
log_momentum: false
|
41 |
+
log_weight_decay: false
|
42 |
+
- class_path: lightning.pytorch.callbacks.EarlyStopping
|
43 |
+
init_args:
|
44 |
+
monitor: val/loss
|
45 |
+
min_delta: 0.0
|
46 |
+
patience: 20
|
47 |
+
verbose: false
|
48 |
+
mode: min
|
49 |
+
strict: true
|
50 |
+
check_finite: true
|
51 |
+
log_rank_zero_only: false
|
52 |
+
fast_dev_run: false
|
53 |
+
max_epochs: 50
|
54 |
+
max_steps: -1
|
55 |
+
overfit_batches: 0.0
|
56 |
+
check_val_every_n_epoch: 2
|
57 |
+
log_every_n_steps: 10
|
58 |
+
enable_checkpointing: true
|
59 |
+
accumulate_grad_batches: 1
|
60 |
+
inference_mode: true
|
61 |
+
use_distributed_sampler: true
|
62 |
+
detect_anomaly: false
|
63 |
+
barebones: false
|
64 |
+
sync_batchnorm: false
|
65 |
+
reload_dataloaders_every_n_epochs: 0
|
66 |
+
default_root_dir: /dccstor/geofm-finetuning/benchmark-geo-bench-paolo/
|
67 |
+
model:
|
68 |
+
class_path: terratorch.tasks.SemanticSegmentationTask
|
69 |
+
init_args:
|
70 |
+
model_args:
|
71 |
+
backbone_pretrained: true
|
72 |
+
backbone: prithvi_eo_v2_300_tl
|
73 |
+
decoder: UperNetDecoder
|
74 |
+
decoder_channels: 256
|
75 |
+
decoder_scale_modules: true
|
76 |
+
num_classes: 2
|
77 |
+
rescale: true
|
78 |
+
backbone_bands:
|
79 |
+
- BLUE
|
80 |
+
- GREEN
|
81 |
+
- RED
|
82 |
+
- NIR_NARROW
|
83 |
+
- SWIR_1
|
84 |
+
- SWIR_2
|
85 |
+
head_dropout: 0.1
|
86 |
+
necks:
|
87 |
+
- name: SelectIndices
|
88 |
+
indices:
|
89 |
+
- 5
|
90 |
+
- 11
|
91 |
+
- 17
|
92 |
+
- 23
|
93 |
+
- name: ReshapeTokensToImage
|
94 |
+
model_factory: EncoderDecoderFactory
|
95 |
+
loss: ce
|
96 |
+
ignore_index: -1
|
97 |
+
lr: 0.001
|
98 |
+
freeze_backbone: false
|
99 |
+
freeze_decoder: false
|
100 |
+
plot_on_val: 10
|
101 |
+
data:
|
102 |
+
class_path: terratorch.datamodules.Sen1Floods11NonGeoDataModule
|
103 |
+
init_args:
|
104 |
+
data_root: /dccstor/geofm-finetuning/datasets/sen1floods11
|
105 |
+
batch_size: 16
|
106 |
+
num_workers: 8
|
107 |
+
bands:
|
108 |
+
- BLUE
|
109 |
+
- GREEN
|
110 |
+
- RED
|
111 |
+
- NIR_NARROW
|
112 |
+
- SWIR_1
|
113 |
+
- SWIR_2
|
114 |
+
train_transform:
|
115 |
+
- class_path: albumentations.Resize
|
116 |
+
init_args:
|
117 |
+
height: 448
|
118 |
+
width: 448
|
119 |
+
interpolation: 1
|
120 |
+
always_apply: false
|
121 |
+
p: 1
|
122 |
+
- class_path: albumentations.RandomCrop
|
123 |
+
init_args:
|
124 |
+
height: 224
|
125 |
+
width: 224
|
126 |
+
always_apply: false
|
127 |
+
p: 1.0
|
128 |
+
- class_path: albumentations.HorizontalFlip
|
129 |
+
init_args:
|
130 |
+
always_apply: false
|
131 |
+
p: 0.5
|
132 |
+
- class_path: albumentations.VerticalFlip
|
133 |
+
init_args:
|
134 |
+
always_apply: false
|
135 |
+
p: 0.5
|
136 |
+
- class_path: albumentations.pytorch.ToTensorV2
|
137 |
+
init_args:
|
138 |
+
transpose_mask: false
|
139 |
+
always_apply: true
|
140 |
+
p: 1.0
|
141 |
+
val_transform:
|
142 |
+
- class_path: albumentations.Resize
|
143 |
+
init_args:
|
144 |
+
height: 448
|
145 |
+
width: 448
|
146 |
+
interpolation: 1
|
147 |
+
always_apply: false
|
148 |
+
p: 1
|
149 |
+
- class_path: albumentations.pytorch.ToTensorV2
|
150 |
+
init_args:
|
151 |
+
transpose_mask: false
|
152 |
+
always_apply: true
|
153 |
+
p: 1.0
|
154 |
+
test_transform:
|
155 |
+
- class_path: albumentations.Resize
|
156 |
+
init_args:
|
157 |
+
height: 448
|
158 |
+
width: 448
|
159 |
+
interpolation: 1
|
160 |
+
always_apply: false
|
161 |
+
p: 1
|
162 |
+
- class_path: albumentations.pytorch.ToTensorV2
|
163 |
+
init_args:
|
164 |
+
transpose_mask: false
|
165 |
+
always_apply: true
|
166 |
+
p: 1.0
|
167 |
+
drop_last: true
|
168 |
+
constant_scale: 0.0001
|
169 |
+
no_data_replace: 0.0
|
170 |
+
no_label_replace: -1
|
171 |
+
use_metadata: false
|
172 |
+
out_dtype: int16
|
173 |
+
deploy_config_file: true
|
174 |
+
ModelCheckpoint:
|
175 |
+
filename: '{epoch}'
|
176 |
+
monitor: val/loss
|
177 |
+
verbose: false
|
178 |
+
save_top_k: 1
|
179 |
+
mode: min
|
180 |
+
save_weights_only: false
|
181 |
+
auto_insert_metric_name: true
|
182 |
+
enable_version_counter: true
|
183 |
+
StateDictModelCheckpoint:
|
184 |
+
filename: '{epoch}_state_dict'
|
185 |
+
monitor: val/loss
|
186 |
+
verbose: false
|
187 |
+
save_top_k: 1
|
188 |
+
mode: min
|
189 |
+
save_weights_only: true
|
190 |
+
auto_insert_metric_name: true
|
191 |
+
enable_version_counter: true
|
192 |
+
optimizer:
|
193 |
+
class_path: torch.optim.AdamW
|
194 |
+
init_args:
|
195 |
+
lr: 5.0e-05
|
196 |
+
betas:
|
197 |
+
- 0.9
|
198 |
+
- 0.999
|
199 |
+
eps: 1.0e-08
|
200 |
+
weight_decay: 0.05
|
201 |
+
amsgrad: false
|
202 |
+
maximize: false
|
203 |
+
capturable: false
|
204 |
+
differentiable: false
|
205 |
+
lr_scheduler:
|
206 |
+
class_path: torch.optim.lr_scheduler.CosineAnnealingLR
|
207 |
+
init_args:
|
208 |
+
T_max: 50
|
209 |
+
eta_min: 0
|
210 |
+
last_epoch: -1
|
211 |
+
verbose: deprecated
|