You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,9 @@ metnet3 = MetNet3(
43
43
omo_wind_component_y=256,
44
44
omo_wind_direction=180
45
45
),
46
-
hrrr_loss_weight=10
46
+
hrrr_loss_weight=10,
47
+
hrrr_norm_strategy='sync_batchnorm', # this would use a sync batchnorm to normalize the input hrrr and target, without having to precalculate the mean and variance of the hrrr dataset per channel
48
+
hrrr_norm_statistics=None# you can also also set `hrrr_norm_strategy = "precalculated"` and pass in the mean and variance as shape `(2, 617)` through this keyword argument
-[x] auto-handle normalization across all the channels of the HRRR by tracking a running mean and variance of targets during training (using sync batchnorm as hack)
108
110
-[x] allow researcher to pass in their own normalization variables for HRRR
109
111
-[x] build all the inputs to spec, also make sure hrrr input is normalized, offer option to unnormalize hrrr predictions
112
+
-[x] make sure model can be easily saved and loaded, with different ways of handling hrrr norm
110
113
111
-
-[ ] make sure model can be easily saved and loaded, with different ways of handling hrrr norm
112
114
-[ ] figure out the topological embedding, consult a neural weather researcher
asserthrrr_norm_statistics.shape== (2, hrrr_channels), f'normalization statistics must be of shape (2, {normed_hrrr_target}), containing mean and variance of each target calculated from the dataset'
assertexists(hrrr_norm_statistics), 'hrrr_norm_statistics must be passed in, if normalizing input hrrr as well as target with precalculated dataset mean and variance'
763
+
asserthrrr_norm_statistics.shape== (2, hrrr_channels), f'normalization statistics must be of shape (2, {hrrr_channels}), containing mean and variance of each target calculated from the dataset'
0 commit comments