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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# lightning.pytorch==2.2.2
|
| 2 |
+
seed_everything: 17
|
| 3 |
+
trainer:
|
| 4 |
+
accelerator: auto
|
| 5 |
+
strategy: auto
|
| 6 |
+
devices: auto
|
| 7 |
+
num_nodes: 1
|
| 8 |
+
precision: null
|
| 9 |
+
logger:
|
| 10 |
+
- class_path: lightning.pytorch.loggers.CSVLogger
|
| 11 |
+
init_args:
|
| 12 |
+
save_dir: ./
|
| 13 |
+
name: lightning_logs
|
| 14 |
+
version: null
|
| 15 |
+
prefix: ''
|
| 16 |
+
flush_logs_every_n_steps: 100
|
| 17 |
+
callbacks:
|
| 18 |
+
- class_path: lightning.pytorch.callbacks.ModelSummary
|
| 19 |
+
init_args:
|
| 20 |
+
max_depth: 3
|
| 21 |
+
- class_path: lightning.pytorch.callbacks.LearningRateMonitor
|
| 22 |
+
init_args:
|
| 23 |
+
logging_interval: epoch
|
| 24 |
+
log_momentum: false
|
| 25 |
+
log_weight_decay: false
|
| 26 |
+
- class_path: lightning.pytorch.callbacks.ModelCheckpoint
|
| 27 |
+
init_args:
|
| 28 |
+
dirpath: null
|
| 29 |
+
filename: null
|
| 30 |
+
monitor: null
|
| 31 |
+
verbose: false
|
| 32 |
+
save_last: true
|
| 33 |
+
save_top_k: 1
|
| 34 |
+
save_weights_only: false
|
| 35 |
+
mode: min
|
| 36 |
+
auto_insert_metric_name: true
|
| 37 |
+
every_n_train_steps: null
|
| 38 |
+
train_time_interval: null
|
| 39 |
+
every_n_epochs: null
|
| 40 |
+
save_on_train_epoch_end: null
|
| 41 |
+
enable_version_counter: true
|
| 42 |
+
- class_path: lightning.pytorch.callbacks.ModelCheckpoint
|
| 43 |
+
init_args:
|
| 44 |
+
dirpath: null
|
| 45 |
+
filename: '{epoch:03d}-{val_loss:.4f}-{val_auprc:.3f}'
|
| 46 |
+
monitor: val_auprc
|
| 47 |
+
verbose: false
|
| 48 |
+
save_last: null
|
| 49 |
+
save_top_k: 1
|
| 50 |
+
save_weights_only: false
|
| 51 |
+
mode: max
|
| 52 |
+
auto_insert_metric_name: true
|
| 53 |
+
every_n_train_steps: null
|
| 54 |
+
train_time_interval: null
|
| 55 |
+
every_n_epochs: null
|
| 56 |
+
save_on_train_epoch_end: null
|
| 57 |
+
enable_version_counter: true
|
| 58 |
+
- class_path: seasfire.callbacks.DGLGraphToDevice
|
| 59 |
+
fast_dev_run: false
|
| 60 |
+
max_epochs: 50
|
| 61 |
+
min_epochs: null
|
| 62 |
+
max_steps: -1
|
| 63 |
+
min_steps: null
|
| 64 |
+
max_time: null
|
| 65 |
+
limit_train_batches: null
|
| 66 |
+
limit_val_batches: null
|
| 67 |
+
limit_test_batches: null
|
| 68 |
+
limit_predict_batches: null
|
| 69 |
+
overfit_batches: 0.0
|
| 70 |
+
val_check_interval: null
|
| 71 |
+
check_val_every_n_epoch: 1
|
| 72 |
+
num_sanity_val_steps: 1
|
| 73 |
+
log_every_n_steps: null
|
| 74 |
+
enable_checkpointing: null
|
| 75 |
+
enable_progress_bar: null
|
| 76 |
+
enable_model_summary: null
|
| 77 |
+
accumulate_grad_batches: 1
|
| 78 |
+
gradient_clip_val: 0.5
|
| 79 |
+
gradient_clip_algorithm: norm
|
| 80 |
+
deterministic: null
|
| 81 |
+
benchmark: null
|
| 82 |
+
inference_mode: true
|
| 83 |
+
use_distributed_sampler: true
|
| 84 |
+
profiler: null
|
| 85 |
+
detect_anomaly: false
|
| 86 |
+
barebones: false
|
| 87 |
+
plugins: null
|
| 88 |
+
sync_batchnorm: false
|
| 89 |
+
reload_dataloaders_every_n_epochs: 0
|
| 90 |
+
default_root_dir: null
|
| 91 |
+
data:
|
| 92 |
+
cube_path: ../cube_v3.zarr
|
| 93 |
+
input_vars:
|
| 94 |
+
- mslp
|
| 95 |
+
- tp
|
| 96 |
+
- vpd
|
| 97 |
+
- sst
|
| 98 |
+
- t2m_mean
|
| 99 |
+
- ssrd
|
| 100 |
+
- swvl1
|
| 101 |
+
- lst_day
|
| 102 |
+
- ndvi
|
| 103 |
+
- pop_dens
|
| 104 |
+
static_vars:
|
| 105 |
+
- lsm
|
| 106 |
+
generate_only_positive_samples: true
|
| 107 |
+
oci_enabled: false
|
| 108 |
+
oci_input_vars:
|
| 109 |
+
- oci_censo
|
| 110 |
+
- oci_ea
|
| 111 |
+
- oci_epo
|
| 112 |
+
- oci_gmsst
|
| 113 |
+
- oci_nao
|
| 114 |
+
- oci_nina34_anom
|
| 115 |
+
- oci_pdo
|
| 116 |
+
- oci_pna
|
| 117 |
+
- oci_soi
|
| 118 |
+
- oci_wp
|
| 119 |
+
oci_lag: 14
|
| 120 |
+
log_preprocess_input_vars:
|
| 121 |
+
- tp
|
| 122 |
+
- pop_dens
|
| 123 |
+
target_var: gwis_ba
|
| 124 |
+
target_shift: 1
|
| 125 |
+
target_var_per_area: false
|
| 126 |
+
target_var_log_process: false
|
| 127 |
+
timeseries_weeks: 24
|
| 128 |
+
lat_dim: null
|
| 129 |
+
lon_dim: null
|
| 130 |
+
lat_dim_overlap: null
|
| 131 |
+
lon_dim_overlap: null
|
| 132 |
+
time_dim_overlap: null
|
| 133 |
+
task: classification
|
| 134 |
+
batch_size: 1
|
| 135 |
+
num_workers: 8
|
| 136 |
+
pin_memory: false
|
| 137 |
+
load_cube_in_memory: false
|
| 138 |
+
train_random_sample: null
|
| 139 |
+
mean_std_dict_prefix: cube
|
| 140 |
+
ckpt_path: lightning_logs/version_2/checkpoints/last.ckpt
|
| 141 |
+
model:
|
| 142 |
+
class_path: __main__.FireCastNet
|
| 143 |
+
init_args:
|
| 144 |
+
icospheres_graph_path: icospheres/icospheres_0_1_2_3_4_5_6.json.gz
|
| 145 |
+
sp_res: 0.25
|
| 146 |
+
max_lat: 89.875
|
| 147 |
+
min_lat: -89.875
|
| 148 |
+
max_lon: 179.875
|
| 149 |
+
min_lon: -179.875
|
| 150 |
+
lat_lon_static_data: true
|
| 151 |
+
embed_cube: true
|
| 152 |
+
embed_cube_width: 4
|
| 153 |
+
embed_cube_height: 4
|
| 154 |
+
embed_cube_time: 24
|
| 155 |
+
embed_cube_dim: 64
|
| 156 |
+
embed_cube_layer_norm: true
|
| 157 |
+
embed_cube_vit_enable: false
|
| 158 |
+
embed_cube_vit_patch_size: 36
|
| 159 |
+
embed_cube_vit_dim: 64
|
| 160 |
+
embed_cube_vit_depth: 1
|
| 161 |
+
embed_cube_vit_heads: 4
|
| 162 |
+
embed_cube_vit_mlp_dim: 64
|
| 163 |
+
embed_cube_ltae_enable: false
|
| 164 |
+
embed_cube_ltae_num_heads: 4
|
| 165 |
+
embed_cube_ltae_d_k: 16
|
| 166 |
+
embed_cube_sp_res: 1.0
|
| 167 |
+
embed_cube_max_lat: 89.5
|
| 168 |
+
embed_cube_min_lat: -89.5
|
| 169 |
+
embed_cube_max_lon: 179.5
|
| 170 |
+
embed_cube_min_lon: -179.5
|
| 171 |
+
timeseries_len: 24
|
| 172 |
+
input_dim_grid_nodes: 11
|
| 173 |
+
output_dim_grid_nodes: 16
|
| 174 |
+
input_dim_mesh_nodes: 3
|
| 175 |
+
input_dim_edges: 4
|
| 176 |
+
processor_layers: 12
|
| 177 |
+
hidden_layers: 1
|
| 178 |
+
hidden_dim: 64
|
| 179 |
+
aggregation: sum
|
| 180 |
+
norm_type: LayerNorm
|
| 181 |
+
do_concat_trick: false
|
| 182 |
+
regression_loss: mse
|
| 183 |
+
lr: 0.001
|
| 184 |
+
weight_decay: 1.0e-08
|
| 185 |
+
max_epochs: 100
|
| 186 |
+
optimizer_apex: false
|
| 187 |
+
optimizer_fused: true
|
| 188 |
+
display_model_example: false
|
| 189 |
+
display_model_example_precision: null
|
model_ckpts/firecastnet-cls-ts24-h1.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c1e525d8b726f9c725c755da3edeab6f310db82689d4c57a22d001baab724916
|
| 3 |
+
size 109325838
|