Update sevir-full
Browse files- sevir-full/README.md +64 -0
- sevir-full/SHA256SUMS +23 -0
- sevir-full/advective_model.py +91 -0
- sevir-full/inference.json +3427 -0
- sevir-full/inference_utils.py +142 -0
- sevir-full/multiscale_attention.py +30 -0
- sevir-full/nowcast.py +239 -0
- sevir-full/predict_prob.py +54 -0
- sevir-full/radar_data.py +76 -0
- sevir-full/run.sh +14 -0
- sevir-full/simvp_model.py +92 -0
- sevir-full/weights/all_ac_early_0_wide_ac_20k_eval_ema.pt +3 -0
- sevir-full/weights/final_all_0_direct_x_best_eval_ema.pt +3 -0
- sevir-full/weights/final_all_1_short_z_best_eval_ema.pt +3 -0
- sevir-full/weights/final_all_3_wide_ae_best_eval_ema.pt +3 -0
- sevir-full/weights/final_all_4_storm_ag_best_eval_ema.pt +3 -0
- sevir-full/weights/final_all_5_heavy_ah_best_eval_ema.pt +3 -0
- sevir-full/weights/final_all_6_advective_t_best_eval_ema.pt +3 -0
- sevir-full/weights/final_all_7_storm_r_best_eval_ema.pt +3 -0
- sevir-full/weights/final_all_8_simvp_u_best_eval_ema.pt +3 -0
- sevir-full/weights/long_y_best_eval.pt +3 -0
- sevir-full/weights/wide_ab_best_eval.pt +3 -0
- sevir-full/wide_model.py +111 -0
- sevir-full/wide_simvp_model.py +129 -0
sevir-full/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SEVIR VIL nowcasting: 11-network ensemble trained from scratch
|
| 2 |
+
|
| 3 |
+
Short-term precipitation nowcasting on SEVIR VIL (vertically integrated liquid, NEXRAD radar mosaics
|
| 4 |
+
over the continental United States, 384 x 384 pixels at 1 km, frames every 5 minutes). From the
|
| 5 |
+
last 13 frames the model forecasts the next 12 frames (5 to 60 minutes ahead). All networks were
|
| 6 |
+
trained from random initialization on SEVIR events from June 2017 to December 2018; no pretrained
|
| 7 |
+
weights or other data are used.
|
| 8 |
+
|
| 9 |
+
## Files
|
| 10 |
+
|
| 11 |
+
| File | Role |
|
| 12 |
+
|---|---|
|
| 13 |
+
| `run.sh` | Entry point: `run.sh <input_dir> <output_dir>` (one process per visible GPU) |
|
| 14 |
+
| `predict_prob.py` | Loads the ensemble, predicts, writes one forecast per input |
|
| 15 |
+
| `inference.json` | Ensemble members, per-lead/per-threshold weights, logit calibration, views, smoothing, cutoffs |
|
| 16 |
+
| `inference_utils.py`, `nowcast.py`, `radar_data.py`, `*_model.py`, `multiscale_attention.py` | Network definitions, optical-flow inputs, ensembling |
|
| 17 |
+
| `weights/*.pt` | The 11 trained networks |
|
| 18 |
+
|
| 19 |
+
## Method
|
| 20 |
+
|
| 21 |
+
* Members: residual U-Nets with optical-flow inputs, motion-aligned history and global attention;
|
| 22 |
+
an advective model with a motion-warped decoder; SimVP-style temporal translators; widened
|
| 23 |
+
variants of these. Each member predicts, for every lead time, the probability that VIL is at or
|
| 24 |
+
above each of the six thresholds 16, 74, 133, 160, 181 and 219.
|
| 25 |
+
* Ensemble: per-lead, per-threshold member weights and a linear logit calibration per member (fixed
|
| 26 |
+
values in `inference.json`), averaged over eight flip/rotation views of the input.
|
| 27 |
+
* Output: mild spatial smoothing of the probabilities, then conversion to VIL levels with fixed
|
| 28 |
+
per-lead cutoffs.
|
| 29 |
+
|
| 30 |
+
Inference runs in bfloat16 with `torch.compile`, in batches of 8 samples.
|
| 31 |
+
|
| 32 |
+
## Input and output
|
| 33 |
+
|
| 34 |
+
* `<input_dir>/<id>.npy`: the 13 input frames of one sample, `uint8`, shape `(13, 384, 384)`, SEVIR
|
| 35 |
+
VIL levels 0-255.
|
| 36 |
+
* `<output_dir>/<id>.npy` (written for every input): the 12 forecast frames, `uint8`, shape
|
| 37 |
+
`(12, 384, 384)`, VIL levels.
|
| 38 |
+
|
| 39 |
+
## Running
|
| 40 |
+
|
| 41 |
+
```
|
| 42 |
+
CUDA_VISIBLE_DEVICES=0 ./run.sh /path/to/inputs /path/to/out
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
With several GPUs listed in `CUDA_VISIBLE_DEVICES` the inputs are split among them.
|
| 46 |
+
Requirements: PyTorch 2.x with CUDA, NumPy, OpenCV.
|
| 47 |
+
|
| 48 |
+
| | |
|
| 49 |
+
|---|---|
|
| 50 |
+
| Test split | 12,159 samples from 4,053 events of June to November 2019 |
|
| 51 |
+
| Single-GPU wall time on the test split | about 46 min (2,778 s) |
|
| 52 |
+
| Peak GPU memory | about 15 GB |
|
| 53 |
+
| GPU | one NVIDIA GB200 |
|
| 54 |
+
|
| 55 |
+
## Evaluation
|
| 56 |
+
|
| 57 |
+
CSI-M: for each threshold 16, 74, 133, 160, 181 and 219, hits, misses and false alarms are summed
|
| 58 |
+
over all pixels, all 12 lead times and all test samples; CSI = hits / (hits + misses + false
|
| 59 |
+
alarms) per threshold, and CSI-M is the mean over the six thresholds.
|
| 60 |
+
|
| 61 |
+
| | CSI-M |
|
| 62 |
+
|---|---|
|
| 63 |
+
| These weights, single GPU | 0.4760 |
|
| 64 |
+
| Reported in the paper | 0.4761 |
|
sevir-full/SHA256SUMS
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
767e605df272e3fbfad933b094d708f8d3fa4d655427aee355df1e11b93d001e README.md
|
| 2 |
+
54419da9f36edd601afad7d24f7d24d8f47e6459a7fb160d3d523f45d78dc244 advective_model.py
|
| 3 |
+
4eea352d827d4fc43aee932a5b7a02d4f40f568d0970a006c5f5bf7780ccb5ab inference.json
|
| 4 |
+
a7bc0fcbe3a9f18bf6ace6f31dc8a0ac35c8401da8ce5c47aaf158dd5bd531f2 inference_utils.py
|
| 5 |
+
dafbe6d60fb315b0a2108647ac934ab5de30c1ecf182d2982c5033153c09ce04 multiscale_attention.py
|
| 6 |
+
d0bce83f26472473a2774804e4479d8ec45c48ae0ced108501b5b9450b6058ff nowcast.py
|
| 7 |
+
667d95ac343777d850ee6121fff0dea905b44e6700b1d64bcd966d75326c1750 predict_prob.py
|
| 8 |
+
8d29f42e6850cad8897f8cc060497e52ea916b36be4c10546cf6689ec413d40c radar_data.py
|
| 9 |
+
09c3fd0d64d64fcd40fa7b4936396d6f74b615eb2d89d09e1ce23fbc73baa884 run.sh
|
| 10 |
+
d2f6d5950a3419aa65be783c51e9e87311ac89c455cec794a5d3c2ab7794f2a4 simvp_model.py
|
| 11 |
+
98f93fc3cfbfe5b7f51a5ac6b8e86c93a843e23066cfb49a1529af584141ba4f weights/all_ac_early_0_wide_ac_20k_eval_ema.pt
|
| 12 |
+
1339111e32381aa8909780e7811a2f7f2c56029f4a5964768bf8b640266fe9ae weights/final_all_0_direct_x_best_eval_ema.pt
|
| 13 |
+
3697fd46b98c92762e172bf8e522d106adaad7ed60c801fbafbba59b2921bf46 weights/final_all_1_short_z_best_eval_ema.pt
|
| 14 |
+
8af25b6710163d27b8730435b99832adb19e560795b534fd62bf5f1c4a7d93b9 weights/final_all_3_wide_ae_best_eval_ema.pt
|
| 15 |
+
55b3423cc1a15837abe166dd5b758678bc5a8963015a7e906c79db7e0ee76c32 weights/final_all_4_storm_ag_best_eval_ema.pt
|
| 16 |
+
e646fa48c430c49fe9720dc383a7a8a4fdd64be94bdf78e432fa9542caa5cc7d weights/final_all_5_heavy_ah_best_eval_ema.pt
|
| 17 |
+
8318e7fa4e952b22fd838696bd06468e14068ed31631c1c49097bac8b76e7a04 weights/final_all_6_advective_t_best_eval_ema.pt
|
| 18 |
+
ec7b6e20640f96de6c9da5adf72a43a1a60c6f2d4b15d996ecab02da8de8d54a weights/final_all_7_storm_r_best_eval_ema.pt
|
| 19 |
+
1312bc02596dcebbb56a41b218d91df4ab04f422c6619cfd0db93c37e76d5315 weights/final_all_8_simvp_u_best_eval_ema.pt
|
| 20 |
+
f5d88548b72d0954896d615c26a0814b23098e586c9144d0e8a712c26e0dc3ba weights/long_y_best_eval.pt
|
| 21 |
+
e5f01f72520f8420fc13a1bb30c541ba9bbd5643f1d5a65a5db9ea97b8e50b34 weights/wide_ab_best_eval.pt
|
| 22 |
+
184a5db150be234f0c9d881576876d6c2b0c156975aa3e196d4853deef72a719 wide_model.py
|
| 23 |
+
320e499ebefe323cbb131e240d03a41c53c7bf62b4aec5e1ccd2b6ebe4e1a022 wide_simvp_model.py
|
sevir-full/advective_model.py
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Shared lead-conditioned decoder with motion-warped multiscale neural features."""
|
| 2 |
+
import torch
|
| 3 |
+
from torch import nn
|
| 4 |
+
from torch.nn import functional as F
|
| 5 |
+
from nowcast import ResBlock,Attention,warp,align_history,THRESHOLDS
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
def advect_features(feature,flow,leads):
|
| 9 |
+
b,c,h,w=feature.shape
|
| 10 |
+
n=len(leads)
|
| 11 |
+
yy,xx=torch.meshgrid(torch.linspace(-1,1,h,device=feature.device),torch.linspace(-1,1,w,device=feature.device),indexing='ij')
|
| 12 |
+
grid=torch.stack((xx,yy),-1)[None,None]
|
| 13 |
+
f=F.interpolate(flow.float(),(h,w),mode='bilinear',align_corners=False)
|
| 14 |
+
# Flow represents full-resolution displacement per timestep; normalize by original size.
|
| 15 |
+
g=grid+f.permute(0,2,3,1)[:,None]*leads[None,:,None,None,None]*(2/(flow.shape[-1]*2-1))
|
| 16 |
+
feat=feature.float()[:,None].expand(-1,n,-1,-1,-1).reshape(b*n,c,h,w)
|
| 17 |
+
return F.grid_sample(feat,g.reshape(b*n,h,w,2),align_corners=True,padding_mode='zeros').to(feature.dtype)
|
| 18 |
+
|
| 19 |
+
class LeadBlock(nn.Module):
|
| 20 |
+
def __init__(self,cin,cout,emb=128):
|
| 21 |
+
super().__init__()
|
| 22 |
+
self.block=ResBlock(cin,cout)
|
| 23 |
+
self.affine=nn.Linear(emb,cout*2)
|
| 24 |
+
nn.init.zeros_(self.affine.weight);nn.init.zeros_(self.affine.bias)
|
| 25 |
+
def forward(self,x,t):
|
| 26 |
+
x=self.block(x);a,b=self.affine(t).chunk(2,-1)
|
| 27 |
+
return x*(1+a[:,:,None,None])+b[:,:,None,None]
|
| 28 |
+
|
| 29 |
+
class AdvectiveNowcaster(nn.Module):
|
| 30 |
+
def __init__(self,width=48,decoder=32,input_extrapolation=False,**unused):
|
| 31 |
+
super().__init__()
|
| 32 |
+
self.config={'architecture':'advective','width':width,'decoder':decoder,'input_extrapolation':input_extrapolation}
|
| 33 |
+
self.input_extrapolation=input_extrapolation
|
| 34 |
+
self.motion=True
|
| 35 |
+
ch=[width,width*2,width*4,width*6,width*8]
|
| 36 |
+
self.stem=nn.Sequential(nn.Conv2d(13*4+7*4+2+(12*4 if input_extrapolation else 0),ch[0],3,padding=1,bias=False),nn.GroupNorm(8,ch[0]),nn.SiLU())
|
| 37 |
+
self.enc=nn.ModuleList([nn.Sequential(ResBlock(c,c),ResBlock(c,c)) for c in ch])
|
| 38 |
+
self.down=nn.ModuleList([nn.Conv2d(a,b,3,stride=2,padding=1) for a,b in zip(ch[:-1],ch[1:])])
|
| 39 |
+
self.attn=Attention(ch[-1])
|
| 40 |
+
dc=[decoder,decoder*2,decoder*3,decoder*4,decoder*6]
|
| 41 |
+
self.compress=nn.ModuleList([nn.Conv2d(c,d,1) for c,d in zip(ch,dc)])
|
| 42 |
+
self.tembed=nn.Sequential(nn.Linear(16,128),nn.SiLU(),nn.Linear(128,128),nn.SiLU())
|
| 43 |
+
self.bottom=LeadBlock(dc[-1]*2,dc[-1])
|
| 44 |
+
self.up=nn.ModuleList([LeadBlock(dc[i+1]+dc[i]*2,dc[i]) for i in range(3,-1,-1)])
|
| 45 |
+
self.head=nn.Conv2d(dc[0],7*4,1)
|
| 46 |
+
self.flowhead=nn.Conv2d(dc[0],2,1)
|
| 47 |
+
nn.init.zeros_(self.head.weight);nn.init.zeros_(self.head.bias)
|
| 48 |
+
nn.init.zeros_(self.flowhead.weight);nn.init.zeros_(self.flowhead.bias)
|
| 49 |
+
self.register_buffer('thresholds',torch.tensor(THRESHOLDS,dtype=torch.float32)/255)
|
| 50 |
+
def forward(self,x,flow,leads=None):
|
| 51 |
+
b,_,h,w=x.shape
|
| 52 |
+
if leads is None:leads=torch.arange(1,13,device=x.device,dtype=torch.float32)
|
| 53 |
+
n=len(leads)
|
| 54 |
+
aligned=align_history(x,flow)
|
| 55 |
+
if self.input_extrapolation:
|
| 56 |
+
base=warp(x[:,-1:],flow)
|
| 57 |
+
inputs=torch.cat((F.pixel_unshuffle(x,2),F.pixel_unshuffle(base.to(x.dtype),2),flow.to(x.dtype)/8,F.pixel_unshuffle(aligned.to(x.dtype),2)),1)
|
| 58 |
+
else:
|
| 59 |
+
inputs=torch.cat((F.pixel_unshuffle(x,2),F.pixel_unshuffle(aligned.to(x.dtype),2),flow.to(x.dtype)/8),1)
|
| 60 |
+
z=self.stem(inputs)
|
| 61 |
+
skips=[]
|
| 62 |
+
for i,enc in enumerate(self.enc):
|
| 63 |
+
z=enc(z)
|
| 64 |
+
if i==4:z=self.attn(z)
|
| 65 |
+
skips.append(self.compress[i](z))
|
| 66 |
+
if i<4:z=self.down[i](z)
|
| 67 |
+
freq=2**torch.arange(8,device=x.device,dtype=torch.float32)
|
| 68 |
+
t=leads[:,None]/12*freq[None]*torch.pi
|
| 69 |
+
t=self.tembed(torch.cat((t.sin(),t.cos()),-1).to(z.dtype))
|
| 70 |
+
t=t[None].expand(b,-1,-1).reshape(b*n,-1)
|
| 71 |
+
future=[]
|
| 72 |
+
for s in skips:
|
| 73 |
+
adv=advect_features(s,flow,leads)
|
| 74 |
+
static=s[:,None].expand(-1,n,-1,-1,-1).reshape(b*n,*s.shape[1:])
|
| 75 |
+
future.append(torch.cat((adv,static),1))
|
| 76 |
+
z=self.bottom(future[-1],t)
|
| 77 |
+
for up,s in zip(self.up,reversed(future[:-1])):
|
| 78 |
+
z=up(torch.cat((F.interpolate(z,size=s.shape[-2:],mode='bilinear',align_corners=False),s),1),t)
|
| 79 |
+
out=F.pixel_shuffle(self.head(z),2).reshape(b,n,7,h,w)
|
| 80 |
+
# Train/evaluate all twelve leads through the same decoder; maintain the standard interface.
|
| 81 |
+
correction=torch.tanh(self.flowhead(z)).reshape(b,n*2,h//2,w//2)*8
|
| 82 |
+
if n==12 and torch.equal(leads,torch.arange(1,13,device=x.device)):
|
| 83 |
+
adv=warp(x[:,-1:],flow,correction=correction)
|
| 84 |
+
else:
|
| 85 |
+
# Selected leads are useful for efficient random-horizon training.
|
| 86 |
+
adv=advect_features(x[:,-1:],flow,leads).reshape(b,n,h,w)
|
| 87 |
+
base=((adv[:,:,None]-self.thresholds.view(1,1,6,1,1))/.10).clamp(-4,4)
|
| 88 |
+
decay=(1-.35*(leads-1)/11).view(1,n,1,1,1)
|
| 89 |
+
logits=out[:,:,:6]+base*decay
|
| 90 |
+
mean=adv+out[:,:,6]*.25
|
| 91 |
+
return logits,mean,adv
|
sevir-full/inference.json
ADDED
|
@@ -0,0 +1,3427 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
0.0,
|
| 35 |
+
0.0,
|
| 36 |
+
0.0
|
| 37 |
+
],
|
| 38 |
+
[
|
| 39 |
+
0.0,
|
| 40 |
+
0.0,
|
| 41 |
+
0.0,
|
| 42 |
+
0.0,
|
| 43 |
+
0.0,
|
| 44 |
+
0.08333333333333334
|
| 45 |
+
],
|
| 46 |
+
[
|
| 47 |
+
0.0,
|
| 48 |
+
0.0,
|
| 49 |
+
0.0,
|
| 50 |
+
0.0,
|
| 51 |
+
0.0,
|
| 52 |
+
0.08333333333333334
|
| 53 |
+
],
|
| 54 |
+
[
|
| 55 |
+
0.0,
|
| 56 |
+
0.0,
|
| 57 |
+
0.0,
|
| 58 |
+
0.0,
|
| 59 |
+
0.0,
|
| 60 |
+
0.07142857142857144
|
| 61 |
+
],
|
| 62 |
+
[
|
| 63 |
+
0.0,
|
| 64 |
+
0.0,
|
| 65 |
+
0.0,
|
| 66 |
+
0.0,
|
| 67 |
+
0.0,
|
| 68 |
+
0.07142857142857144
|
| 69 |
+
],
|
| 70 |
+
[
|
| 71 |
+
0.0,
|
| 72 |
+
0.0,
|
| 73 |
+
0.0,
|
| 74 |
+
0.0,
|
| 75 |
+
0.0,
|
| 76 |
+
0.0
|
| 77 |
+
],
|
| 78 |
+
[
|
| 79 |
+
0.0,
|
| 80 |
+
0.0,
|
| 81 |
+
0.0,
|
| 82 |
+
0.0,
|
| 83 |
+
0.0,
|
| 84 |
+
0.0
|
| 85 |
+
],
|
| 86 |
+
[
|
| 87 |
+
0.0,
|
| 88 |
+
0.0,
|
| 89 |
+
0.0,
|
| 90 |
+
0.0,
|
| 91 |
+
0.0,
|
| 92 |
+
0.0
|
| 93 |
+
],
|
| 94 |
+
[
|
| 95 |
+
0.0,
|
| 96 |
+
0.0,
|
| 97 |
+
0.0,
|
| 98 |
+
0.0,
|
| 99 |
+
0.0,
|
| 100 |
+
0.0
|
| 101 |
+
]
|
| 102 |
+
],
|
| 103 |
+
"calibration": {
|
| 104 |
+
"slope": [
|
| 105 |
+
[
|
| 106 |
+
0.9209545465257984,
|
| 107 |
+
0.9296511984995883,
|
| 108 |
+
0.8665324850449269,
|
| 109 |
+
0.8571205392434477,
|
| 110 |
+
0.8638945225240539,
|
| 111 |
+
0.9096884401318036
|
| 112 |
+
],
|
| 113 |
+
[
|
| 114 |
+
0.9209545465257984,
|
| 115 |
+
0.9296511984995883,
|
| 116 |
+
0.8665324850449269,
|
| 117 |
+
0.8571205392434477,
|
| 118 |
+
0.8638945225240539,
|
| 119 |
+
0.9096884401318036
|
| 120 |
+
],
|
| 121 |
+
[
|
| 122 |
+
0.9209545465257984,
|
| 123 |
+
0.9296511984995883,
|
| 124 |
+
0.8665324850449269,
|
| 125 |
+
0.8571205392434477,
|
| 126 |
+
0.8638945225240539,
|
| 127 |
+
0.9096884401318036
|
| 128 |
+
],
|
| 129 |
+
[
|
| 130 |
+
0.8729794575733251,
|
| 131 |
+
0.8833152868650416,
|
| 132 |
+
0.8321477115567986,
|
| 133 |
+
0.8111217889412776,
|
| 134 |
+
0.8159653345345756,
|
| 135 |
+
0.8664380727407343
|
| 136 |
+
],
|
| 137 |
+
[
|
| 138 |
+
0.8729794575733251,
|
| 139 |
+
0.8833152868650416,
|
| 140 |
+
0.8321477115567986,
|
| 141 |
+
0.8111217889412776,
|
| 142 |
+
0.8159653345345756,
|
| 143 |
+
0.8664380727407343
|
| 144 |
+
],
|
| 145 |
+
[
|
| 146 |
+
0.8729794575733251,
|
| 147 |
+
0.8833152868650416,
|
| 148 |
+
0.8321477115567986,
|
| 149 |
+
0.8111217889412776,
|
| 150 |
+
0.8159653345345756,
|
| 151 |
+
0.8664380727407343
|
| 152 |
+
],
|
| 153 |
+
[
|
| 154 |
+
0.8453138986310729,
|
| 155 |
+
0.8608667584621248,
|
| 156 |
+
0.8061101754053712,
|
| 157 |
+
0.7870989077678907,
|
| 158 |
+
0.789248233755185,
|
| 159 |
+
0.8557522424038277
|
| 160 |
+
],
|
| 161 |
+
[
|
| 162 |
+
0.8453138986310729,
|
| 163 |
+
0.8608667584621248,
|
| 164 |
+
0.8061101754053712,
|
| 165 |
+
0.7870989077678907,
|
| 166 |
+
0.789248233755185,
|
| 167 |
+
0.8557522424038277
|
| 168 |
+
],
|
| 169 |
+
[
|
| 170 |
+
0.8453138986310729,
|
| 171 |
+
0.8608667584621248,
|
| 172 |
+
0.8061101754053712,
|
| 173 |
+
0.7870989077678907,
|
| 174 |
+
0.789248233755185,
|
| 175 |
+
0.8557522424038277
|
| 176 |
+
],
|
| 177 |
+
[
|
| 178 |
+
0.8359594441850209,
|
| 179 |
+
0.843564174533108,
|
| 180 |
+
0.7807584953894549,
|
| 181 |
+
0.7657632436881878,
|
| 182 |
+
0.7731109792848831,
|
| 183 |
+
0.8643086284770973
|
| 184 |
+
],
|
| 185 |
+
[
|
| 186 |
+
0.8359594441850209,
|
| 187 |
+
0.843564174533108,
|
| 188 |
+
0.7807584953894549,
|
| 189 |
+
0.7657632436881878,
|
| 190 |
+
0.7731109792848831,
|
| 191 |
+
0.8643086284770973
|
| 192 |
+
],
|
| 193 |
+
[
|
| 194 |
+
0.8359594441850209,
|
| 195 |
+
0.843564174533108,
|
| 196 |
+
0.7807584953894549,
|
| 197 |
+
0.7657632436881878,
|
| 198 |
+
0.7731109792848831,
|
| 199 |
+
0.8643086284770973
|
| 200 |
+
]
|
| 201 |
+
],
|
| 202 |
+
"intercept": [
|
| 203 |
+
[
|
| 204 |
+
-0.0975783462849053,
|
| 205 |
+
-0.7078022441770894,
|
| 206 |
+
-1.3634209813406892,
|
| 207 |
+
-1.7632601521474636,
|
| 208 |
+
-2.0866423261205407,
|
| 209 |
+
-2.8039241749001356
|
| 210 |
+
],
|
| 211 |
+
[
|
| 212 |
+
-0.0975783462849053,
|
| 213 |
+
-0.7078022441770894,
|
| 214 |
+
-1.3634209813406892,
|
| 215 |
+
-1.7632601521474636,
|
| 216 |
+
-2.0866423261205407,
|
| 217 |
+
-2.8039241749001356
|
| 218 |
+
],
|
| 219 |
+
[
|
| 220 |
+
-0.0975783462849053,
|
| 221 |
+
-0.7078022441770894,
|
| 222 |
+
-1.3634209813406892,
|
| 223 |
+
-1.7632601521474636,
|
| 224 |
+
-2.0866423261205407,
|
| 225 |
+
-2.8039241749001356
|
| 226 |
+
],
|
| 227 |
+
[
|
| 228 |
+
-0.11408181573757194,
|
| 229 |
+
-0.692066842549645,
|
| 230 |
+
-1.3484745096011794,
|
| 231 |
+
-1.7586567920107583,
|
| 232 |
+
-2.1130185358618445,
|
| 233 |
+
-2.824540560694743
|
| 234 |
+
],
|
| 235 |
+
[
|
| 236 |
+
-0.11408181573757194,
|
| 237 |
+
-0.692066842549645,
|
| 238 |
+
-1.3484745096011794,
|
| 239 |
+
-1.7586567920107583,
|
| 240 |
+
-2.1130185358618445,
|
| 241 |
+
-2.824540560694743
|
| 242 |
+
],
|
| 243 |
+
[
|
| 244 |
+
-0.11408181573757194,
|
| 245 |
+
-0.692066842549645,
|
| 246 |
+
-1.3484745096011794,
|
| 247 |
+
-1.7586567920107583,
|
| 248 |
+
-2.1130185358618445,
|
| 249 |
+
-2.824540560694743
|
| 250 |
+
],
|
| 251 |
+
[
|
| 252 |
+
-0.12212144531901384,
|
| 253 |
+
-0.6838667556741828,
|
| 254 |
+
-1.3471789816338795,
|
| 255 |
+
-1.769517926429473,
|
| 256 |
+
-2.1146734632871005,
|
| 257 |
+
-2.7735052515598055
|
| 258 |
+
],
|
| 259 |
+
[
|
| 260 |
+
-0.12212144531901384,
|
| 261 |
+
-0.6838667556741828,
|
| 262 |
+
-1.3471789816338795,
|
| 263 |
+
-1.769517926429473,
|
| 264 |
+
-2.1146734632871005,
|
| 265 |
+
-2.7735052515598055
|
| 266 |
+
],
|
| 267 |
+
[
|
| 268 |
+
-0.12212144531901384,
|
| 269 |
+
-0.6838667556741828,
|
| 270 |
+
-1.3471789816338795,
|
| 271 |
+
-1.769517926429473,
|
| 272 |
+
-2.1146734632871005,
|
| 273 |
+
-2.7735052515598055
|
| 274 |
+
],
|
| 275 |
+
[
|
| 276 |
+
-0.12396510160542255,
|
| 277 |
+
-0.6749769380495886,
|
| 278 |
+
-1.356939546696826,
|
| 279 |
+
-1.7896811547069238,
|
| 280 |
+
-2.1127096838955888,
|
| 281 |
+
-2.659330242657959
|
| 282 |
+
],
|
| 283 |
+
[
|
| 284 |
+
-0.12396510160542255,
|
| 285 |
+
-0.6749769380495886,
|
| 286 |
+
-1.356939546696826,
|
| 287 |
+
-1.7896811547069238,
|
| 288 |
+
-2.1127096838955888,
|
| 289 |
+
-2.659330242657959
|
| 290 |
+
],
|
| 291 |
+
[
|
| 292 |
+
-0.12396510160542255,
|
| 293 |
+
-0.6749769380495886,
|
| 294 |
+
-1.356939546696826,
|
| 295 |
+
-1.7896811547069238,
|
| 296 |
+
-2.1127096838955888,
|
| 297 |
+
-2.659330242657959
|
| 298 |
+
]
|
| 299 |
+
]
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"path": "weights/final_all_0_direct_x_best_eval_ema.pt",
|
| 304 |
+
"weight": [
|
| 305 |
+
[
|
| 306 |
+
0.2,
|
| 307 |
+
0.225,
|
| 308 |
+
0.2,
|
| 309 |
+
0.16666666666666669,
|
| 310 |
+
0.18333333333333335,
|
| 311 |
+
0.20833333333333331
|
| 312 |
+
],
|
| 313 |
+
[
|
| 314 |
+
0.2,
|
| 315 |
+
0.225,
|
| 316 |
+
0.2,
|
| 317 |
+
0.16666666666666669,
|
| 318 |
+
0.18333333333333335,
|
| 319 |
+
0.20833333333333331
|
| 320 |
+
],
|
| 321 |
+
[
|
| 322 |
+
0.2,
|
| 323 |
+
0.225,
|
| 324 |
+
0.2,
|
| 325 |
+
0.16666666666666669,
|
| 326 |
+
0.18333333333333335,
|
| 327 |
+
0.20833333333333331
|
| 328 |
+
],
|
| 329 |
+
[
|
| 330 |
+
0.25,
|
| 331 |
+
0.29166666666666663,
|
| 332 |
+
0.225,
|
| 333 |
+
0.2,
|
| 334 |
+
0.2,
|
| 335 |
+
0.225
|
| 336 |
+
],
|
| 337 |
+
[
|
| 338 |
+
0.25,
|
| 339 |
+
0.29166666666666663,
|
| 340 |
+
0.225,
|
| 341 |
+
0.2,
|
| 342 |
+
0.2,
|
| 343 |
+
0.18333333333333335
|
| 344 |
+
],
|
| 345 |
+
[
|
| 346 |
+
0.25,
|
| 347 |
+
0.29166666666666663,
|
| 348 |
+
0.225,
|
| 349 |
+
0.2,
|
| 350 |
+
0.2,
|
| 351 |
+
0.18333333333333335
|
| 352 |
+
],
|
| 353 |
+
[
|
| 354 |
+
0.25,
|
| 355 |
+
0.29166666666666663,
|
| 356 |
+
0.225,
|
| 357 |
+
0.2,
|
| 358 |
+
0.2,
|
| 359 |
+
0.17142857142857143
|
| 360 |
+
],
|
| 361 |
+
[
|
| 362 |
+
0.25,
|
| 363 |
+
0.29166666666666663,
|
| 364 |
+
0.225,
|
| 365 |
+
0.2,
|
| 366 |
+
0.2,
|
| 367 |
+
0.17142857142857143
|
| 368 |
+
],
|
| 369 |
+
[
|
| 370 |
+
0.25,
|
| 371 |
+
0.29166666666666663,
|
| 372 |
+
0.225,
|
| 373 |
+
0.2,
|
| 374 |
+
0.2,
|
| 375 |
+
0.2
|
| 376 |
+
],
|
| 377 |
+
[
|
| 378 |
+
0.25,
|
| 379 |
+
0.29166666666666663,
|
| 380 |
+
0.225,
|
| 381 |
+
0.2,
|
| 382 |
+
0.2,
|
| 383 |
+
0.2
|
| 384 |
+
],
|
| 385 |
+
[
|
| 386 |
+
0.25,
|
| 387 |
+
0.29166666666666663,
|
| 388 |
+
0.225,
|
| 389 |
+
0.2,
|
| 390 |
+
0.2,
|
| 391 |
+
0.2
|
| 392 |
+
],
|
| 393 |
+
[
|
| 394 |
+
0.25,
|
| 395 |
+
0.29166666666666663,
|
| 396 |
+
0.225,
|
| 397 |
+
0.2,
|
| 398 |
+
0.2,
|
| 399 |
+
0.2
|
| 400 |
+
]
|
| 401 |
+
],
|
| 402 |
+
"calibration": {
|
| 403 |
+
"slope": [
|
| 404 |
+
[
|
| 405 |
+
0.9156440867213546,
|
| 406 |
+
0.9264188340292171,
|
| 407 |
+
0.8532485046890878,
|
| 408 |
+
0.848913844899172,
|
| 409 |
+
0.8542167241922503,
|
| 410 |
+
0.8899538956303116
|
| 411 |
+
],
|
| 412 |
+
[
|
| 413 |
+
0.9156440867213546,
|
| 414 |
+
0.9264188340292171,
|
| 415 |
+
0.8532485046890878,
|
| 416 |
+
0.848913844899172,
|
| 417 |
+
0.8542167241922503,
|
| 418 |
+
0.8899538956303116
|
| 419 |
+
],
|
| 420 |
+
[
|
| 421 |
+
0.9156440867213546,
|
| 422 |
+
0.9264188340292171,
|
| 423 |
+
0.8532485046890878,
|
| 424 |
+
0.848913844899172,
|
| 425 |
+
0.8542167241922503,
|
| 426 |
+
0.8899538956303116
|
| 427 |
+
],
|
| 428 |
+
[
|
| 429 |
+
0.8696698930895365,
|
| 430 |
+
0.8825092114626827,
|
| 431 |
+
0.824146154823431,
|
| 432 |
+
0.8078981176348785,
|
| 433 |
+
0.8190238169268915,
|
| 434 |
+
0.8699210766427039
|
| 435 |
+
],
|
| 436 |
+
[
|
| 437 |
+
0.8696698930895365,
|
| 438 |
+
0.8825092114626827,
|
| 439 |
+
0.824146154823431,
|
| 440 |
+
0.8078981176348785,
|
| 441 |
+
0.8190238169268915,
|
| 442 |
+
0.8699210766427039
|
| 443 |
+
],
|
| 444 |
+
[
|
| 445 |
+
0.8696698930895365,
|
| 446 |
+
0.8825092114626827,
|
| 447 |
+
0.824146154823431,
|
| 448 |
+
0.8078981176348785,
|
| 449 |
+
0.8190238169268915,
|
| 450 |
+
0.8699210766427039
|
| 451 |
+
],
|
| 452 |
+
[
|
| 453 |
+
0.8393760835637337,
|
| 454 |
+
0.8582343630093491,
|
| 455 |
+
0.7985429101714314,
|
| 456 |
+
0.7860555118607627,
|
| 457 |
+
0.795272151579525,
|
| 458 |
+
0.8661768694666692
|
| 459 |
+
],
|
| 460 |
+
[
|
| 461 |
+
0.8393760835637337,
|
| 462 |
+
0.8582343630093491,
|
| 463 |
+
0.7985429101714314,
|
| 464 |
+
0.7860555118607627,
|
| 465 |
+
0.795272151579525,
|
| 466 |
+
0.8661768694666692
|
| 467 |
+
],
|
| 468 |
+
[
|
| 469 |
+
0.8393760835637337,
|
| 470 |
+
0.8582343630093491,
|
| 471 |
+
0.7985429101714314,
|
| 472 |
+
0.7860555118607627,
|
| 473 |
+
0.795272151579525,
|
| 474 |
+
0.8661768694666692
|
| 475 |
+
],
|
| 476 |
+
[
|
| 477 |
+
0.8256309342430321,
|
| 478 |
+
0.8358121031540269,
|
| 479 |
+
0.776985522009255,
|
| 480 |
+
0.7622349743601357,
|
| 481 |
+
0.7771389935566719,
|
| 482 |
+
0.8506002905631864
|
| 483 |
+
],
|
| 484 |
+
[
|
| 485 |
+
0.8256309342430321,
|
| 486 |
+
0.8358121031540269,
|
| 487 |
+
0.776985522009255,
|
| 488 |
+
0.7622349743601357,
|
| 489 |
+
0.7771389935566719,
|
| 490 |
+
0.8506002905631864
|
| 491 |
+
],
|
| 492 |
+
[
|
| 493 |
+
0.8256309342430321,
|
| 494 |
+
0.8358121031540269,
|
| 495 |
+
0.776985522009255,
|
| 496 |
+
0.7622349743601357,
|
| 497 |
+
0.7771389935566719,
|
| 498 |
+
0.8506002905631864
|
| 499 |
+
]
|
| 500 |
+
],
|
| 501 |
+
"intercept": [
|
| 502 |
+
[
|
| 503 |
+
-0.10838413119459712,
|
| 504 |
+
-0.704901862398928,
|
| 505 |
+
-1.344926208785917,
|
| 506 |
+
-1.7939565303129756,
|
| 507 |
+
-2.1499675738887536,
|
| 508 |
+
-2.913900330333072
|
| 509 |
+
],
|
| 510 |
+
[
|
| 511 |
+
-0.10838413119459712,
|
| 512 |
+
-0.704901862398928,
|
| 513 |
+
-1.344926208785917,
|
| 514 |
+
-1.7939565303129756,
|
| 515 |
+
-2.1499675738887536,
|
| 516 |
+
-2.913900330333072
|
| 517 |
+
],
|
| 518 |
+
[
|
| 519 |
+
-0.10838413119459712,
|
| 520 |
+
-0.704901862398928,
|
| 521 |
+
-1.344926208785917,
|
| 522 |
+
-1.7939565303129756,
|
| 523 |
+
-2.1499675738887536,
|
| 524 |
+
-2.913900330333072
|
| 525 |
+
],
|
| 526 |
+
[
|
| 527 |
+
-0.11561596440318843,
|
| 528 |
+
-0.6871063682561058,
|
| 529 |
+
-1.3512719291852542,
|
| 530 |
+
-1.8102552659447082,
|
| 531 |
+
-2.1655264155652807,
|
| 532 |
+
-2.823836912232494
|
| 533 |
+
],
|
| 534 |
+
[
|
| 535 |
+
-0.11561596440318843,
|
| 536 |
+
-0.6871063682561058,
|
| 537 |
+
-1.3512719291852542,
|
| 538 |
+
-1.8102552659447082,
|
| 539 |
+
-2.1655264155652807,
|
| 540 |
+
-2.823836912232494
|
| 541 |
+
],
|
| 542 |
+
[
|
| 543 |
+
-0.11561596440318843,
|
| 544 |
+
-0.6871063682561058,
|
| 545 |
+
-1.3512719291852542,
|
| 546 |
+
-1.8102552659447082,
|
| 547 |
+
-2.1655264155652807,
|
| 548 |
+
-2.823836912232494
|
| 549 |
+
],
|
| 550 |
+
[
|
| 551 |
+
-0.13743620550613592,
|
| 552 |
+
-0.6967504177148248,
|
| 553 |
+
-1.3772506080918394,
|
| 554 |
+
-1.836303627247302,
|
| 555 |
+
-2.171628915607013,
|
| 556 |
+
-2.7457359137592894
|
| 557 |
+
],
|
| 558 |
+
[
|
| 559 |
+
-0.13743620550613592,
|
| 560 |
+
-0.6967504177148248,
|
| 561 |
+
-1.3772506080918394,
|
| 562 |
+
-1.836303627247302,
|
| 563 |
+
-2.171628915607013,
|
| 564 |
+
-2.7457359137592894
|
| 565 |
+
],
|
| 566 |
+
[
|
| 567 |
+
-0.13743620550613592,
|
| 568 |
+
-0.6967504177148248,
|
| 569 |
+
-1.3772506080918394,
|
| 570 |
+
-1.836303627247302,
|
| 571 |
+
-2.171628915607013,
|
| 572 |
+
-2.7457359137592894
|
| 573 |
+
],
|
| 574 |
+
[
|
| 575 |
+
-0.14449406938016773,
|
| 576 |
+
-0.6944161170624511,
|
| 577 |
+
-1.3907460172528154,
|
| 578 |
+
-1.8617837253512768,
|
| 579 |
+
-2.1732242922456706,
|
| 580 |
+
-2.75703329145677
|
| 581 |
+
],
|
| 582 |
+
[
|
| 583 |
+
-0.14449406938016773,
|
| 584 |
+
-0.6944161170624511,
|
| 585 |
+
-1.3907460172528154,
|
| 586 |
+
-1.8617837253512768,
|
| 587 |
+
-2.1732242922456706,
|
| 588 |
+
-2.75703329145677
|
| 589 |
+
],
|
| 590 |
+
[
|
| 591 |
+
-0.14449406938016773,
|
| 592 |
+
-0.6944161170624511,
|
| 593 |
+
-1.3907460172528154,
|
| 594 |
+
-1.8617837253512768,
|
| 595 |
+
-2.1732242922456706,
|
| 596 |
+
-2.75703329145677
|
| 597 |
+
]
|
| 598 |
+
]
|
| 599 |
+
}
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"path": "weights/final_all_1_short_z_best_eval_ema.pt",
|
| 603 |
+
"weight": [
|
| 604 |
+
[
|
| 605 |
+
0.2,
|
| 606 |
+
0.225,
|
| 607 |
+
0.1,
|
| 608 |
+
0.16666666666666669,
|
| 609 |
+
0.08333333333333333,
|
| 610 |
+
0.08333333333333333
|
| 611 |
+
],
|
| 612 |
+
[
|
| 613 |
+
0.2,
|
| 614 |
+
0.225,
|
| 615 |
+
0.1,
|
| 616 |
+
0.16666666666666669,
|
| 617 |
+
0.08333333333333333,
|
| 618 |
+
0.08333333333333333
|
| 619 |
+
],
|
| 620 |
+
[
|
| 621 |
+
0.2,
|
| 622 |
+
0.225,
|
| 623 |
+
0.1,
|
| 624 |
+
0.16666666666666669,
|
| 625 |
+
0.08333333333333333,
|
| 626 |
+
0.08333333333333333
|
| 627 |
+
],
|
| 628 |
+
[
|
| 629 |
+
0.0,
|
| 630 |
+
0.0,
|
| 631 |
+
0.0,
|
| 632 |
+
0.0,
|
| 633 |
+
0.0,
|
| 634 |
+
0.0
|
| 635 |
+
],
|
| 636 |
+
[
|
| 637 |
+
0.0,
|
| 638 |
+
0.0,
|
| 639 |
+
0.0,
|
| 640 |
+
0.0,
|
| 641 |
+
0.0,
|
| 642 |
+
0.0
|
| 643 |
+
],
|
| 644 |
+
[
|
| 645 |
+
0.0,
|
| 646 |
+
0.0,
|
| 647 |
+
0.0,
|
| 648 |
+
0.0,
|
| 649 |
+
0.0,
|
| 650 |
+
0.0
|
| 651 |
+
],
|
| 652 |
+
[
|
| 653 |
+
0.0,
|
| 654 |
+
0.0,
|
| 655 |
+
0.0,
|
| 656 |
+
0.0,
|
| 657 |
+
0.0,
|
| 658 |
+
0.0
|
| 659 |
+
],
|
| 660 |
+
[
|
| 661 |
+
0.0,
|
| 662 |
+
0.0,
|
| 663 |
+
0.0,
|
| 664 |
+
0.0,
|
| 665 |
+
0.0,
|
| 666 |
+
0.0
|
| 667 |
+
],
|
| 668 |
+
[
|
| 669 |
+
0.0,
|
| 670 |
+
0.0,
|
| 671 |
+
0.0,
|
| 672 |
+
0.0,
|
| 673 |
+
0.0,
|
| 674 |
+
0.0
|
| 675 |
+
],
|
| 676 |
+
[
|
| 677 |
+
0.0,
|
| 678 |
+
0.0,
|
| 679 |
+
0.0,
|
| 680 |
+
0.0,
|
| 681 |
+
0.0,
|
| 682 |
+
0.0
|
| 683 |
+
],
|
| 684 |
+
[
|
| 685 |
+
0.0,
|
| 686 |
+
0.0,
|
| 687 |
+
0.0,
|
| 688 |
+
0.0,
|
| 689 |
+
0.0,
|
| 690 |
+
0.0
|
| 691 |
+
],
|
| 692 |
+
[
|
| 693 |
+
0.0,
|
| 694 |
+
0.0,
|
| 695 |
+
0.0,
|
| 696 |
+
0.0,
|
| 697 |
+
0.0,
|
| 698 |
+
0.0
|
| 699 |
+
]
|
| 700 |
+
],
|
| 701 |
+
"calibration": {
|
| 702 |
+
"slope": [
|
| 703 |
+
[
|
| 704 |
+
0.9007415622592696,
|
| 705 |
+
0.9046915676773061,
|
| 706 |
+
0.8540085729249538,
|
| 707 |
+
0.863145839627958,
|
| 708 |
+
0.8733935928227378,
|
| 709 |
+
0.9005621739823401
|
| 710 |
+
],
|
| 711 |
+
[
|
| 712 |
+
0.9007415622592696,
|
| 713 |
+
0.9046915676773061,
|
| 714 |
+
0.8540085729249538,
|
| 715 |
+
0.863145839627958,
|
| 716 |
+
0.8733935928227378,
|
| 717 |
+
0.9005621739823401
|
| 718 |
+
],
|
| 719 |
+
[
|
| 720 |
+
0.9007415622592696,
|
| 721 |
+
0.9046915676773061,
|
| 722 |
+
0.8540085729249538,
|
| 723 |
+
0.863145839627958,
|
| 724 |
+
0.8733935928227378,
|
| 725 |
+
0.9005621739823401
|
| 726 |
+
],
|
| 727 |
+
[
|
| 728 |
+
0.8192759560024969,
|
| 729 |
+
0.8100572035468097,
|
| 730 |
+
0.7596283970308335,
|
| 731 |
+
0.7602705368978758,
|
| 732 |
+
0.7793461201090194,
|
| 733 |
+
0.8241879892816704
|
| 734 |
+
],
|
| 735 |
+
[
|
| 736 |
+
0.8192759560024969,
|
| 737 |
+
0.8100572035468097,
|
| 738 |
+
0.7596283970308335,
|
| 739 |
+
0.7602705368978758,
|
| 740 |
+
0.7793461201090194,
|
| 741 |
+
0.8241879892816704
|
| 742 |
+
],
|
| 743 |
+
[
|
| 744 |
+
0.8192759560024969,
|
| 745 |
+
0.8100572035468097,
|
| 746 |
+
0.7596283970308335,
|
| 747 |
+
0.7602705368978758,
|
| 748 |
+
0.7793461201090194,
|
| 749 |
+
0.8241879892816704
|
| 750 |
+
],
|
| 751 |
+
[
|
| 752 |
+
0.7913648673523391,
|
| 753 |
+
0.7823001626114603,
|
| 754 |
+
0.7222990307221824,
|
| 755 |
+
0.7203793580692207,
|
| 756 |
+
0.7460151709413577,
|
| 757 |
+
0.7977873837091483
|
| 758 |
+
],
|
| 759 |
+
[
|
| 760 |
+
0.7913648673523391,
|
| 761 |
+
0.7823001626114603,
|
| 762 |
+
0.7222990307221824,
|
| 763 |
+
0.7203793580692207,
|
| 764 |
+
0.7460151709413577,
|
| 765 |
+
0.7977873837091483
|
| 766 |
+
],
|
| 767 |
+
[
|
| 768 |
+
0.7913648673523391,
|
| 769 |
+
0.7823001626114603,
|
| 770 |
+
0.7222990307221824,
|
| 771 |
+
0.7203793580692207,
|
| 772 |
+
0.7460151709413577,
|
| 773 |
+
0.7977873837091483
|
| 774 |
+
],
|
| 775 |
+
[
|
| 776 |
+
0.792751928493083,
|
| 777 |
+
0.7812081048864167,
|
| 778 |
+
0.7096848422903462,
|
| 779 |
+
0.7004975976553599,
|
| 780 |
+
0.7331083718631713,
|
| 781 |
+
0.7951671456025633
|
| 782 |
+
],
|
| 783 |
+
[
|
| 784 |
+
0.792751928493083,
|
| 785 |
+
0.7812081048864167,
|
| 786 |
+
0.7096848422903462,
|
| 787 |
+
0.7004975976553599,
|
| 788 |
+
0.7331083718631713,
|
| 789 |
+
0.7951671456025633
|
| 790 |
+
],
|
| 791 |
+
[
|
| 792 |
+
0.792751928493083,
|
| 793 |
+
0.7812081048864167,
|
| 794 |
+
0.7096848422903462,
|
| 795 |
+
0.7004975976553599,
|
| 796 |
+
0.7331083718631713,
|
| 797 |
+
0.7951671456025633
|
| 798 |
+
]
|
| 799 |
+
],
|
| 800 |
+
"intercept": [
|
| 801 |
+
[
|
| 802 |
+
-0.04950974648824796,
|
| 803 |
+
-0.17700109533515837,
|
| 804 |
+
-0.5593924236537829,
|
| 805 |
+
-0.9276251507506077,
|
| 806 |
+
-1.3459001635839678,
|
| 807 |
+
-2.4546440397226315
|
| 808 |
+
],
|
| 809 |
+
[
|
| 810 |
+
-0.04950974648824796,
|
| 811 |
+
-0.17700109533515837,
|
| 812 |
+
-0.5593924236537829,
|
| 813 |
+
-0.9276251507506077,
|
| 814 |
+
-1.3459001635839678,
|
| 815 |
+
-2.4546440397226315
|
| 816 |
+
],
|
| 817 |
+
[
|
| 818 |
+
-0.04950974648824796,
|
| 819 |
+
-0.17700109533515837,
|
| 820 |
+
-0.5593924236537829,
|
| 821 |
+
-0.9276251507506077,
|
| 822 |
+
-1.3459001635839678,
|
| 823 |
+
-2.4546440397226315
|
| 824 |
+
],
|
| 825 |
+
[
|
| 826 |
+
-0.07037721415534624,
|
| 827 |
+
-0.2308751567089368,
|
| 828 |
+
-0.725343668387235,
|
| 829 |
+
-1.1492379562449768,
|
| 830 |
+
-1.5390085585251525,
|
| 831 |
+
-2.6429769027682393
|
| 832 |
+
],
|
| 833 |
+
[
|
| 834 |
+
-0.07037721415534624,
|
| 835 |
+
-0.2308751567089368,
|
| 836 |
+
-0.725343668387235,
|
| 837 |
+
-1.1492379562449768,
|
| 838 |
+
-1.5390085585251525,
|
| 839 |
+
-2.6429769027682393
|
| 840 |
+
],
|
| 841 |
+
[
|
| 842 |
+
-0.07037721415534624,
|
| 843 |
+
-0.2308751567089368,
|
| 844 |
+
-0.725343668387235,
|
| 845 |
+
-1.1492379562449768,
|
| 846 |
+
-1.5390085585251525,
|
| 847 |
+
-2.6429769027682393
|
| 848 |
+
],
|
| 849 |
+
[
|
| 850 |
+
-0.14751157323917732,
|
| 851 |
+
-0.2907861214627178,
|
| 852 |
+
-0.7987891750554047,
|
| 853 |
+
-1.2598950759178966,
|
| 854 |
+
-1.5969369683197772,
|
| 855 |
+
-2.6675146220475057
|
| 856 |
+
],
|
| 857 |
+
[
|
| 858 |
+
-0.14751157323917732,
|
| 859 |
+
-0.2907861214627178,
|
| 860 |
+
-0.7987891750554047,
|
| 861 |
+
-1.2598950759178966,
|
| 862 |
+
-1.5969369683197772,
|
| 863 |
+
-2.6675146220475057
|
| 864 |
+
],
|
| 865 |
+
[
|
| 866 |
+
-0.14751157323917732,
|
| 867 |
+
-0.2907861214627178,
|
| 868 |
+
-0.7987891750554047,
|
| 869 |
+
-1.2598950759178966,
|
| 870 |
+
-1.5969369683197772,
|
| 871 |
+
-2.6675146220475057
|
| 872 |
+
],
|
| 873 |
+
[
|
| 874 |
+
-0.21593865821604774,
|
| 875 |
+
-0.340031186787991,
|
| 876 |
+
-0.8287518192237237,
|
| 877 |
+
-1.3141438287597749,
|
| 878 |
+
-1.605915230869124,
|
| 879 |
+
-2.6428067542330527
|
| 880 |
+
],
|
| 881 |
+
[
|
| 882 |
+
-0.21593865821604774,
|
| 883 |
+
-0.340031186787991,
|
| 884 |
+
-0.8287518192237237,
|
| 885 |
+
-1.3141438287597749,
|
| 886 |
+
-1.605915230869124,
|
| 887 |
+
-2.6428067542330527
|
| 888 |
+
],
|
| 889 |
+
[
|
| 890 |
+
-0.21593865821604774,
|
| 891 |
+
-0.340031186787991,
|
| 892 |
+
-0.8287518192237237,
|
| 893 |
+
-1.3141438287597749,
|
| 894 |
+
-1.605915230869124,
|
| 895 |
+
-2.6428067542330527
|
| 896 |
+
]
|
| 897 |
+
]
|
| 898 |
+
}
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"path": "weights/final_all_8_simvp_u_best_eval_ema.pt",
|
| 902 |
+
"weight": [
|
| 903 |
+
[
|
| 904 |
+
0.0,
|
| 905 |
+
0.0,
|
| 906 |
+
0.0,
|
| 907 |
+
0.0,
|
| 908 |
+
0.0,
|
| 909 |
+
0.0
|
| 910 |
+
],
|
| 911 |
+
[
|
| 912 |
+
0.0,
|
| 913 |
+
0.0,
|
| 914 |
+
0.0,
|
| 915 |
+
0.0,
|
| 916 |
+
0.0,
|
| 917 |
+
0.0
|
| 918 |
+
],
|
| 919 |
+
[
|
| 920 |
+
0.0,
|
| 921 |
+
0.0,
|
| 922 |
+
0.0,
|
| 923 |
+
0.0,
|
| 924 |
+
0.0,
|
| 925 |
+
0.0
|
| 926 |
+
],
|
| 927 |
+
[
|
| 928 |
+
0.0,
|
| 929 |
+
0.0,
|
| 930 |
+
0.0,
|
| 931 |
+
0.0,
|
| 932 |
+
0.0,
|
| 933 |
+
0.0
|
| 934 |
+
],
|
| 935 |
+
[
|
| 936 |
+
0.0,
|
| 937 |
+
0.0,
|
| 938 |
+
0.0,
|
| 939 |
+
0.0,
|
| 940 |
+
0.0,
|
| 941 |
+
0.08333333333333334
|
| 942 |
+
],
|
| 943 |
+
[
|
| 944 |
+
0.0,
|
| 945 |
+
0.0,
|
| 946 |
+
0.0,
|
| 947 |
+
0.0,
|
| 948 |
+
0.0,
|
| 949 |
+
0.08333333333333334
|
| 950 |
+
],
|
| 951 |
+
[
|
| 952 |
+
0.0,
|
| 953 |
+
0.0,
|
| 954 |
+
0.0,
|
| 955 |
+
0.0,
|
| 956 |
+
0.0,
|
| 957 |
+
0.07142857142857144
|
| 958 |
+
],
|
| 959 |
+
[
|
| 960 |
+
0.0,
|
| 961 |
+
0.0,
|
| 962 |
+
0.0,
|
| 963 |
+
0.0,
|
| 964 |
+
0.0,
|
| 965 |
+
0.07142857142857144
|
| 966 |
+
],
|
| 967 |
+
[
|
| 968 |
+
0.0,
|
| 969 |
+
0.0,
|
| 970 |
+
0.0,
|
| 971 |
+
0.0,
|
| 972 |
+
0.0,
|
| 973 |
+
0.1
|
| 974 |
+
],
|
| 975 |
+
[
|
| 976 |
+
0.0,
|
| 977 |
+
0.0,
|
| 978 |
+
0.0,
|
| 979 |
+
0.0,
|
| 980 |
+
0.0,
|
| 981 |
+
0.1
|
| 982 |
+
],
|
| 983 |
+
[
|
| 984 |
+
0.0,
|
| 985 |
+
0.0,
|
| 986 |
+
0.0,
|
| 987 |
+
0.0,
|
| 988 |
+
0.0,
|
| 989 |
+
0.1
|
| 990 |
+
],
|
| 991 |
+
[
|
| 992 |
+
0.0,
|
| 993 |
+
0.0,
|
| 994 |
+
0.0,
|
| 995 |
+
0.0,
|
| 996 |
+
0.0,
|
| 997 |
+
0.1
|
| 998 |
+
]
|
| 999 |
+
],
|
| 1000 |
+
"calibration": {
|
| 1001 |
+
"slope": [
|
| 1002 |
+
[
|
| 1003 |
+
0.94058772452691,
|
| 1004 |
+
0.9580257105659304,
|
| 1005 |
+
0.9156865164399522,
|
| 1006 |
+
0.9189582966772515,
|
| 1007 |
+
0.9376514509657542,
|
| 1008 |
+
0.9908125375501373
|
| 1009 |
+
],
|
| 1010 |
+
[
|
| 1011 |
+
0.94058772452691,
|
| 1012 |
+
0.9580257105659304,
|
| 1013 |
+
0.9156865164399522,
|
| 1014 |
+
0.9189582966772515,
|
| 1015 |
+
0.9376514509657542,
|
| 1016 |
+
0.9908125375501373
|
| 1017 |
+
],
|
| 1018 |
+
[
|
| 1019 |
+
0.94058772452691,
|
| 1020 |
+
0.9580257105659304,
|
| 1021 |
+
0.9156865164399522,
|
| 1022 |
+
0.9189582966772515,
|
| 1023 |
+
0.9376514509657542,
|
| 1024 |
+
0.9908125375501373
|
| 1025 |
+
],
|
| 1026 |
+
[
|
| 1027 |
+
0.8933706216129238,
|
| 1028 |
+
0.9100553967504852,
|
| 1029 |
+
0.8784737745362842,
|
| 1030 |
+
0.8787865856361375,
|
| 1031 |
+
0.8944392838251882,
|
| 1032 |
+
0.9687364174895007
|
| 1033 |
+
],
|
| 1034 |
+
[
|
| 1035 |
+
0.8933706216129238,
|
| 1036 |
+
0.9100553967504852,
|
| 1037 |
+
0.8784737745362842,
|
| 1038 |
+
0.8787865856361375,
|
| 1039 |
+
0.8944392838251882,
|
| 1040 |
+
0.9687364174895007
|
| 1041 |
+
],
|
| 1042 |
+
[
|
| 1043 |
+
0.8933706216129238,
|
| 1044 |
+
0.9100553967504852,
|
| 1045 |
+
0.8784737745362842,
|
| 1046 |
+
0.8787865856361375,
|
| 1047 |
+
0.8944392838251882,
|
| 1048 |
+
0.9687364174895007
|
| 1049 |
+
],
|
| 1050 |
+
[
|
| 1051 |
+
0.8696863758719336,
|
| 1052 |
+
0.8884649416909258,
|
| 1053 |
+
0.8588598953238482,
|
| 1054 |
+
0.8575396318051015,
|
| 1055 |
+
0.8754435954823442,
|
| 1056 |
+
0.9588510083430398
|
| 1057 |
+
],
|
| 1058 |
+
[
|
| 1059 |
+
0.8696863758719336,
|
| 1060 |
+
0.8884649416909258,
|
| 1061 |
+
0.8588598953238482,
|
| 1062 |
+
0.8575396318051015,
|
| 1063 |
+
0.8754435954823442,
|
| 1064 |
+
0.9588510083430398
|
| 1065 |
+
],
|
| 1066 |
+
[
|
| 1067 |
+
0.8696863758719336,
|
| 1068 |
+
0.8884649416909258,
|
| 1069 |
+
0.8588598953238482,
|
| 1070 |
+
0.8575396318051015,
|
| 1071 |
+
0.8754435954823442,
|
| 1072 |
+
0.9588510083430398
|
| 1073 |
+
],
|
| 1074 |
+
[
|
| 1075 |
+
0.858685676407249,
|
| 1076 |
+
0.8731794882640567,
|
| 1077 |
+
0.8402256528157025,
|
| 1078 |
+
0.8409688473799922,
|
| 1079 |
+
0.8650986506373523,
|
| 1080 |
+
0.957114139657655
|
| 1081 |
+
],
|
| 1082 |
+
[
|
| 1083 |
+
0.858685676407249,
|
| 1084 |
+
0.8731794882640567,
|
| 1085 |
+
0.8402256528157025,
|
| 1086 |
+
0.8409688473799922,
|
| 1087 |
+
0.8650986506373523,
|
| 1088 |
+
0.957114139657655
|
| 1089 |
+
],
|
| 1090 |
+
[
|
| 1091 |
+
0.858685676407249,
|
| 1092 |
+
0.8731794882640567,
|
| 1093 |
+
0.8402256528157025,
|
| 1094 |
+
0.8409688473799922,
|
| 1095 |
+
0.8650986506373523,
|
| 1096 |
+
0.957114139657655
|
| 1097 |
+
]
|
| 1098 |
+
],
|
| 1099 |
+
"intercept": [
|
| 1100 |
+
[
|
| 1101 |
+
-0.02521991238985687,
|
| 1102 |
+
-0.6723971722850218,
|
| 1103 |
+
-1.3603545101461152,
|
| 1104 |
+
-1.7835911884381344,
|
| 1105 |
+
-2.099293640153878,
|
| 1106 |
+
-2.747324015951591
|
| 1107 |
+
],
|
| 1108 |
+
[
|
| 1109 |
+
-0.02521991238985687,
|
| 1110 |
+
-0.6723971722850218,
|
| 1111 |
+
-1.3603545101461152,
|
| 1112 |
+
-1.7835911884381344,
|
| 1113 |
+
-2.099293640153878,
|
| 1114 |
+
-2.747324015951591
|
| 1115 |
+
],
|
| 1116 |
+
[
|
| 1117 |
+
-0.02521991238985687,
|
| 1118 |
+
-0.6723971722850218,
|
| 1119 |
+
-1.3603545101461152,
|
| 1120 |
+
-1.7835911884381344,
|
| 1121 |
+
-2.099293640153878,
|
| 1122 |
+
-2.747324015951591
|
| 1123 |
+
],
|
| 1124 |
+
[
|
| 1125 |
+
-0.06862224546930526,
|
| 1126 |
+
-0.6699631772656878,
|
| 1127 |
+
-1.3508931928420247,
|
| 1128 |
+
-1.7705350986993917,
|
| 1129 |
+
-2.1192939898432797,
|
| 1130 |
+
-2.729832970202413
|
| 1131 |
+
],
|
| 1132 |
+
[
|
| 1133 |
+
-0.06862224546930526,
|
| 1134 |
+
-0.6699631772656878,
|
| 1135 |
+
-1.3508931928420247,
|
| 1136 |
+
-1.7705350986993917,
|
| 1137 |
+
-2.1192939898432797,
|
| 1138 |
+
-2.729832970202413
|
| 1139 |
+
],
|
| 1140 |
+
[
|
| 1141 |
+
-0.06862224546930526,
|
| 1142 |
+
-0.6699631772656878,
|
| 1143 |
+
-1.3508931928420247,
|
| 1144 |
+
-1.7705350986993917,
|
| 1145 |
+
-2.1192939898432797,
|
| 1146 |
+
-2.729832970202413
|
| 1147 |
+
],
|
| 1148 |
+
[
|
| 1149 |
+
-0.08730723039612565,
|
| 1150 |
+
-0.6711136212773771,
|
| 1151 |
+
-1.3532845540749412,
|
| 1152 |
+
-1.7837634290473656,
|
| 1153 |
+
-2.1184890630403843,
|
| 1154 |
+
-2.695006141941225
|
| 1155 |
+
],
|
| 1156 |
+
[
|
| 1157 |
+
-0.08730723039612565,
|
| 1158 |
+
-0.6711136212773771,
|
| 1159 |
+
-1.3532845540749412,
|
| 1160 |
+
-1.7837634290473656,
|
| 1161 |
+
-2.1184890630403843,
|
| 1162 |
+
-2.695006141941225
|
| 1163 |
+
],
|
| 1164 |
+
[
|
| 1165 |
+
-0.08730723039612565,
|
| 1166 |
+
-0.6711136212773771,
|
| 1167 |
+
-1.3532845540749412,
|
| 1168 |
+
-1.7837634290473656,
|
| 1169 |
+
-2.1184890630403843,
|
| 1170 |
+
-2.695006141941225
|
| 1171 |
+
],
|
| 1172 |
+
[
|
| 1173 |
+
-0.0913090989506724,
|
| 1174 |
+
-0.6660537707334276,
|
| 1175 |
+
-1.3585410802115145,
|
| 1176 |
+
-1.7943973925024663,
|
| 1177 |
+
-2.109533651899351,
|
| 1178 |
+
-2.633475762430545
|
| 1179 |
+
],
|
| 1180 |
+
[
|
| 1181 |
+
-0.0913090989506724,
|
| 1182 |
+
-0.6660537707334276,
|
| 1183 |
+
-1.3585410802115145,
|
| 1184 |
+
-1.7943973925024663,
|
| 1185 |
+
-2.109533651899351,
|
| 1186 |
+
-2.633475762430545
|
| 1187 |
+
],
|
| 1188 |
+
[
|
| 1189 |
+
-0.0913090989506724,
|
| 1190 |
+
-0.6660537707334276,
|
| 1191 |
+
-1.3585410802115145,
|
| 1192 |
+
-1.7943973925024663,
|
| 1193 |
+
-2.109533651899351,
|
| 1194 |
+
-2.633475762430545
|
| 1195 |
+
]
|
| 1196 |
+
]
|
| 1197 |
+
}
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"path": "weights/all_ac_early_0_wide_ac_20k_eval_ema.pt",
|
| 1201 |
+
"weight": [
|
| 1202 |
+
[
|
| 1203 |
+
0.1,
|
| 1204 |
+
0.1,
|
| 1205 |
+
0.2,
|
| 1206 |
+
0.16666666666666669,
|
| 1207 |
+
0.18333333333333335,
|
| 1208 |
+
0.20833333333333331
|
| 1209 |
+
],
|
| 1210 |
+
[
|
| 1211 |
+
0.1,
|
| 1212 |
+
0.1,
|
| 1213 |
+
0.2,
|
| 1214 |
+
0.16666666666666669,
|
| 1215 |
+
0.18333333333333335,
|
| 1216 |
+
0.20833333333333331
|
| 1217 |
+
],
|
| 1218 |
+
[
|
| 1219 |
+
0.1,
|
| 1220 |
+
0.1,
|
| 1221 |
+
0.2,
|
| 1222 |
+
0.16666666666666669,
|
| 1223 |
+
0.18333333333333335,
|
| 1224 |
+
0.20833333333333331
|
| 1225 |
+
],
|
| 1226 |
+
[
|
| 1227 |
+
0.125,
|
| 1228 |
+
0.125,
|
| 1229 |
+
0.225,
|
| 1230 |
+
0.2,
|
| 1231 |
+
0.2,
|
| 1232 |
+
0.225
|
| 1233 |
+
],
|
| 1234 |
+
[
|
| 1235 |
+
0.125,
|
| 1236 |
+
0.125,
|
| 1237 |
+
0.225,
|
| 1238 |
+
0.2,
|
| 1239 |
+
0.2,
|
| 1240 |
+
0.18333333333333335
|
| 1241 |
+
],
|
| 1242 |
+
[
|
| 1243 |
+
0.125,
|
| 1244 |
+
0.125,
|
| 1245 |
+
0.225,
|
| 1246 |
+
0.2,
|
| 1247 |
+
0.2,
|
| 1248 |
+
0.18333333333333335
|
| 1249 |
+
],
|
| 1250 |
+
[
|
| 1251 |
+
0.125,
|
| 1252 |
+
0.125,
|
| 1253 |
+
0.225,
|
| 1254 |
+
0.2,
|
| 1255 |
+
0.2,
|
| 1256 |
+
0.17142857142857143
|
| 1257 |
+
],
|
| 1258 |
+
[
|
| 1259 |
+
0.125,
|
| 1260 |
+
0.125,
|
| 1261 |
+
0.225,
|
| 1262 |
+
0.2,
|
| 1263 |
+
0.2,
|
| 1264 |
+
0.17142857142857143
|
| 1265 |
+
],
|
| 1266 |
+
[
|
| 1267 |
+
0.125,
|
| 1268 |
+
0.125,
|
| 1269 |
+
0.225,
|
| 1270 |
+
0.2,
|
| 1271 |
+
0.2,
|
| 1272 |
+
0.2
|
| 1273 |
+
],
|
| 1274 |
+
[
|
| 1275 |
+
0.125,
|
| 1276 |
+
0.125,
|
| 1277 |
+
0.225,
|
| 1278 |
+
0.2,
|
| 1279 |
+
0.2,
|
| 1280 |
+
0.2
|
| 1281 |
+
],
|
| 1282 |
+
[
|
| 1283 |
+
0.125,
|
| 1284 |
+
0.125,
|
| 1285 |
+
0.225,
|
| 1286 |
+
0.2,
|
| 1287 |
+
0.2,
|
| 1288 |
+
0.2
|
| 1289 |
+
],
|
| 1290 |
+
[
|
| 1291 |
+
0.125,
|
| 1292 |
+
0.125,
|
| 1293 |
+
0.225,
|
| 1294 |
+
0.2,
|
| 1295 |
+
0.2,
|
| 1296 |
+
0.2
|
| 1297 |
+
]
|
| 1298 |
+
],
|
| 1299 |
+
"calibration": {
|
| 1300 |
+
"slope": [
|
| 1301 |
+
[
|
| 1302 |
+
0.919920498887472,
|
| 1303 |
+
0.9334119585799782,
|
| 1304 |
+
0.8714872426277575,
|
| 1305 |
+
0.8593757359621413,
|
| 1306 |
+
0.8654536749574789,
|
| 1307 |
+
0.9165160421046363
|
| 1308 |
+
],
|
| 1309 |
+
[
|
| 1310 |
+
0.919920498887472,
|
| 1311 |
+
0.9334119585799782,
|
| 1312 |
+
0.8714872426277575,
|
| 1313 |
+
0.8593757359621413,
|
| 1314 |
+
0.8654536749574789,
|
| 1315 |
+
0.9165160421046363
|
| 1316 |
+
],
|
| 1317 |
+
[
|
| 1318 |
+
0.919920498887472,
|
| 1319 |
+
0.9334119585799782,
|
| 1320 |
+
0.8714872426277575,
|
| 1321 |
+
0.8593757359621413,
|
| 1322 |
+
0.8654536749574789,
|
| 1323 |
+
0.9165160421046363
|
| 1324 |
+
],
|
| 1325 |
+
[
|
| 1326 |
+
0.8748579879244993,
|
| 1327 |
+
0.8859359256953662,
|
| 1328 |
+
0.8305826700915582,
|
| 1329 |
+
0.8121199448235353,
|
| 1330 |
+
0.8182333464987591,
|
| 1331 |
+
0.8824774761837608
|
| 1332 |
+
],
|
| 1333 |
+
[
|
| 1334 |
+
0.8748579879244993,
|
| 1335 |
+
0.8859359256953662,
|
| 1336 |
+
0.8305826700915582,
|
| 1337 |
+
0.8121199448235353,
|
| 1338 |
+
0.8182333464987591,
|
| 1339 |
+
0.8824774761837608
|
| 1340 |
+
],
|
| 1341 |
+
[
|
| 1342 |
+
0.8748579879244993,
|
| 1343 |
+
0.8859359256953662,
|
| 1344 |
+
0.8305826700915582,
|
| 1345 |
+
0.8121199448235353,
|
| 1346 |
+
0.8182333464987591,
|
| 1347 |
+
0.8824774761837608
|
| 1348 |
+
],
|
| 1349 |
+
[
|
| 1350 |
+
0.8508606074113012,
|
| 1351 |
+
0.8675534030816094,
|
| 1352 |
+
0.8087036753438102,
|
| 1353 |
+
0.7947393561374085,
|
| 1354 |
+
0.8007542035870562,
|
| 1355 |
+
0.8743873048275865
|
| 1356 |
+
],
|
| 1357 |
+
[
|
| 1358 |
+
0.8508606074113012,
|
| 1359 |
+
0.8675534030816094,
|
| 1360 |
+
0.8087036753438102,
|
| 1361 |
+
0.7947393561374085,
|
| 1362 |
+
0.8007542035870562,
|
| 1363 |
+
0.8743873048275865
|
| 1364 |
+
],
|
| 1365 |
+
[
|
| 1366 |
+
0.8508606074113012,
|
| 1367 |
+
0.8675534030816094,
|
| 1368 |
+
0.8087036753438102,
|
| 1369 |
+
0.7947393561374085,
|
| 1370 |
+
0.8007542035870562,
|
| 1371 |
+
0.8743873048275865
|
| 1372 |
+
],
|
| 1373 |
+
[
|
| 1374 |
+
0.8375878015231274,
|
| 1375 |
+
0.8472982714875334,
|
| 1376 |
+
0.7872710653666546,
|
| 1377 |
+
0.7760914403769485,
|
| 1378 |
+
0.7861989579303855,
|
| 1379 |
+
0.8660009442602111
|
| 1380 |
+
],
|
| 1381 |
+
[
|
| 1382 |
+
0.8375878015231274,
|
| 1383 |
+
0.8472982714875334,
|
| 1384 |
+
0.7872710653666546,
|
| 1385 |
+
0.7760914403769485,
|
| 1386 |
+
0.7861989579303855,
|
| 1387 |
+
0.8660009442602111
|
| 1388 |
+
],
|
| 1389 |
+
[
|
| 1390 |
+
0.8375878015231274,
|
| 1391 |
+
0.8472982714875334,
|
| 1392 |
+
0.7872710653666546,
|
| 1393 |
+
0.7760914403769485,
|
| 1394 |
+
0.7861989579303855,
|
| 1395 |
+
0.8660009442602111
|
| 1396 |
+
]
|
| 1397 |
+
],
|
| 1398 |
+
"intercept": [
|
| 1399 |
+
[
|
| 1400 |
+
-0.09200869435369056,
|
| 1401 |
+
-0.6763209218205196,
|
| 1402 |
+
-1.3167014016168277,
|
| 1403 |
+
-1.7324672450202991,
|
| 1404 |
+
-2.074113847936462,
|
| 1405 |
+
-2.7737985054391223
|
| 1406 |
+
],
|
| 1407 |
+
[
|
| 1408 |
+
-0.09200869435369056,
|
| 1409 |
+
-0.6763209218205196,
|
| 1410 |
+
-1.3167014016168277,
|
| 1411 |
+
-1.7324672450202991,
|
| 1412 |
+
-2.074113847936462,
|
| 1413 |
+
-2.7737985054391223
|
| 1414 |
+
],
|
| 1415 |
+
[
|
| 1416 |
+
-0.09200869435369056,
|
| 1417 |
+
-0.6763209218205196,
|
| 1418 |
+
-1.3167014016168277,
|
| 1419 |
+
-1.7324672450202991,
|
| 1420 |
+
-2.074113847936462,
|
| 1421 |
+
-2.7737985054391223
|
| 1422 |
+
],
|
| 1423 |
+
[
|
| 1424 |
+
-0.09095781018345699,
|
| 1425 |
+
-0.6680929712306117,
|
| 1426 |
+
-1.3411494544640379,
|
| 1427 |
+
-1.7695585631841542,
|
| 1428 |
+
-2.1234931582520957,
|
| 1429 |
+
-2.7304074132873204
|
| 1430 |
+
],
|
| 1431 |
+
[
|
| 1432 |
+
-0.09095781018345699,
|
| 1433 |
+
-0.6680929712306117,
|
| 1434 |
+
-1.3411494544640379,
|
| 1435 |
+
-1.7695585631841542,
|
| 1436 |
+
-2.1234931582520957,
|
| 1437 |
+
-2.7304074132873204
|
| 1438 |
+
],
|
| 1439 |
+
[
|
| 1440 |
+
-0.09095781018345699,
|
| 1441 |
+
-0.6680929712306117,
|
| 1442 |
+
-1.3411494544640379,
|
| 1443 |
+
-1.7695585631841542,
|
| 1444 |
+
-2.1234931582520957,
|
| 1445 |
+
-2.7304074132873204
|
| 1446 |
+
],
|
| 1447 |
+
[
|
| 1448 |
+
-0.09483812259862152,
|
| 1449 |
+
-0.658513539578626,
|
| 1450 |
+
-1.3448909923899537,
|
| 1451 |
+
-1.7660643676029364,
|
| 1452 |
+
-2.0944661304209595,
|
| 1453 |
+
-2.6476722144657874
|
| 1454 |
+
],
|
| 1455 |
+
[
|
| 1456 |
+
-0.09483812259862152,
|
| 1457 |
+
-0.658513539578626,
|
| 1458 |
+
-1.3448909923899537,
|
| 1459 |
+
-1.7660643676029364,
|
| 1460 |
+
-2.0944661304209595,
|
| 1461 |
+
-2.6476722144657874
|
| 1462 |
+
],
|
| 1463 |
+
[
|
| 1464 |
+
-0.09483812259862152,
|
| 1465 |
+
-0.658513539578626,
|
| 1466 |
+
-1.3448909923899537,
|
| 1467 |
+
-1.7660643676029364,
|
| 1468 |
+
-2.0944661304209595,
|
| 1469 |
+
-2.6476722144657874
|
| 1470 |
+
],
|
| 1471 |
+
[
|
| 1472 |
+
-0.10017007136540051,
|
| 1473 |
+
-0.6578497571458308,
|
| 1474 |
+
-1.3508079779820776,
|
| 1475 |
+
-1.7860928760552435,
|
| 1476 |
+
-2.098033762147586,
|
| 1477 |
+
-2.628545983417712
|
| 1478 |
+
],
|
| 1479 |
+
[
|
| 1480 |
+
-0.10017007136540051,
|
| 1481 |
+
-0.6578497571458308,
|
| 1482 |
+
-1.3508079779820776,
|
| 1483 |
+
-1.7860928760552435,
|
| 1484 |
+
-2.098033762147586,
|
| 1485 |
+
-2.628545983417712
|
| 1486 |
+
],
|
| 1487 |
+
[
|
| 1488 |
+
-0.10017007136540051,
|
| 1489 |
+
-0.6578497571458308,
|
| 1490 |
+
-1.3508079779820776,
|
| 1491 |
+
-1.7860928760552435,
|
| 1492 |
+
-2.098033762147586,
|
| 1493 |
+
-2.628545983417712
|
| 1494 |
+
]
|
| 1495 |
+
]
|
| 1496 |
+
}
|
| 1497 |
+
},
|
| 1498 |
+
{
|
| 1499 |
+
"path": "weights/wide_ab_best_eval.pt",
|
| 1500 |
+
"weight": [
|
| 1501 |
+
[
|
| 1502 |
+
0.0,
|
| 1503 |
+
0.0,
|
| 1504 |
+
0.0,
|
| 1505 |
+
0.0,
|
| 1506 |
+
0.0,
|
| 1507 |
+
0.0
|
| 1508 |
+
],
|
| 1509 |
+
[
|
| 1510 |
+
0.0,
|
| 1511 |
+
0.0,
|
| 1512 |
+
0.0,
|
| 1513 |
+
0.0,
|
| 1514 |
+
0.0,
|
| 1515 |
+
0.0
|
| 1516 |
+
],
|
| 1517 |
+
[
|
| 1518 |
+
0.0,
|
| 1519 |
+
0.0,
|
| 1520 |
+
0.0,
|
| 1521 |
+
0.0,
|
| 1522 |
+
0.0,
|
| 1523 |
+
0.0
|
| 1524 |
+
],
|
| 1525 |
+
[
|
| 1526 |
+
0.0,
|
| 1527 |
+
0.0,
|
| 1528 |
+
0.0,
|
| 1529 |
+
0.0,
|
| 1530 |
+
0.0,
|
| 1531 |
+
0.0
|
| 1532 |
+
],
|
| 1533 |
+
[
|
| 1534 |
+
0.0,
|
| 1535 |
+
0.0,
|
| 1536 |
+
0.0,
|
| 1537 |
+
0.0,
|
| 1538 |
+
0.0,
|
| 1539 |
+
0.08333333333333334
|
| 1540 |
+
],
|
| 1541 |
+
[
|
| 1542 |
+
0.0,
|
| 1543 |
+
0.0,
|
| 1544 |
+
0.0,
|
| 1545 |
+
0.0,
|
| 1546 |
+
0.0,
|
| 1547 |
+
0.08333333333333334
|
| 1548 |
+
],
|
| 1549 |
+
[
|
| 1550 |
+
0.0,
|
| 1551 |
+
0.0,
|
| 1552 |
+
0.0,
|
| 1553 |
+
0.0,
|
| 1554 |
+
0.0,
|
| 1555 |
+
0.07142857142857144
|
| 1556 |
+
],
|
| 1557 |
+
[
|
| 1558 |
+
0.0,
|
| 1559 |
+
0.0,
|
| 1560 |
+
0.0,
|
| 1561 |
+
0.0,
|
| 1562 |
+
0.0,
|
| 1563 |
+
0.07142857142857144
|
| 1564 |
+
],
|
| 1565 |
+
[
|
| 1566 |
+
0.0,
|
| 1567 |
+
0.0,
|
| 1568 |
+
0.0,
|
| 1569 |
+
0.0,
|
| 1570 |
+
0.0,
|
| 1571 |
+
0.1
|
| 1572 |
+
],
|
| 1573 |
+
[
|
| 1574 |
+
0.0,
|
| 1575 |
+
0.0,
|
| 1576 |
+
0.0,
|
| 1577 |
+
0.0,
|
| 1578 |
+
0.0,
|
| 1579 |
+
0.1
|
| 1580 |
+
],
|
| 1581 |
+
[
|
| 1582 |
+
0.0,
|
| 1583 |
+
0.0,
|
| 1584 |
+
0.0,
|
| 1585 |
+
0.0,
|
| 1586 |
+
0.0,
|
| 1587 |
+
0.1
|
| 1588 |
+
],
|
| 1589 |
+
[
|
| 1590 |
+
0.0,
|
| 1591 |
+
0.0,
|
| 1592 |
+
0.0,
|
| 1593 |
+
0.0,
|
| 1594 |
+
0.0,
|
| 1595 |
+
0.1
|
| 1596 |
+
]
|
| 1597 |
+
],
|
| 1598 |
+
"calibration": {
|
| 1599 |
+
"slope": [
|
| 1600 |
+
[
|
| 1601 |
+
0.8843971810606192,
|
| 1602 |
+
0.8805768356381858,
|
| 1603 |
+
0.7954498045469379,
|
| 1604 |
+
0.7796170379236188,
|
| 1605 |
+
0.7878471185961251,
|
| 1606 |
+
0.809897299412295
|
| 1607 |
+
],
|
| 1608 |
+
[
|
| 1609 |
+
0.8843971810606192,
|
| 1610 |
+
0.8805768356381858,
|
| 1611 |
+
0.7954498045469379,
|
| 1612 |
+
0.7796170379236188,
|
| 1613 |
+
0.7878471185961251,
|
| 1614 |
+
0.809897299412295
|
| 1615 |
+
],
|
| 1616 |
+
[
|
| 1617 |
+
0.8843971810606192,
|
| 1618 |
+
0.8805768356381858,
|
| 1619 |
+
0.7954498045469379,
|
| 1620 |
+
0.7796170379236188,
|
| 1621 |
+
0.7878471185961251,
|
| 1622 |
+
0.809897299412295
|
| 1623 |
+
],
|
| 1624 |
+
[
|
| 1625 |
+
0.8296461010592072,
|
| 1626 |
+
0.8156474363768936,
|
| 1627 |
+
0.736478912419826,
|
| 1628 |
+
0.7144179435783413,
|
| 1629 |
+
0.72105001402678,
|
| 1630 |
+
0.7659254779091467
|
| 1631 |
+
],
|
| 1632 |
+
[
|
| 1633 |
+
0.8296461010592072,
|
| 1634 |
+
0.8156474363768936,
|
| 1635 |
+
0.736478912419826,
|
| 1636 |
+
0.7144179435783413,
|
| 1637 |
+
0.72105001402678,
|
| 1638 |
+
0.7659254779091467
|
| 1639 |
+
],
|
| 1640 |
+
[
|
| 1641 |
+
0.8296461010592072,
|
| 1642 |
+
0.8156474363768936,
|
| 1643 |
+
0.736478912419826,
|
| 1644 |
+
0.7144179435783413,
|
| 1645 |
+
0.72105001402678,
|
| 1646 |
+
0.7659254779091467
|
| 1647 |
+
],
|
| 1648 |
+
[
|
| 1649 |
+
0.8021563016039364,
|
| 1650 |
+
0.7867384950922187,
|
| 1651 |
+
0.7076655077248363,
|
| 1652 |
+
0.6831005961652836,
|
| 1653 |
+
0.6910638537201359,
|
| 1654 |
+
0.7407377316320651
|
| 1655 |
+
],
|
| 1656 |
+
[
|
| 1657 |
+
0.8021563016039364,
|
| 1658 |
+
0.7867384950922187,
|
| 1659 |
+
0.7076655077248363,
|
| 1660 |
+
0.6831005961652836,
|
| 1661 |
+
0.6910638537201359,
|
| 1662 |
+
0.7407377316320651
|
| 1663 |
+
],
|
| 1664 |
+
[
|
| 1665 |
+
0.8021563016039364,
|
| 1666 |
+
0.7867384950922187,
|
| 1667 |
+
0.7076655077248363,
|
| 1668 |
+
0.6831005961652836,
|
| 1669 |
+
0.6910638537201359,
|
| 1670 |
+
0.7407377316320651
|
| 1671 |
+
],
|
| 1672 |
+
[
|
| 1673 |
+
0.7894442836610636,
|
| 1674 |
+
0.76854512363746,
|
| 1675 |
+
0.6852461689007225,
|
| 1676 |
+
0.6583112369900299,
|
| 1677 |
+
0.666800885612878,
|
| 1678 |
+
0.71667227747287
|
| 1679 |
+
],
|
| 1680 |
+
[
|
| 1681 |
+
0.7894442836610636,
|
| 1682 |
+
0.76854512363746,
|
| 1683 |
+
0.6852461689007225,
|
| 1684 |
+
0.6583112369900299,
|
| 1685 |
+
0.666800885612878,
|
| 1686 |
+
0.71667227747287
|
| 1687 |
+
],
|
| 1688 |
+
[
|
| 1689 |
+
0.7894442836610636,
|
| 1690 |
+
0.76854512363746,
|
| 1691 |
+
0.6852461689007225,
|
| 1692 |
+
0.6583112369900299,
|
| 1693 |
+
0.666800885612878,
|
| 1694 |
+
0.71667227747287
|
| 1695 |
+
]
|
| 1696 |
+
],
|
| 1697 |
+
"intercept": [
|
| 1698 |
+
[
|
| 1699 |
+
-0.08694309272516217,
|
| 1700 |
+
-0.272836724544328,
|
| 1701 |
+
-0.8644902040430115,
|
| 1702 |
+
-1.4299896983231697,
|
| 1703 |
+
-1.9108040015246934,
|
| 1704 |
+
-3.149618366920181
|
| 1705 |
+
],
|
| 1706 |
+
[
|
| 1707 |
+
-0.08694309272516217,
|
| 1708 |
+
-0.272836724544328,
|
| 1709 |
+
-0.8644902040430115,
|
| 1710 |
+
-1.4299896983231697,
|
| 1711 |
+
-1.9108040015246934,
|
| 1712 |
+
-3.149618366920181
|
| 1713 |
+
],
|
| 1714 |
+
[
|
| 1715 |
+
-0.08694309272516217,
|
| 1716 |
+
-0.272836724544328,
|
| 1717 |
+
-0.8644902040430115,
|
| 1718 |
+
-1.4299896983231697,
|
| 1719 |
+
-1.9108040015246934,
|
| 1720 |
+
-3.149618366920181
|
| 1721 |
+
],
|
| 1722 |
+
[
|
| 1723 |
+
-0.12831379059714404,
|
| 1724 |
+
-0.2806816598792008,
|
| 1725 |
+
-0.8435688453309318,
|
| 1726 |
+
-1.4052105801396686,
|
| 1727 |
+
-1.9196741970322737,
|
| 1728 |
+
-3.0821896385300693
|
| 1729 |
+
],
|
| 1730 |
+
[
|
| 1731 |
+
-0.12831379059714404,
|
| 1732 |
+
-0.2806816598792008,
|
| 1733 |
+
-0.8435688453309318,
|
| 1734 |
+
-1.4052105801396686,
|
| 1735 |
+
-1.9196741970322737,
|
| 1736 |
+
-3.0821896385300693
|
| 1737 |
+
],
|
| 1738 |
+
[
|
| 1739 |
+
-0.12831379059714404,
|
| 1740 |
+
-0.2806816598792008,
|
| 1741 |
+
-0.8435688453309318,
|
| 1742 |
+
-1.4052105801396686,
|
| 1743 |
+
-1.9196741970322737,
|
| 1744 |
+
-3.0821896385300693
|
| 1745 |
+
],
|
| 1746 |
+
[
|
| 1747 |
+
-0.14830311829456297,
|
| 1748 |
+
-0.28652223067675525,
|
| 1749 |
+
-0.8468237890619368,
|
| 1750 |
+
-1.4161136290809422,
|
| 1751 |
+
-1.9192297045785804,
|
| 1752 |
+
-3.093795155839573
|
| 1753 |
+
],
|
| 1754 |
+
[
|
| 1755 |
+
-0.14830311829456297,
|
| 1756 |
+
-0.28652223067675525,
|
| 1757 |
+
-0.8468237890619368,
|
| 1758 |
+
-1.4161136290809422,
|
| 1759 |
+
-1.9192297045785804,
|
| 1760 |
+
-3.093795155839573
|
| 1761 |
+
],
|
| 1762 |
+
[
|
| 1763 |
+
-0.14830311829456297,
|
| 1764 |
+
-0.28652223067675525,
|
| 1765 |
+
-0.8468237890619368,
|
| 1766 |
+
-1.4161136290809422,
|
| 1767 |
+
-1.9192297045785804,
|
| 1768 |
+
-3.093795155839573
|
| 1769 |
+
],
|
| 1770 |
+
[
|
| 1771 |
+
-0.1502956942338084,
|
| 1772 |
+
-0.28403057438410617,
|
| 1773 |
+
-0.8534954163279871,
|
| 1774 |
+
-1.4339306311338498,
|
| 1775 |
+
-1.9490956219550772,
|
| 1776 |
+
-3.152998764782916
|
| 1777 |
+
],
|
| 1778 |
+
[
|
| 1779 |
+
-0.1502956942338084,
|
| 1780 |
+
-0.28403057438410617,
|
| 1781 |
+
-0.8534954163279871,
|
| 1782 |
+
-1.4339306311338498,
|
| 1783 |
+
-1.9490956219550772,
|
| 1784 |
+
-3.152998764782916
|
| 1785 |
+
],
|
| 1786 |
+
[
|
| 1787 |
+
-0.1502956942338084,
|
| 1788 |
+
-0.28403057438410617,
|
| 1789 |
+
-0.8534954163279871,
|
| 1790 |
+
-1.4339306311338498,
|
| 1791 |
+
-1.9490956219550772,
|
| 1792 |
+
-3.152998764782916
|
| 1793 |
+
]
|
| 1794 |
+
]
|
| 1795 |
+
}
|
| 1796 |
+
},
|
| 1797 |
+
{
|
| 1798 |
+
"path": "weights/final_all_3_wide_ae_best_eval_ema.pt",
|
| 1799 |
+
"weight": [
|
| 1800 |
+
[
|
| 1801 |
+
0.2,
|
| 1802 |
+
0.225,
|
| 1803 |
+
0.2,
|
| 1804 |
+
0.16666666666666669,
|
| 1805 |
+
0.18333333333333335,
|
| 1806 |
+
0.20833333333333331
|
| 1807 |
+
],
|
| 1808 |
+
[
|
| 1809 |
+
0.2,
|
| 1810 |
+
0.225,
|
| 1811 |
+
0.2,
|
| 1812 |
+
0.16666666666666669,
|
| 1813 |
+
0.18333333333333335,
|
| 1814 |
+
0.20833333333333331
|
| 1815 |
+
],
|
| 1816 |
+
[
|
| 1817 |
+
0.2,
|
| 1818 |
+
0.225,
|
| 1819 |
+
0.2,
|
| 1820 |
+
0.16666666666666669,
|
| 1821 |
+
0.18333333333333335,
|
| 1822 |
+
0.20833333333333331
|
| 1823 |
+
],
|
| 1824 |
+
[
|
| 1825 |
+
0.25,
|
| 1826 |
+
0.29166666666666663,
|
| 1827 |
+
0.225,
|
| 1828 |
+
0.2,
|
| 1829 |
+
0.2,
|
| 1830 |
+
0.225
|
| 1831 |
+
],
|
| 1832 |
+
[
|
| 1833 |
+
0.25,
|
| 1834 |
+
0.29166666666666663,
|
| 1835 |
+
0.225,
|
| 1836 |
+
0.2,
|
| 1837 |
+
0.2,
|
| 1838 |
+
0.1
|
| 1839 |
+
],
|
| 1840 |
+
[
|
| 1841 |
+
0.25,
|
| 1842 |
+
0.29166666666666663,
|
| 1843 |
+
0.225,
|
| 1844 |
+
0.2,
|
| 1845 |
+
0.2,
|
| 1846 |
+
0.1
|
| 1847 |
+
],
|
| 1848 |
+
[
|
| 1849 |
+
0.25,
|
| 1850 |
+
0.29166666666666663,
|
| 1851 |
+
0.225,
|
| 1852 |
+
0.2,
|
| 1853 |
+
0.2,
|
| 1854 |
+
0.1
|
| 1855 |
+
],
|
| 1856 |
+
[
|
| 1857 |
+
0.25,
|
| 1858 |
+
0.29166666666666663,
|
| 1859 |
+
0.225,
|
| 1860 |
+
0.2,
|
| 1861 |
+
0.2,
|
| 1862 |
+
0.1
|
| 1863 |
+
],
|
| 1864 |
+
[
|
| 1865 |
+
0.25,
|
| 1866 |
+
0.29166666666666663,
|
| 1867 |
+
0.225,
|
| 1868 |
+
0.2,
|
| 1869 |
+
0.2,
|
| 1870 |
+
0.1
|
| 1871 |
+
],
|
| 1872 |
+
[
|
| 1873 |
+
0.25,
|
| 1874 |
+
0.29166666666666663,
|
| 1875 |
+
0.225,
|
| 1876 |
+
0.2,
|
| 1877 |
+
0.2,
|
| 1878 |
+
0.1
|
| 1879 |
+
],
|
| 1880 |
+
[
|
| 1881 |
+
0.25,
|
| 1882 |
+
0.29166666666666663,
|
| 1883 |
+
0.225,
|
| 1884 |
+
0.2,
|
| 1885 |
+
0.2,
|
| 1886 |
+
0.1
|
| 1887 |
+
],
|
| 1888 |
+
[
|
| 1889 |
+
0.25,
|
| 1890 |
+
0.29166666666666663,
|
| 1891 |
+
0.225,
|
| 1892 |
+
0.2,
|
| 1893 |
+
0.2,
|
| 1894 |
+
0.1
|
| 1895 |
+
]
|
| 1896 |
+
],
|
| 1897 |
+
"calibration": {
|
| 1898 |
+
"slope": [
|
| 1899 |
+
[
|
| 1900 |
+
0.9396484178972105,
|
| 1901 |
+
0.9589190963117085,
|
| 1902 |
+
0.9149497368486124,
|
| 1903 |
+
0.9180347501180175,
|
| 1904 |
+
0.9318367055821445,
|
| 1905 |
+
0.9916050128714022
|
| 1906 |
+
],
|
| 1907 |
+
[
|
| 1908 |
+
0.9396484178972105,
|
| 1909 |
+
0.9589190963117085,
|
| 1910 |
+
0.9149497368486124,
|
| 1911 |
+
0.9180347501180175,
|
| 1912 |
+
0.9318367055821445,
|
| 1913 |
+
0.9916050128714022
|
| 1914 |
+
],
|
| 1915 |
+
[
|
| 1916 |
+
0.9396484178972105,
|
| 1917 |
+
0.9589190963117085,
|
| 1918 |
+
0.9149497368486124,
|
| 1919 |
+
0.9180347501180175,
|
| 1920 |
+
0.9318367055821445,
|
| 1921 |
+
0.9916050128714022
|
| 1922 |
+
],
|
| 1923 |
+
[
|
| 1924 |
+
0.8908419093059661,
|
| 1925 |
+
0.9079436770950005,
|
| 1926 |
+
0.8757594013142358,
|
| 1927 |
+
0.875106450257815,
|
| 1928 |
+
0.8925005366540614,
|
| 1929 |
+
0.9704021751635038
|
| 1930 |
+
],
|
| 1931 |
+
[
|
| 1932 |
+
0.8908419093059661,
|
| 1933 |
+
0.9079436770950005,
|
| 1934 |
+
0.8757594013142358,
|
| 1935 |
+
0.875106450257815,
|
| 1936 |
+
0.8925005366540614,
|
| 1937 |
+
0.9704021751635038
|
| 1938 |
+
],
|
| 1939 |
+
[
|
| 1940 |
+
0.8908419093059661,
|
| 1941 |
+
0.9079436770950005,
|
| 1942 |
+
0.8757594013142358,
|
| 1943 |
+
0.875106450257815,
|
| 1944 |
+
0.8925005366540614,
|
| 1945 |
+
0.9704021751635038
|
| 1946 |
+
],
|
| 1947 |
+
[
|
| 1948 |
+
0.8681317559749945,
|
| 1949 |
+
0.8883447924199634,
|
| 1950 |
+
0.8593304957362917,
|
| 1951 |
+
0.8543993985333073,
|
| 1952 |
+
0.8733694084861618,
|
| 1953 |
+
0.9564576289072968
|
| 1954 |
+
],
|
| 1955 |
+
[
|
| 1956 |
+
0.8681317559749945,
|
| 1957 |
+
0.8883447924199634,
|
| 1958 |
+
0.8593304957362917,
|
| 1959 |
+
0.8543993985333073,
|
| 1960 |
+
0.8733694084861618,
|
| 1961 |
+
0.9564576289072968
|
| 1962 |
+
],
|
| 1963 |
+
[
|
| 1964 |
+
0.8681317559749945,
|
| 1965 |
+
0.8883447924199634,
|
| 1966 |
+
0.8593304957362917,
|
| 1967 |
+
0.8543993985333073,
|
| 1968 |
+
0.8733694084861618,
|
| 1969 |
+
0.9564576289072968
|
| 1970 |
+
],
|
| 1971 |
+
[
|
| 1972 |
+
0.8605387926716775,
|
| 1973 |
+
0.8753683648037267,
|
| 1974 |
+
0.8425672674609056,
|
| 1975 |
+
0.8381169081933936,
|
| 1976 |
+
0.8616395734831885,
|
| 1977 |
+
0.9502877739425223
|
| 1978 |
+
],
|
| 1979 |
+
[
|
| 1980 |
+
0.8605387926716775,
|
| 1981 |
+
0.8753683648037267,
|
| 1982 |
+
0.8425672674609056,
|
| 1983 |
+
0.8381169081933936,
|
| 1984 |
+
0.8616395734831885,
|
| 1985 |
+
0.9502877739425223
|
| 1986 |
+
],
|
| 1987 |
+
[
|
| 1988 |
+
0.8605387926716775,
|
| 1989 |
+
0.8753683648037267,
|
| 1990 |
+
0.8425672674609056,
|
| 1991 |
+
0.8381169081933936,
|
| 1992 |
+
0.8616395734831885,
|
| 1993 |
+
0.9502877739425223
|
| 1994 |
+
]
|
| 1995 |
+
],
|
| 1996 |
+
"intercept": [
|
| 1997 |
+
[
|
| 1998 |
+
-0.026117930458463872,
|
| 1999 |
+
-0.6755866142635618,
|
| 2000 |
+
-1.3607928507860059,
|
| 2001 |
+
-1.7844886562980846,
|
| 2002 |
+
-2.1048062055679737,
|
| 2003 |
+
-2.7355812952936467
|
| 2004 |
+
],
|
| 2005 |
+
[
|
| 2006 |
+
-0.026117930458463872,
|
| 2007 |
+
-0.6755866142635618,
|
| 2008 |
+
-1.3607928507860059,
|
| 2009 |
+
-1.7844886562980846,
|
| 2010 |
+
-2.1048062055679737,
|
| 2011 |
+
-2.7355812952936467
|
| 2012 |
+
],
|
| 2013 |
+
[
|
| 2014 |
+
-0.026117930458463872,
|
| 2015 |
+
-0.6755866142635618,
|
| 2016 |
+
-1.3607928507860059,
|
| 2017 |
+
-1.7844886562980846,
|
| 2018 |
+
-2.1048062055679737,
|
| 2019 |
+
-2.7355812952936467
|
| 2020 |
+
],
|
| 2021 |
+
[
|
| 2022 |
+
-0.053661316012127896,
|
| 2023 |
+
-0.671456678221304,
|
| 2024 |
+
-1.3534326088176187,
|
| 2025 |
+
-1.7789515073538504,
|
| 2026 |
+
-2.1252059905190075,
|
| 2027 |
+
-2.722207309619282
|
| 2028 |
+
],
|
| 2029 |
+
[
|
| 2030 |
+
-0.053661316012127896,
|
| 2031 |
+
-0.671456678221304,
|
| 2032 |
+
-1.3534326088176187,
|
| 2033 |
+
-1.7789515073538504,
|
| 2034 |
+
-2.1252059905190075,
|
| 2035 |
+
-2.722207309619282
|
| 2036 |
+
],
|
| 2037 |
+
[
|
| 2038 |
+
-0.053661316012127896,
|
| 2039 |
+
-0.671456678221304,
|
| 2040 |
+
-1.3534326088176187,
|
| 2041 |
+
-1.7789515073538504,
|
| 2042 |
+
-2.1252059905190075,
|
| 2043 |
+
-2.722207309619282
|
| 2044 |
+
],
|
| 2045 |
+
[
|
| 2046 |
+
-0.07563714721313945,
|
| 2047 |
+
-0.6704381227199917,
|
| 2048 |
+
-1.3529196813418747,
|
| 2049 |
+
-1.7911896319917948,
|
| 2050 |
+
-2.122324128398198,
|
| 2051 |
+
-2.699455668681993
|
| 2052 |
+
],
|
| 2053 |
+
[
|
| 2054 |
+
-0.07563714721313945,
|
| 2055 |
+
-0.6704381227199917,
|
| 2056 |
+
-1.3529196813418747,
|
| 2057 |
+
-1.7911896319917948,
|
| 2058 |
+
-2.122324128398198,
|
| 2059 |
+
-2.699455668681993
|
| 2060 |
+
],
|
| 2061 |
+
[
|
| 2062 |
+
-0.07563714721313945,
|
| 2063 |
+
-0.6704381227199917,
|
| 2064 |
+
-1.3529196813418747,
|
| 2065 |
+
-1.7911896319917948,
|
| 2066 |
+
-2.122324128398198,
|
| 2067 |
+
-2.699455668681993
|
| 2068 |
+
],
|
| 2069 |
+
[
|
| 2070 |
+
-0.07766927145000004,
|
| 2071 |
+
-0.6636681510846791,
|
| 2072 |
+
-1.3558252669433581,
|
| 2073 |
+
-1.7989018397582306,
|
| 2074 |
+
-2.1118770563362994,
|
| 2075 |
+
-2.6496828377679584
|
| 2076 |
+
],
|
| 2077 |
+
[
|
| 2078 |
+
-0.07766927145000004,
|
| 2079 |
+
-0.6636681510846791,
|
| 2080 |
+
-1.3558252669433581,
|
| 2081 |
+
-1.7989018397582306,
|
| 2082 |
+
-2.1118770563362994,
|
| 2083 |
+
-2.6496828377679584
|
| 2084 |
+
],
|
| 2085 |
+
[
|
| 2086 |
+
-0.07766927145000004,
|
| 2087 |
+
-0.6636681510846791,
|
| 2088 |
+
-1.3558252669433581,
|
| 2089 |
+
-1.7989018397582306,
|
| 2090 |
+
-2.1118770563362994,
|
| 2091 |
+
-2.6496828377679584
|
| 2092 |
+
]
|
| 2093 |
+
]
|
| 2094 |
+
}
|
| 2095 |
+
},
|
| 2096 |
+
{
|
| 2097 |
+
"path": "weights/final_all_4_storm_ag_best_eval_ema.pt",
|
| 2098 |
+
"weight": [
|
| 2099 |
+
[
|
| 2100 |
+
0.2,
|
| 2101 |
+
0.225,
|
| 2102 |
+
0.2,
|
| 2103 |
+
0.16666666666666669,
|
| 2104 |
+
0.18333333333333335,
|
| 2105 |
+
0.08333333333333333
|
| 2106 |
+
],
|
| 2107 |
+
[
|
| 2108 |
+
0.2,
|
| 2109 |
+
0.225,
|
| 2110 |
+
0.2,
|
| 2111 |
+
0.16666666666666669,
|
| 2112 |
+
0.18333333333333335,
|
| 2113 |
+
0.08333333333333333
|
| 2114 |
+
],
|
| 2115 |
+
[
|
| 2116 |
+
0.2,
|
| 2117 |
+
0.225,
|
| 2118 |
+
0.2,
|
| 2119 |
+
0.16666666666666669,
|
| 2120 |
+
0.18333333333333335,
|
| 2121 |
+
0.08333333333333333
|
| 2122 |
+
],
|
| 2123 |
+
[
|
| 2124 |
+
0.25,
|
| 2125 |
+
0.29166666666666663,
|
| 2126 |
+
0.225,
|
| 2127 |
+
0.2,
|
| 2128 |
+
0.2,
|
| 2129 |
+
0.1
|
| 2130 |
+
],
|
| 2131 |
+
[
|
| 2132 |
+
0.25,
|
| 2133 |
+
0.29166666666666663,
|
| 2134 |
+
0.225,
|
| 2135 |
+
0.2,
|
| 2136 |
+
0.2,
|
| 2137 |
+
0.1
|
| 2138 |
+
],
|
| 2139 |
+
[
|
| 2140 |
+
0.25,
|
| 2141 |
+
0.29166666666666663,
|
| 2142 |
+
0.225,
|
| 2143 |
+
0.2,
|
| 2144 |
+
0.2,
|
| 2145 |
+
0.1
|
| 2146 |
+
],
|
| 2147 |
+
[
|
| 2148 |
+
0.25,
|
| 2149 |
+
0.29166666666666663,
|
| 2150 |
+
0.225,
|
| 2151 |
+
0.2,
|
| 2152 |
+
0.2,
|
| 2153 |
+
0.1
|
| 2154 |
+
],
|
| 2155 |
+
[
|
| 2156 |
+
0.25,
|
| 2157 |
+
0.29166666666666663,
|
| 2158 |
+
0.225,
|
| 2159 |
+
0.2,
|
| 2160 |
+
0.2,
|
| 2161 |
+
0.1
|
| 2162 |
+
],
|
| 2163 |
+
[
|
| 2164 |
+
0.25,
|
| 2165 |
+
0.29166666666666663,
|
| 2166 |
+
0.225,
|
| 2167 |
+
0.2,
|
| 2168 |
+
0.2,
|
| 2169 |
+
0.1
|
| 2170 |
+
],
|
| 2171 |
+
[
|
| 2172 |
+
0.25,
|
| 2173 |
+
0.29166666666666663,
|
| 2174 |
+
0.225,
|
| 2175 |
+
0.2,
|
| 2176 |
+
0.2,
|
| 2177 |
+
0.1
|
| 2178 |
+
],
|
| 2179 |
+
[
|
| 2180 |
+
0.25,
|
| 2181 |
+
0.29166666666666663,
|
| 2182 |
+
0.225,
|
| 2183 |
+
0.2,
|
| 2184 |
+
0.2,
|
| 2185 |
+
0.1
|
| 2186 |
+
],
|
| 2187 |
+
[
|
| 2188 |
+
0.25,
|
| 2189 |
+
0.29166666666666663,
|
| 2190 |
+
0.225,
|
| 2191 |
+
0.2,
|
| 2192 |
+
0.2,
|
| 2193 |
+
0.1
|
| 2194 |
+
]
|
| 2195 |
+
],
|
| 2196 |
+
"calibration": {
|
| 2197 |
+
"slope": [
|
| 2198 |
+
[
|
| 2199 |
+
0.9229361455945833,
|
| 2200 |
+
0.9265252999745922,
|
| 2201 |
+
0.8615570333748103,
|
| 2202 |
+
0.8520712453864432,
|
| 2203 |
+
0.8577143190161535,
|
| 2204 |
+
0.8980918068179269
|
| 2205 |
+
],
|
| 2206 |
+
[
|
| 2207 |
+
0.9229361455945833,
|
| 2208 |
+
0.9265252999745922,
|
| 2209 |
+
0.8615570333748103,
|
| 2210 |
+
0.8520712453864432,
|
| 2211 |
+
0.8577143190161535,
|
| 2212 |
+
0.8980918068179269
|
| 2213 |
+
],
|
| 2214 |
+
[
|
| 2215 |
+
0.9229361455945833,
|
| 2216 |
+
0.9265252999745922,
|
| 2217 |
+
0.8615570333748103,
|
| 2218 |
+
0.8520712453864432,
|
| 2219 |
+
0.8577143190161535,
|
| 2220 |
+
0.8980918068179269
|
| 2221 |
+
],
|
| 2222 |
+
[
|
| 2223 |
+
0.8690745649542619,
|
| 2224 |
+
0.8766528216623837,
|
| 2225 |
+
0.8223661340056135,
|
| 2226 |
+
0.8013637419937828,
|
| 2227 |
+
0.807551051015866,
|
| 2228 |
+
0.8606928688314694
|
| 2229 |
+
],
|
| 2230 |
+
[
|
| 2231 |
+
0.8690745649542619,
|
| 2232 |
+
0.8766528216623837,
|
| 2233 |
+
0.8223661340056135,
|
| 2234 |
+
0.8013637419937828,
|
| 2235 |
+
0.807551051015866,
|
| 2236 |
+
0.8606928688314694
|
| 2237 |
+
],
|
| 2238 |
+
[
|
| 2239 |
+
0.8690745649542619,
|
| 2240 |
+
0.8766528216623837,
|
| 2241 |
+
0.8223661340056135,
|
| 2242 |
+
0.8013637419937828,
|
| 2243 |
+
0.807551051015866,
|
| 2244 |
+
0.8606928688314694
|
| 2245 |
+
],
|
| 2246 |
+
[
|
| 2247 |
+
0.839082295830834,
|
| 2248 |
+
0.8518677665366616,
|
| 2249 |
+
0.7927066377442259,
|
| 2250 |
+
0.7747160492680789,
|
| 2251 |
+
0.7797919007891543,
|
| 2252 |
+
0.8493019752281226
|
| 2253 |
+
],
|
| 2254 |
+
[
|
| 2255 |
+
0.839082295830834,
|
| 2256 |
+
0.8518677665366616,
|
| 2257 |
+
0.7927066377442259,
|
| 2258 |
+
0.7747160492680789,
|
| 2259 |
+
0.7797919007891543,
|
| 2260 |
+
0.8493019752281226
|
| 2261 |
+
],
|
| 2262 |
+
[
|
| 2263 |
+
0.839082295830834,
|
| 2264 |
+
0.8518677665366616,
|
| 2265 |
+
0.7927066377442259,
|
| 2266 |
+
0.7747160492680789,
|
| 2267 |
+
0.7797919007891543,
|
| 2268 |
+
0.8493019752281226
|
| 2269 |
+
],
|
| 2270 |
+
[
|
| 2271 |
+
0.8285904320897359,
|
| 2272 |
+
0.8332646048705109,
|
| 2273 |
+
0.7645491826811922,
|
| 2274 |
+
0.7504948991462317,
|
| 2275 |
+
0.7604342466691227,
|
| 2276 |
+
0.8526120825176139
|
| 2277 |
+
],
|
| 2278 |
+
[
|
| 2279 |
+
0.8285904320897359,
|
| 2280 |
+
0.8332646048705109,
|
| 2281 |
+
0.7645491826811922,
|
| 2282 |
+
0.7504948991462317,
|
| 2283 |
+
0.7604342466691227,
|
| 2284 |
+
0.8526120825176139
|
| 2285 |
+
],
|
| 2286 |
+
[
|
| 2287 |
+
0.8285904320897359,
|
| 2288 |
+
0.8332646048705109,
|
| 2289 |
+
0.7645491826811922,
|
| 2290 |
+
0.7504948991462317,
|
| 2291 |
+
0.7604342466691227,
|
| 2292 |
+
0.8526120825176139
|
| 2293 |
+
]
|
| 2294 |
+
],
|
| 2295 |
+
"intercept": [
|
| 2296 |
+
[
|
| 2297 |
+
-0.07953028276405673,
|
| 2298 |
+
-0.7022681559328523,
|
| 2299 |
+
-1.3630151160240116,
|
| 2300 |
+
-1.7862154420018037,
|
| 2301 |
+
-2.1311661987979416,
|
| 2302 |
+
-2.888995785375925
|
| 2303 |
+
],
|
| 2304 |
+
[
|
| 2305 |
+
-0.07953028276405673,
|
| 2306 |
+
-0.7022681559328523,
|
| 2307 |
+
-1.3630151160240116,
|
| 2308 |
+
-1.7862154420018037,
|
| 2309 |
+
-2.1311661987979416,
|
| 2310 |
+
-2.888995785375925
|
| 2311 |
+
],
|
| 2312 |
+
[
|
| 2313 |
+
-0.07953028276405673,
|
| 2314 |
+
-0.7022681559328523,
|
| 2315 |
+
-1.3630151160240116,
|
| 2316 |
+
-1.7862154420018037,
|
| 2317 |
+
-2.1311661987979416,
|
| 2318 |
+
-2.888995785375925
|
| 2319 |
+
],
|
| 2320 |
+
[
|
| 2321 |
+
-0.11605123420625531,
|
| 2322 |
+
-0.689514743188801,
|
| 2323 |
+
-1.3426354771949467,
|
| 2324 |
+
-1.7761664345985773,
|
| 2325 |
+
-2.148264039894248,
|
| 2326 |
+
-2.866684001807302
|
| 2327 |
+
],
|
| 2328 |
+
[
|
| 2329 |
+
-0.11605123420625531,
|
| 2330 |
+
-0.689514743188801,
|
| 2331 |
+
-1.3426354771949467,
|
| 2332 |
+
-1.7761664345985773,
|
| 2333 |
+
-2.148264039894248,
|
| 2334 |
+
-2.866684001807302
|
| 2335 |
+
],
|
| 2336 |
+
[
|
| 2337 |
+
-0.11605123420625531,
|
| 2338 |
+
-0.689514743188801,
|
| 2339 |
+
-1.3426354771949467,
|
| 2340 |
+
-1.7761664345985773,
|
| 2341 |
+
-2.148264039894248,
|
| 2342 |
+
-2.866684001807302
|
| 2343 |
+
],
|
| 2344 |
+
[
|
| 2345 |
+
-0.1288716511711343,
|
| 2346 |
+
-0.6862808533742104,
|
| 2347 |
+
-1.3504045862446368,
|
| 2348 |
+
-1.7939661269445206,
|
| 2349 |
+
-2.1491698290290944,
|
| 2350 |
+
-2.804140581364604
|
| 2351 |
+
],
|
| 2352 |
+
[
|
| 2353 |
+
-0.1288716511711343,
|
| 2354 |
+
-0.6862808533742104,
|
| 2355 |
+
-1.3504045862446368,
|
| 2356 |
+
-1.7939661269445206,
|
| 2357 |
+
-2.1491698290290944,
|
| 2358 |
+
-2.804140581364604
|
| 2359 |
+
],
|
| 2360 |
+
[
|
| 2361 |
+
-0.1288716511711343,
|
| 2362 |
+
-0.6862808533742104,
|
| 2363 |
+
-1.3504045862446368,
|
| 2364 |
+
-1.7939661269445206,
|
| 2365 |
+
-2.1491698290290944,
|
| 2366 |
+
-2.804140581364604
|
| 2367 |
+
],
|
| 2368 |
+
[
|
| 2369 |
+
-0.1331460597990479,
|
| 2370 |
+
-0.680196340562674,
|
| 2371 |
+
-1.3657763125833897,
|
| 2372 |
+
-1.8213371261844258,
|
| 2373 |
+
-2.155135715516273,
|
| 2374 |
+
-2.7168542572316934
|
| 2375 |
+
],
|
| 2376 |
+
[
|
| 2377 |
+
-0.1331460597990479,
|
| 2378 |
+
-0.680196340562674,
|
| 2379 |
+
-1.3657763125833897,
|
| 2380 |
+
-1.8213371261844258,
|
| 2381 |
+
-2.155135715516273,
|
| 2382 |
+
-2.7168542572316934
|
| 2383 |
+
],
|
| 2384 |
+
[
|
| 2385 |
+
-0.1331460597990479,
|
| 2386 |
+
-0.680196340562674,
|
| 2387 |
+
-1.3657763125833897,
|
| 2388 |
+
-1.8213371261844258,
|
| 2389 |
+
-2.155135715516273,
|
| 2390 |
+
-2.7168542572316934
|
| 2391 |
+
]
|
| 2392 |
+
]
|
| 2393 |
+
}
|
| 2394 |
+
},
|
| 2395 |
+
{
|
| 2396 |
+
"path": "weights/long_y_best_eval.pt",
|
| 2397 |
+
"weight": [
|
| 2398 |
+
[
|
| 2399 |
+
0.0,
|
| 2400 |
+
0.0,
|
| 2401 |
+
0.0,
|
| 2402 |
+
0.0,
|
| 2403 |
+
0.0,
|
| 2404 |
+
0.0
|
| 2405 |
+
],
|
| 2406 |
+
[
|
| 2407 |
+
0.0,
|
| 2408 |
+
0.0,
|
| 2409 |
+
0.0,
|
| 2410 |
+
0.0,
|
| 2411 |
+
0.0,
|
| 2412 |
+
0.0
|
| 2413 |
+
],
|
| 2414 |
+
[
|
| 2415 |
+
0.0,
|
| 2416 |
+
0.0,
|
| 2417 |
+
0.0,
|
| 2418 |
+
0.0,
|
| 2419 |
+
0.0,
|
| 2420 |
+
0.0
|
| 2421 |
+
],
|
| 2422 |
+
[
|
| 2423 |
+
0.0,
|
| 2424 |
+
0.0,
|
| 2425 |
+
0.0,
|
| 2426 |
+
0.0,
|
| 2427 |
+
0.0,
|
| 2428 |
+
0.0
|
| 2429 |
+
],
|
| 2430 |
+
[
|
| 2431 |
+
0.0,
|
| 2432 |
+
0.0,
|
| 2433 |
+
0.0,
|
| 2434 |
+
0.0,
|
| 2435 |
+
0.0,
|
| 2436 |
+
0.0
|
| 2437 |
+
],
|
| 2438 |
+
[
|
| 2439 |
+
0.0,
|
| 2440 |
+
0.0,
|
| 2441 |
+
0.0,
|
| 2442 |
+
0.0,
|
| 2443 |
+
0.0,
|
| 2444 |
+
0.0
|
| 2445 |
+
],
|
| 2446 |
+
[
|
| 2447 |
+
0.0,
|
| 2448 |
+
0.0,
|
| 2449 |
+
0.0,
|
| 2450 |
+
0.0,
|
| 2451 |
+
0.0,
|
| 2452 |
+
0.07142857142857144
|
| 2453 |
+
],
|
| 2454 |
+
[
|
| 2455 |
+
0.0,
|
| 2456 |
+
0.0,
|
| 2457 |
+
0.0,
|
| 2458 |
+
0.0,
|
| 2459 |
+
0.0,
|
| 2460 |
+
0.07142857142857144
|
| 2461 |
+
],
|
| 2462 |
+
[
|
| 2463 |
+
0.0,
|
| 2464 |
+
0.0,
|
| 2465 |
+
0.0,
|
| 2466 |
+
0.0,
|
| 2467 |
+
0.0,
|
| 2468 |
+
0.0
|
| 2469 |
+
],
|
| 2470 |
+
[
|
| 2471 |
+
0.0,
|
| 2472 |
+
0.0,
|
| 2473 |
+
0.0,
|
| 2474 |
+
0.0,
|
| 2475 |
+
0.0,
|
| 2476 |
+
0.0
|
| 2477 |
+
],
|
| 2478 |
+
[
|
| 2479 |
+
0.0,
|
| 2480 |
+
0.0,
|
| 2481 |
+
0.0,
|
| 2482 |
+
0.0,
|
| 2483 |
+
0.0,
|
| 2484 |
+
0.0
|
| 2485 |
+
],
|
| 2486 |
+
[
|
| 2487 |
+
0.0,
|
| 2488 |
+
0.0,
|
| 2489 |
+
0.0,
|
| 2490 |
+
0.0,
|
| 2491 |
+
0.0,
|
| 2492 |
+
0.0
|
| 2493 |
+
]
|
| 2494 |
+
],
|
| 2495 |
+
"calibration": {
|
| 2496 |
+
"slope": [
|
| 2497 |
+
[
|
| 2498 |
+
0.928690317973946,
|
| 2499 |
+
0.9938911737986555,
|
| 2500 |
+
0.918332124192325,
|
| 2501 |
+
0.9490904868902302,
|
| 2502 |
+
1.037416907191363,
|
| 2503 |
+
1.3891502452597146
|
| 2504 |
+
],
|
| 2505 |
+
[
|
| 2506 |
+
0.928690317973946,
|
| 2507 |
+
0.9938911737986555,
|
| 2508 |
+
0.918332124192325,
|
| 2509 |
+
0.9490904868902302,
|
| 2510 |
+
1.037416907191363,
|
| 2511 |
+
1.3891502452597146
|
| 2512 |
+
],
|
| 2513 |
+
[
|
| 2514 |
+
0.928690317973946,
|
| 2515 |
+
0.9938911737986555,
|
| 2516 |
+
0.918332124192325,
|
| 2517 |
+
0.9490904868902302,
|
| 2518 |
+
1.037416907191363,
|
| 2519 |
+
1.3891502452597146
|
| 2520 |
+
],
|
| 2521 |
+
[
|
| 2522 |
+
0.9538387525695884,
|
| 2523 |
+
0.9444316923231468,
|
| 2524 |
+
0.833907576177811,
|
| 2525 |
+
0.8029322286838344,
|
| 2526 |
+
0.8321676536448609,
|
| 2527 |
+
1.0239944396279772
|
| 2528 |
+
],
|
| 2529 |
+
[
|
| 2530 |
+
0.9538387525695884,
|
| 2531 |
+
0.9444316923231468,
|
| 2532 |
+
0.833907576177811,
|
| 2533 |
+
0.8029322286838344,
|
| 2534 |
+
0.8321676536448609,
|
| 2535 |
+
1.0239944396279772
|
| 2536 |
+
],
|
| 2537 |
+
[
|
| 2538 |
+
0.9538387525695884,
|
| 2539 |
+
0.9444316923231468,
|
| 2540 |
+
0.833907576177811,
|
| 2541 |
+
0.8029322286838344,
|
| 2542 |
+
0.8321676536448609,
|
| 2543 |
+
1.0239944396279772
|
| 2544 |
+
],
|
| 2545 |
+
[
|
| 2546 |
+
0.8447196680759655,
|
| 2547 |
+
0.8606011206375156,
|
| 2548 |
+
0.8021282569866746,
|
| 2549 |
+
0.7930974298937281,
|
| 2550 |
+
0.7972136056165563,
|
| 2551 |
+
0.8593516927870296
|
| 2552 |
+
],
|
| 2553 |
+
[
|
| 2554 |
+
0.8447196680759655,
|
| 2555 |
+
0.8606011206375156,
|
| 2556 |
+
0.8021282569866746,
|
| 2557 |
+
0.7930974298937281,
|
| 2558 |
+
0.7972136056165563,
|
| 2559 |
+
0.8593516927870296
|
| 2560 |
+
],
|
| 2561 |
+
[
|
| 2562 |
+
0.8447196680759655,
|
| 2563 |
+
0.8606011206375156,
|
| 2564 |
+
0.8021282569866746,
|
| 2565 |
+
0.7930974298937281,
|
| 2566 |
+
0.7972136056165563,
|
| 2567 |
+
0.8593516927870296
|
| 2568 |
+
],
|
| 2569 |
+
[
|
| 2570 |
+
0.8305971376568635,
|
| 2571 |
+
0.8397078110292673,
|
| 2572 |
+
0.7809938537981733,
|
| 2573 |
+
0.7745261967020282,
|
| 2574 |
+
0.780043615248096,
|
| 2575 |
+
0.8519194233502936
|
| 2576 |
+
],
|
| 2577 |
+
[
|
| 2578 |
+
0.8305971376568635,
|
| 2579 |
+
0.8397078110292673,
|
| 2580 |
+
0.7809938537981733,
|
| 2581 |
+
0.7745261967020282,
|
| 2582 |
+
0.780043615248096,
|
| 2583 |
+
0.8519194233502936
|
| 2584 |
+
],
|
| 2585 |
+
[
|
| 2586 |
+
0.8305971376568635,
|
| 2587 |
+
0.8397078110292673,
|
| 2588 |
+
0.7809938537981733,
|
| 2589 |
+
0.7745261967020282,
|
| 2590 |
+
0.780043615248096,
|
| 2591 |
+
0.8519194233502936
|
| 2592 |
+
]
|
| 2593 |
+
],
|
| 2594 |
+
"intercept": [
|
| 2595 |
+
[
|
| 2596 |
+
-0.45085402744371345,
|
| 2597 |
+
0.1179984593566084,
|
| 2598 |
+
-0.3164840471209972,
|
| 2599 |
+
-0.659989858696296,
|
| 2600 |
+
-0.3192945026504048,
|
| 2601 |
+
0.9611097842121549
|
| 2602 |
+
],
|
| 2603 |
+
[
|
| 2604 |
+
-0.45085402744371345,
|
| 2605 |
+
0.1179984593566084,
|
| 2606 |
+
-0.3164840471209972,
|
| 2607 |
+
-0.659989858696296,
|
| 2608 |
+
-0.3192945026504048,
|
| 2609 |
+
0.9611097842121549
|
| 2610 |
+
],
|
| 2611 |
+
[
|
| 2612 |
+
-0.45085402744371345,
|
| 2613 |
+
0.1179984593566084,
|
| 2614 |
+
-0.3164840471209972,
|
| 2615 |
+
-0.659989858696296,
|
| 2616 |
+
-0.3192945026504048,
|
| 2617 |
+
0.9611097842121549
|
| 2618 |
+
],
|
| 2619 |
+
[
|
| 2620 |
+
0.0008288780053705461,
|
| 2621 |
+
-0.013789219562883976,
|
| 2622 |
+
-0.8725602118722391,
|
| 2623 |
+
-1.5683643159341045,
|
| 2624 |
+
-1.6521035179621997,
|
| 2625 |
+
-1.5250502716251957
|
| 2626 |
+
],
|
| 2627 |
+
[
|
| 2628 |
+
0.0008288780053705461,
|
| 2629 |
+
-0.013789219562883976,
|
| 2630 |
+
-0.8725602118722391,
|
| 2631 |
+
-1.5683643159341045,
|
| 2632 |
+
-1.6521035179621997,
|
| 2633 |
+
-1.5250502716251957
|
| 2634 |
+
],
|
| 2635 |
+
[
|
| 2636 |
+
0.0008288780053705461,
|
| 2637 |
+
-0.013789219562883976,
|
| 2638 |
+
-0.8725602118722391,
|
| 2639 |
+
-1.5683643159341045,
|
| 2640 |
+
-1.6521035179621997,
|
| 2641 |
+
-1.5250502716251957
|
| 2642 |
+
],
|
| 2643 |
+
[
|
| 2644 |
+
-0.11903858915385931,
|
| 2645 |
+
-0.6903853037043931,
|
| 2646 |
+
-1.404123614102389,
|
| 2647 |
+
-1.8741303685381119,
|
| 2648 |
+
-2.242118612625253,
|
| 2649 |
+
-2.8863722627934743
|
| 2650 |
+
],
|
| 2651 |
+
[
|
| 2652 |
+
-0.11903858915385931,
|
| 2653 |
+
-0.6903853037043931,
|
| 2654 |
+
-1.404123614102389,
|
| 2655 |
+
-1.8741303685381119,
|
| 2656 |
+
-2.242118612625253,
|
| 2657 |
+
-2.8863722627934743
|
| 2658 |
+
],
|
| 2659 |
+
[
|
| 2660 |
+
-0.11903858915385931,
|
| 2661 |
+
-0.6903853037043931,
|
| 2662 |
+
-1.404123614102389,
|
| 2663 |
+
-1.8741303685381119,
|
| 2664 |
+
-2.242118612625253,
|
| 2665 |
+
-2.8863722627934743
|
| 2666 |
+
],
|
| 2667 |
+
[
|
| 2668 |
+
-0.1327435150461489,
|
| 2669 |
+
-0.685144738064486,
|
| 2670 |
+
-1.412960523177875,
|
| 2671 |
+
-1.8915518693544462,
|
| 2672 |
+
-2.2504785560566813,
|
| 2673 |
+
-2.858291553670489
|
| 2674 |
+
],
|
| 2675 |
+
[
|
| 2676 |
+
-0.1327435150461489,
|
| 2677 |
+
-0.685144738064486,
|
| 2678 |
+
-1.412960523177875,
|
| 2679 |
+
-1.8915518693544462,
|
| 2680 |
+
-2.2504785560566813,
|
| 2681 |
+
-2.858291553670489
|
| 2682 |
+
],
|
| 2683 |
+
[
|
| 2684 |
+
-0.1327435150461489,
|
| 2685 |
+
-0.685144738064486,
|
| 2686 |
+
-1.412960523177875,
|
| 2687 |
+
-1.8915518693544462,
|
| 2688 |
+
-2.2504785560566813,
|
| 2689 |
+
-2.858291553670489
|
| 2690 |
+
]
|
| 2691 |
+
]
|
| 2692 |
+
}
|
| 2693 |
+
},
|
| 2694 |
+
{
|
| 2695 |
+
"path": "weights/final_all_5_heavy_ah_best_eval_ema.pt",
|
| 2696 |
+
"weight": [
|
| 2697 |
+
[
|
| 2698 |
+
0.0,
|
| 2699 |
+
0.0,
|
| 2700 |
+
0.0,
|
| 2701 |
+
0.16666666666666669,
|
| 2702 |
+
0.18333333333333335,
|
| 2703 |
+
0.20833333333333331
|
| 2704 |
+
],
|
| 2705 |
+
[
|
| 2706 |
+
0.0,
|
| 2707 |
+
0.0,
|
| 2708 |
+
0.0,
|
| 2709 |
+
0.16666666666666669,
|
| 2710 |
+
0.18333333333333335,
|
| 2711 |
+
0.20833333333333331
|
| 2712 |
+
],
|
| 2713 |
+
[
|
| 2714 |
+
0.0,
|
| 2715 |
+
0.0,
|
| 2716 |
+
0.0,
|
| 2717 |
+
0.16666666666666669,
|
| 2718 |
+
0.18333333333333335,
|
| 2719 |
+
0.20833333333333331
|
| 2720 |
+
],
|
| 2721 |
+
[
|
| 2722 |
+
0.0,
|
| 2723 |
+
0.0,
|
| 2724 |
+
0.0,
|
| 2725 |
+
0.2,
|
| 2726 |
+
0.2,
|
| 2727 |
+
0.225
|
| 2728 |
+
],
|
| 2729 |
+
[
|
| 2730 |
+
0.0,
|
| 2731 |
+
0.0,
|
| 2732 |
+
0.0,
|
| 2733 |
+
0.2,
|
| 2734 |
+
0.2,
|
| 2735 |
+
0.18333333333333335
|
| 2736 |
+
],
|
| 2737 |
+
[
|
| 2738 |
+
0.0,
|
| 2739 |
+
0.0,
|
| 2740 |
+
0.0,
|
| 2741 |
+
0.2,
|
| 2742 |
+
0.2,
|
| 2743 |
+
0.18333333333333335
|
| 2744 |
+
],
|
| 2745 |
+
[
|
| 2746 |
+
0.0,
|
| 2747 |
+
0.0,
|
| 2748 |
+
0.0,
|
| 2749 |
+
0.2,
|
| 2750 |
+
0.2,
|
| 2751 |
+
0.17142857142857143
|
| 2752 |
+
],
|
| 2753 |
+
[
|
| 2754 |
+
0.0,
|
| 2755 |
+
0.0,
|
| 2756 |
+
0.0,
|
| 2757 |
+
0.2,
|
| 2758 |
+
0.2,
|
| 2759 |
+
0.17142857142857143
|
| 2760 |
+
],
|
| 2761 |
+
[
|
| 2762 |
+
0.0,
|
| 2763 |
+
0.0,
|
| 2764 |
+
0.0,
|
| 2765 |
+
0.2,
|
| 2766 |
+
0.2,
|
| 2767 |
+
0.1
|
| 2768 |
+
],
|
| 2769 |
+
[
|
| 2770 |
+
0.0,
|
| 2771 |
+
0.0,
|
| 2772 |
+
0.0,
|
| 2773 |
+
0.2,
|
| 2774 |
+
0.2,
|
| 2775 |
+
0.1
|
| 2776 |
+
],
|
| 2777 |
+
[
|
| 2778 |
+
0.0,
|
| 2779 |
+
0.0,
|
| 2780 |
+
0.0,
|
| 2781 |
+
0.2,
|
| 2782 |
+
0.2,
|
| 2783 |
+
0.1
|
| 2784 |
+
],
|
| 2785 |
+
[
|
| 2786 |
+
0.0,
|
| 2787 |
+
0.0,
|
| 2788 |
+
0.0,
|
| 2789 |
+
0.2,
|
| 2790 |
+
0.2,
|
| 2791 |
+
0.1
|
| 2792 |
+
]
|
| 2793 |
+
],
|
| 2794 |
+
"calibration": {
|
| 2795 |
+
"slope": [
|
| 2796 |
+
[
|
| 2797 |
+
0.9561404075241701,
|
| 2798 |
+
0.9969964206171897,
|
| 2799 |
+
0.9231470680084682,
|
| 2800 |
+
0.91475800371139,
|
| 2801 |
+
0.9347560571670784,
|
| 2802 |
+
0.9874458524779358
|
| 2803 |
+
],
|
| 2804 |
+
[
|
| 2805 |
+
0.9561404075241701,
|
| 2806 |
+
0.9969964206171897,
|
| 2807 |
+
0.9231470680084682,
|
| 2808 |
+
0.91475800371139,
|
| 2809 |
+
0.9347560571670784,
|
| 2810 |
+
0.9874458524779358
|
| 2811 |
+
],
|
| 2812 |
+
[
|
| 2813 |
+
0.9561404075241701,
|
| 2814 |
+
0.9969964206171897,
|
| 2815 |
+
0.9231470680084682,
|
| 2816 |
+
0.91475800371139,
|
| 2817 |
+
0.9347560571670784,
|
| 2818 |
+
0.9874458524779358
|
| 2819 |
+
],
|
| 2820 |
+
[
|
| 2821 |
+
0.8953886722277273,
|
| 2822 |
+
0.9342271935370025,
|
| 2823 |
+
0.8750226967692226,
|
| 2824 |
+
0.872817721217761,
|
| 2825 |
+
0.8910859090568594,
|
| 2826 |
+
0.9618475542036447
|
| 2827 |
+
],
|
| 2828 |
+
[
|
| 2829 |
+
0.8953886722277273,
|
| 2830 |
+
0.9342271935370025,
|
| 2831 |
+
0.8750226967692226,
|
| 2832 |
+
0.872817721217761,
|
| 2833 |
+
0.8910859090568594,
|
| 2834 |
+
0.9618475542036447
|
| 2835 |
+
],
|
| 2836 |
+
[
|
| 2837 |
+
0.8953886722277273,
|
| 2838 |
+
0.9342271935370025,
|
| 2839 |
+
0.8750226967692226,
|
| 2840 |
+
0.872817721217761,
|
| 2841 |
+
0.8910859090568594,
|
| 2842 |
+
0.9618475542036447
|
| 2843 |
+
],
|
| 2844 |
+
[
|
| 2845 |
+
0.8676674978542425,
|
| 2846 |
+
0.9085192489581003,
|
| 2847 |
+
0.8579086231318245,
|
| 2848 |
+
0.8524327646474059,
|
| 2849 |
+
0.869396287552672,
|
| 2850 |
+
0.9470105460148265
|
| 2851 |
+
],
|
| 2852 |
+
[
|
| 2853 |
+
0.8676674978542425,
|
| 2854 |
+
0.9085192489581003,
|
| 2855 |
+
0.8579086231318245,
|
| 2856 |
+
0.8524327646474059,
|
| 2857 |
+
0.869396287552672,
|
| 2858 |
+
0.9470105460148265
|
| 2859 |
+
],
|
| 2860 |
+
[
|
| 2861 |
+
0.8676674978542425,
|
| 2862 |
+
0.9085192489581003,
|
| 2863 |
+
0.8579086231318245,
|
| 2864 |
+
0.8524327646474059,
|
| 2865 |
+
0.869396287552672,
|
| 2866 |
+
0.9470105460148265
|
| 2867 |
+
],
|
| 2868 |
+
[
|
| 2869 |
+
0.8632088673340435,
|
| 2870 |
+
0.8968892037468191,
|
| 2871 |
+
0.8410599464974465,
|
| 2872 |
+
0.8333566952584117,
|
| 2873 |
+
0.8538712462668369,
|
| 2874 |
+
0.9405695704461237
|
| 2875 |
+
],
|
| 2876 |
+
[
|
| 2877 |
+
0.8632088673340435,
|
| 2878 |
+
0.8968892037468191,
|
| 2879 |
+
0.8410599464974465,
|
| 2880 |
+
0.8333566952584117,
|
| 2881 |
+
0.8538712462668369,
|
| 2882 |
+
0.9405695704461237
|
| 2883 |
+
],
|
| 2884 |
+
[
|
| 2885 |
+
0.8632088673340435,
|
| 2886 |
+
0.8968892037468191,
|
| 2887 |
+
0.8410599464974465,
|
| 2888 |
+
0.8333566952584117,
|
| 2889 |
+
0.8538712462668369,
|
| 2890 |
+
0.9405695704461237
|
| 2891 |
+
]
|
| 2892 |
+
],
|
| 2893 |
+
"intercept": [
|
| 2894 |
+
[
|
| 2895 |
+
0.26015414780128354,
|
| 2896 |
+
-0.5346611288107925,
|
| 2897 |
+
-1.1378225024924324,
|
| 2898 |
+
-1.7795006251800043,
|
| 2899 |
+
-2.1002068145212665,
|
| 2900 |
+
-2.761632750245117
|
| 2901 |
+
],
|
| 2902 |
+
[
|
| 2903 |
+
0.26015414780128354,
|
| 2904 |
+
-0.5346611288107925,
|
| 2905 |
+
-1.1378225024924324,
|
| 2906 |
+
-1.7795006251800043,
|
| 2907 |
+
-2.1002068145212665,
|
| 2908 |
+
-2.761632750245117
|
| 2909 |
+
],
|
| 2910 |
+
[
|
| 2911 |
+
0.26015414780128354,
|
| 2912 |
+
-0.5346611288107925,
|
| 2913 |
+
-1.1378225024924324,
|
| 2914 |
+
-1.7795006251800043,
|
| 2915 |
+
-2.1002068145212665,
|
| 2916 |
+
-2.761632750245117
|
| 2917 |
+
],
|
| 2918 |
+
[
|
| 2919 |
+
-0.012096934829396574,
|
| 2920 |
+
-0.6201616865227539,
|
| 2921 |
+
-1.2236977896884966,
|
| 2922 |
+
-1.7631693261244756,
|
| 2923 |
+
-2.1069367700689474,
|
| 2924 |
+
-2.740496331549543
|
| 2925 |
+
],
|
| 2926 |
+
[
|
| 2927 |
+
-0.012096934829396574,
|
| 2928 |
+
-0.6201616865227539,
|
| 2929 |
+
-1.2236977896884966,
|
| 2930 |
+
-1.7631693261244756,
|
| 2931 |
+
-2.1069367700689474,
|
| 2932 |
+
-2.740496331549543
|
| 2933 |
+
],
|
| 2934 |
+
[
|
| 2935 |
+
-0.012096934829396574,
|
| 2936 |
+
-0.6201616865227539,
|
| 2937 |
+
-1.2236977896884966,
|
| 2938 |
+
-1.7631693261244756,
|
| 2939 |
+
-2.1069367700689474,
|
| 2940 |
+
-2.740496331549543
|
| 2941 |
+
],
|
| 2942 |
+
[
|
| 2943 |
+
-0.08404603573333774,
|
| 2944 |
+
-0.662708275434989,
|
| 2945 |
+
-1.2576078704699336,
|
| 2946 |
+
-1.770794575128251,
|
| 2947 |
+
-2.105947512139438,
|
| 2948 |
+
-2.7156720790241846
|
| 2949 |
+
],
|
| 2950 |
+
[
|
| 2951 |
+
-0.08404603573333774,
|
| 2952 |
+
-0.662708275434989,
|
| 2953 |
+
-1.2576078704699336,
|
| 2954 |
+
-1.770794575128251,
|
| 2955 |
+
-2.105947512139438,
|
| 2956 |
+
-2.7156720790241846
|
| 2957 |
+
],
|
| 2958 |
+
[
|
| 2959 |
+
-0.08404603573333774,
|
| 2960 |
+
-0.662708275434989,
|
| 2961 |
+
-1.2576078704699336,
|
| 2962 |
+
-1.770794575128251,
|
| 2963 |
+
-2.105947512139438,
|
| 2964 |
+
-2.7156720790241846
|
| 2965 |
+
],
|
| 2966 |
+
[
|
| 2967 |
+
-0.12135977570736026,
|
| 2968 |
+
-0.6766866315598538,
|
| 2969 |
+
-1.2835409981080452,
|
| 2970 |
+
-1.7883206388632769,
|
| 2971 |
+
-2.108858056326504,
|
| 2972 |
+
-2.67308413586585
|
| 2973 |
+
],
|
| 2974 |
+
[
|
| 2975 |
+
-0.12135977570736026,
|
| 2976 |
+
-0.6766866315598538,
|
| 2977 |
+
-1.2835409981080452,
|
| 2978 |
+
-1.7883206388632769,
|
| 2979 |
+
-2.108858056326504,
|
| 2980 |
+
-2.67308413586585
|
| 2981 |
+
],
|
| 2982 |
+
[
|
| 2983 |
+
-0.12135977570736026,
|
| 2984 |
+
-0.6766866315598538,
|
| 2985 |
+
-1.2835409981080452,
|
| 2986 |
+
-1.7883206388632769,
|
| 2987 |
+
-2.108858056326504,
|
| 2988 |
+
-2.67308413586585
|
| 2989 |
+
]
|
| 2990 |
+
]
|
| 2991 |
+
}
|
| 2992 |
+
},
|
| 2993 |
+
{
|
| 2994 |
+
"path": "weights/final_all_6_advective_t_best_eval_ema.pt",
|
| 2995 |
+
"weight": [
|
| 2996 |
+
[
|
| 2997 |
+
0.1,
|
| 2998 |
+
0.0,
|
| 2999 |
+
0.1,
|
| 3000 |
+
0.0,
|
| 3001 |
+
0.0,
|
| 3002 |
+
0.0
|
| 3003 |
+
],
|
| 3004 |
+
[
|
| 3005 |
+
0.1,
|
| 3006 |
+
0.0,
|
| 3007 |
+
0.1,
|
| 3008 |
+
0.0,
|
| 3009 |
+
0.0,
|
| 3010 |
+
0.0
|
| 3011 |
+
],
|
| 3012 |
+
[
|
| 3013 |
+
0.1,
|
| 3014 |
+
0.0,
|
| 3015 |
+
0.1,
|
| 3016 |
+
0.0,
|
| 3017 |
+
0.0,
|
| 3018 |
+
0.0
|
| 3019 |
+
],
|
| 3020 |
+
[
|
| 3021 |
+
0.125,
|
| 3022 |
+
0.0,
|
| 3023 |
+
0.1,
|
| 3024 |
+
0.0,
|
| 3025 |
+
0.0,
|
| 3026 |
+
0.0
|
| 3027 |
+
],
|
| 3028 |
+
[
|
| 3029 |
+
0.125,
|
| 3030 |
+
0.0,
|
| 3031 |
+
0.1,
|
| 3032 |
+
0.0,
|
| 3033 |
+
0.0,
|
| 3034 |
+
0.0
|
| 3035 |
+
],
|
| 3036 |
+
[
|
| 3037 |
+
0.125,
|
| 3038 |
+
0.0,
|
| 3039 |
+
0.1,
|
| 3040 |
+
0.0,
|
| 3041 |
+
0.0,
|
| 3042 |
+
0.0
|
| 3043 |
+
],
|
| 3044 |
+
[
|
| 3045 |
+
0.125,
|
| 3046 |
+
0.0,
|
| 3047 |
+
0.1,
|
| 3048 |
+
0.0,
|
| 3049 |
+
0.0,
|
| 3050 |
+
0.0
|
| 3051 |
+
],
|
| 3052 |
+
[
|
| 3053 |
+
0.125,
|
| 3054 |
+
0.0,
|
| 3055 |
+
0.1,
|
| 3056 |
+
0.0,
|
| 3057 |
+
0.0,
|
| 3058 |
+
0.0
|
| 3059 |
+
],
|
| 3060 |
+
[
|
| 3061 |
+
0.125,
|
| 3062 |
+
0.0,
|
| 3063 |
+
0.1,
|
| 3064 |
+
0.0,
|
| 3065 |
+
0.0,
|
| 3066 |
+
0.1
|
| 3067 |
+
],
|
| 3068 |
+
[
|
| 3069 |
+
0.125,
|
| 3070 |
+
0.0,
|
| 3071 |
+
0.1,
|
| 3072 |
+
0.0,
|
| 3073 |
+
0.0,
|
| 3074 |
+
0.1
|
| 3075 |
+
],
|
| 3076 |
+
[
|
| 3077 |
+
0.125,
|
| 3078 |
+
0.0,
|
| 3079 |
+
0.1,
|
| 3080 |
+
0.0,
|
| 3081 |
+
0.0,
|
| 3082 |
+
0.1
|
| 3083 |
+
],
|
| 3084 |
+
[
|
| 3085 |
+
0.125,
|
| 3086 |
+
0.0,
|
| 3087 |
+
0.1,
|
| 3088 |
+
0.0,
|
| 3089 |
+
0.0,
|
| 3090 |
+
0.1
|
| 3091 |
+
]
|
| 3092 |
+
],
|
| 3093 |
+
"calibration": {
|
| 3094 |
+
"slope": [
|
| 3095 |
+
[
|
| 3096 |
+
0.8860023979902,
|
| 3097 |
+
0.8781107965401834,
|
| 3098 |
+
0.7944433216842549,
|
| 3099 |
+
0.7829522162998243,
|
| 3100 |
+
0.7838706623166198,
|
| 3101 |
+
0.7909461512377309
|
| 3102 |
+
],
|
| 3103 |
+
[
|
| 3104 |
+
0.8860023979902,
|
| 3105 |
+
0.8781107965401834,
|
| 3106 |
+
0.7944433216842549,
|
| 3107 |
+
0.7829522162998243,
|
| 3108 |
+
0.7838706623166198,
|
| 3109 |
+
0.7909461512377309
|
| 3110 |
+
],
|
| 3111 |
+
[
|
| 3112 |
+
0.8860023979902,
|
| 3113 |
+
0.8781107965401834,
|
| 3114 |
+
0.7944433216842549,
|
| 3115 |
+
0.7829522162998243,
|
| 3116 |
+
0.7838706623166198,
|
| 3117 |
+
0.7909461512377309
|
| 3118 |
+
],
|
| 3119 |
+
[
|
| 3120 |
+
0.8356549155111168,
|
| 3121 |
+
0.8193883450325656,
|
| 3122 |
+
0.7409986084119254,
|
| 3123 |
+
0.720524002750276,
|
| 3124 |
+
0.7265438029028602,
|
| 3125 |
+
0.7580301692162627
|
| 3126 |
+
],
|
| 3127 |
+
[
|
| 3128 |
+
0.8356549155111168,
|
| 3129 |
+
0.8193883450325656,
|
| 3130 |
+
0.7409986084119254,
|
| 3131 |
+
0.720524002750276,
|
| 3132 |
+
0.7265438029028602,
|
| 3133 |
+
0.7580301692162627
|
| 3134 |
+
],
|
| 3135 |
+
[
|
| 3136 |
+
0.8356549155111168,
|
| 3137 |
+
0.8193883450325656,
|
| 3138 |
+
0.7409986084119254,
|
| 3139 |
+
0.720524002750276,
|
| 3140 |
+
0.7265438029028602,
|
| 3141 |
+
0.7580301692162627
|
| 3142 |
+
],
|
| 3143 |
+
[
|
| 3144 |
+
0.8099213786435457,
|
| 3145 |
+
0.7975316781096414,
|
| 3146 |
+
0.7158531428690753,
|
| 3147 |
+
0.6935865460239046,
|
| 3148 |
+
0.7018791128120637,
|
| 3149 |
+
0.7441921017818706
|
| 3150 |
+
],
|
| 3151 |
+
[
|
| 3152 |
+
0.8099213786435457,
|
| 3153 |
+
0.7975316781096414,
|
| 3154 |
+
0.7158531428690753,
|
| 3155 |
+
0.6935865460239046,
|
| 3156 |
+
0.7018791128120637,
|
| 3157 |
+
0.7441921017818706
|
| 3158 |
+
],
|
| 3159 |
+
[
|
| 3160 |
+
0.8099213786435457,
|
| 3161 |
+
0.7975316781096414,
|
| 3162 |
+
0.7158531428690753,
|
| 3163 |
+
0.6935865460239046,
|
| 3164 |
+
0.7018791128120637,
|
| 3165 |
+
0.7441921017818706
|
| 3166 |
+
],
|
| 3167 |
+
[
|
| 3168 |
+
0.7974155733768814,
|
| 3169 |
+
0.7826113470520065,
|
| 3170 |
+
0.6935946416218083,
|
| 3171 |
+
0.6711436500118176,
|
| 3172 |
+
0.6847153731305337,
|
| 3173 |
+
0.7231084672454003
|
| 3174 |
+
],
|
| 3175 |
+
[
|
| 3176 |
+
0.7974155733768814,
|
| 3177 |
+
0.7826113470520065,
|
| 3178 |
+
0.6935946416218083,
|
| 3179 |
+
0.6711436500118176,
|
| 3180 |
+
0.6847153731305337,
|
| 3181 |
+
0.7231084672454003
|
| 3182 |
+
],
|
| 3183 |
+
[
|
| 3184 |
+
0.7974155733768814,
|
| 3185 |
+
0.7826113470520065,
|
| 3186 |
+
0.6935946416218083,
|
| 3187 |
+
0.6711436500118176,
|
| 3188 |
+
0.6847153731305337,
|
| 3189 |
+
0.7231084672454003
|
| 3190 |
+
]
|
| 3191 |
+
],
|
| 3192 |
+
"intercept": [
|
| 3193 |
+
[
|
| 3194 |
+
-0.11304777248335565,
|
| 3195 |
+
-0.28106546550880285,
|
| 3196 |
+
-0.8609017400397646,
|
| 3197 |
+
-1.3976990137316594,
|
| 3198 |
+
-1.9071821924649806,
|
| 3199 |
+
-3.186700968077671
|
| 3200 |
+
],
|
| 3201 |
+
[
|
| 3202 |
+
-0.11304777248335565,
|
| 3203 |
+
-0.28106546550880285,
|
| 3204 |
+
-0.8609017400397646,
|
| 3205 |
+
-1.3976990137316594,
|
| 3206 |
+
-1.9071821924649806,
|
| 3207 |
+
-3.186700968077671
|
| 3208 |
+
],
|
| 3209 |
+
[
|
| 3210 |
+
-0.11304777248335565,
|
| 3211 |
+
-0.28106546550880285,
|
| 3212 |
+
-0.8609017400397646,
|
| 3213 |
+
-1.3976990137316594,
|
| 3214 |
+
-1.9071821924649806,
|
| 3215 |
+
-3.186700968077671
|
| 3216 |
+
],
|
| 3217 |
+
[
|
| 3218 |
+
-0.12063449485737564,
|
| 3219 |
+
-0.2702596722979888,
|
| 3220 |
+
-0.8499739015687767,
|
| 3221 |
+
-1.3905389752167765,
|
| 3222 |
+
-1.8830041517817175,
|
| 3223 |
+
-3.071799002362676
|
| 3224 |
+
],
|
| 3225 |
+
[
|
| 3226 |
+
-0.12063449485737564,
|
| 3227 |
+
-0.2702596722979888,
|
| 3228 |
+
-0.8499739015687767,
|
| 3229 |
+
-1.3905389752167765,
|
| 3230 |
+
-1.8830041517817175,
|
| 3231 |
+
-3.071799002362676
|
| 3232 |
+
],
|
| 3233 |
+
[
|
| 3234 |
+
-0.12063449485737564,
|
| 3235 |
+
-0.2702596722979888,
|
| 3236 |
+
-0.8499739015687767,
|
| 3237 |
+
-1.3905389752167765,
|
| 3238 |
+
-1.8830041517817175,
|
| 3239 |
+
-3.071799002362676
|
| 3240 |
+
],
|
| 3241 |
+
[
|
| 3242 |
+
-0.13117400454374475,
|
| 3243 |
+
-0.2685434964158707,
|
| 3244 |
+
-0.8485024882195629,
|
| 3245 |
+
-1.393494071535498,
|
| 3246 |
+
-1.8612133758313623,
|
| 3247 |
+
-3.0206954761599865
|
| 3248 |
+
],
|
| 3249 |
+
[
|
| 3250 |
+
-0.13117400454374475,
|
| 3251 |
+
-0.2685434964158707,
|
| 3252 |
+
-0.8485024882195629,
|
| 3253 |
+
-1.393494071535498,
|
| 3254 |
+
-1.8612133758313623,
|
| 3255 |
+
-3.0206954761599865
|
| 3256 |
+
],
|
| 3257 |
+
[
|
| 3258 |
+
-0.13117400454374475,
|
| 3259 |
+
-0.2685434964158707,
|
| 3260 |
+
-0.8485024882195629,
|
| 3261 |
+
-1.393494071535498,
|
| 3262 |
+
-1.8612133758313623,
|
| 3263 |
+
-3.0206954761599865
|
| 3264 |
+
],
|
| 3265 |
+
[
|
| 3266 |
+
-0.13263580496117217,
|
| 3267 |
+
-0.25660014330325964,
|
| 3268 |
+
-0.8578139479892067,
|
| 3269 |
+
-1.4133072659450163,
|
| 3270 |
+
-1.8592366554735749,
|
| 3271 |
+
-3.087077344925948
|
| 3272 |
+
],
|
| 3273 |
+
[
|
| 3274 |
+
-0.13263580496117217,
|
| 3275 |
+
-0.25660014330325964,
|
| 3276 |
+
-0.8578139479892067,
|
| 3277 |
+
-1.4133072659450163,
|
| 3278 |
+
-1.8592366554735749,
|
| 3279 |
+
-3.087077344925948
|
| 3280 |
+
],
|
| 3281 |
+
[
|
| 3282 |
+
-0.13263580496117217,
|
| 3283 |
+
-0.25660014330325964,
|
| 3284 |
+
-0.8578139479892067,
|
| 3285 |
+
-1.4133072659450163,
|
| 3286 |
+
-1.8592366554735749,
|
| 3287 |
+
-3.087077344925948
|
| 3288 |
+
]
|
| 3289 |
+
]
|
| 3290 |
+
}
|
| 3291 |
+
}
|
| 3292 |
+
],
|
| 3293 |
+
"views": [
|
| 3294 |
+
[
|
| 3295 |
+
0,
|
| 3296 |
+
false
|
| 3297 |
+
],
|
| 3298 |
+
[
|
| 3299 |
+
0,
|
| 3300 |
+
true
|
| 3301 |
+
],
|
| 3302 |
+
[
|
| 3303 |
+
1,
|
| 3304 |
+
false
|
| 3305 |
+
],
|
| 3306 |
+
[
|
| 3307 |
+
1,
|
| 3308 |
+
true
|
| 3309 |
+
],
|
| 3310 |
+
[
|
| 3311 |
+
2,
|
| 3312 |
+
false
|
| 3313 |
+
],
|
| 3314 |
+
[
|
| 3315 |
+
2,
|
| 3316 |
+
true
|
| 3317 |
+
],
|
| 3318 |
+
[
|
| 3319 |
+
3,
|
| 3320 |
+
false
|
| 3321 |
+
],
|
| 3322 |
+
[
|
| 3323 |
+
3,
|
| 3324 |
+
true
|
| 3325 |
+
]
|
| 3326 |
+
],
|
| 3327 |
+
"smoothing": 0.5,
|
| 3328 |
+
"compile": true,
|
| 3329 |
+
"cutoffs": [
|
| 3330 |
+
[
|
| 3331 |
+
0.42549019607843136,
|
| 3332 |
+
0.39803921568627454,
|
| 3333 |
+
0.27647058823529413,
|
| 3334 |
+
0.22549019607843138,
|
| 3335 |
+
0.2019607843137255,
|
| 3336 |
+
0.12352941176470589
|
| 3337 |
+
],
|
| 3338 |
+
[
|
| 3339 |
+
0.42549019607843136,
|
| 3340 |
+
0.39803921568627454,
|
| 3341 |
+
0.27647058823529413,
|
| 3342 |
+
0.22941176470588237,
|
| 3343 |
+
0.21372549019607845,
|
| 3344 |
+
0.12745098039215688
|
| 3345 |
+
],
|
| 3346 |
+
[
|
| 3347 |
+
0.42549019607843136,
|
| 3348 |
+
0.39803921568627454,
|
| 3349 |
+
0.28431372549019607,
|
| 3350 |
+
0.23333333333333334,
|
| 3351 |
+
0.21372549019607845,
|
| 3352 |
+
0.1431372549019608
|
| 3353 |
+
],
|
| 3354 |
+
[
|
| 3355 |
+
0.42549019607843136,
|
| 3356 |
+
0.39803921568627454,
|
| 3357 |
+
0.28431372549019607,
|
| 3358 |
+
0.23725490196078433,
|
| 3359 |
+
0.22941176470588237,
|
| 3360 |
+
0.15882352941176472
|
| 3361 |
+
],
|
| 3362 |
+
[
|
| 3363 |
+
0.42549019607843136,
|
| 3364 |
+
0.39803921568627454,
|
| 3365 |
+
0.2882352941176471,
|
| 3366 |
+
0.2450980392156863,
|
| 3367 |
+
0.22941176470588237,
|
| 3368 |
+
0.1784313725490196
|
| 3369 |
+
],
|
| 3370 |
+
[
|
| 3371 |
+
0.42549019607843136,
|
| 3372 |
+
0.4019607843137255,
|
| 3373 |
+
0.2882352941176471,
|
| 3374 |
+
0.2529411764705882,
|
| 3375 |
+
0.23725490196078433,
|
| 3376 |
+
0.18627450980392157
|
| 3377 |
+
],
|
| 3378 |
+
[
|
| 3379 |
+
0.4294117647058824,
|
| 3380 |
+
0.4019607843137255,
|
| 3381 |
+
0.29215686274509806,
|
| 3382 |
+
0.25686274509803925,
|
| 3383 |
+
0.23725490196078433,
|
| 3384 |
+
0.19411764705882353
|
| 3385 |
+
],
|
| 3386 |
+
[
|
| 3387 |
+
0.4294117647058824,
|
| 3388 |
+
0.4019607843137255,
|
| 3389 |
+
0.29215686274509806,
|
| 3390 |
+
0.2607843137254902,
|
| 3391 |
+
0.2411764705882353,
|
| 3392 |
+
0.19411764705882353
|
| 3393 |
+
],
|
| 3394 |
+
[
|
| 3395 |
+
0.4294117647058824,
|
| 3396 |
+
0.39803921568627454,
|
| 3397 |
+
0.296078431372549,
|
| 3398 |
+
0.2607843137254902,
|
| 3399 |
+
0.2411764705882353,
|
| 3400 |
+
0.19019607843137257
|
| 3401 |
+
],
|
| 3402 |
+
[
|
| 3403 |
+
0.4294117647058824,
|
| 3404 |
+
0.39803921568627454,
|
| 3405 |
+
0.296078431372549,
|
| 3406 |
+
0.2607843137254902,
|
| 3407 |
+
0.2450980392156863,
|
| 3408 |
+
0.1784313725490196
|
| 3409 |
+
],
|
| 3410 |
+
[
|
| 3411 |
+
0.4294117647058824,
|
| 3412 |
+
0.3941176470588235,
|
| 3413 |
+
0.296078431372549,
|
| 3414 |
+
0.2607843137254902,
|
| 3415 |
+
0.2450980392156863,
|
| 3416 |
+
0.17450980392156865
|
| 3417 |
+
],
|
| 3418 |
+
[
|
| 3419 |
+
0.4294117647058824,
|
| 3420 |
+
0.3941176470588235,
|
| 3421 |
+
0.296078431372549,
|
| 3422 |
+
0.2607843137254902,
|
| 3423 |
+
0.2450980392156863,
|
| 3424 |
+
0.17058823529411765
|
| 3425 |
+
]
|
| 3426 |
+
]
|
| 3427 |
+
}
|
sevir-full/inference_utils.py
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Frozen test-time symmetry averaging; no adaptation or cross-sample state."""
|
| 2 |
+
import torch
|
| 3 |
+
|
| 4 |
+
class CompiledForecast(torch.nn.Module):
|
| 5 |
+
"""Compile fixed-batch inference, padding only with independent zero inputs."""
|
| 6 |
+
def __init__(self, model, batch):
|
| 7 |
+
super().__init__()
|
| 8 |
+
self.motion = model.motion
|
| 9 |
+
self.batch = batch
|
| 10 |
+
self.model = torch.compile(model, dynamic=False)
|
| 11 |
+
|
| 12 |
+
def forward(self, x, flow):
|
| 13 |
+
count = len(x)
|
| 14 |
+
if count < self.batch:
|
| 15 |
+
x = torch.cat((x, x.new_zeros(self.batch-count, *x.shape[1:])))
|
| 16 |
+
x = x.contiguous(memory_format=torch.channels_last)
|
| 17 |
+
flow = torch.cat((flow, flow.new_zeros(self.batch-count, *flow.shape[1:])))
|
| 18 |
+
result = self.model(x, flow)
|
| 19 |
+
return tuple(value[:count] if value is not None else None for value in result)
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def transform(x, flow, k, flip):
|
| 23 |
+
x=torch.rot90(x,k,(-2,-1))
|
| 24 |
+
flow=torch.rot90(flow,k,(-2,-1))
|
| 25 |
+
u,v=flow[:,0],flow[:,1]
|
| 26 |
+
if k==1:flow=torch.stack((v,-u),1)
|
| 27 |
+
elif k==2:flow=-flow
|
| 28 |
+
elif k==3:flow=torch.stack((-v,u),1)
|
| 29 |
+
if flip:
|
| 30 |
+
x=x.flip(-1);flow=flow.flip(-1)*flow.new_tensor([-1,1])[None,:,None,None]
|
| 31 |
+
return x.contiguous(memory_format=torch.channels_last),flow.contiguous()
|
| 32 |
+
|
| 33 |
+
def invert(p,k,flip):
|
| 34 |
+
if flip:p=p.flip(-1)
|
| 35 |
+
return torch.rot90(p,-k,(-2,-1))
|
| 36 |
+
|
| 37 |
+
def predict_probabilities(models,x,flow,views=None,calibrations=None,scales=None,aggregation='mean',precision='bfloat16',calibration_order='view'):
|
| 38 |
+
assert precision in ('bfloat16','float16','float32')
|
| 39 |
+
assert calibration_order in ('view','average')
|
| 40 |
+
if calibration_order=='average':
|
| 41 |
+
assert aggregation=='mean'
|
| 42 |
+
total=None;den=0.
|
| 43 |
+
for index,(model,weight) in enumerate(models):
|
| 44 |
+
scale=scales[index] if scales else 1
|
| 45 |
+
p=predict_probabilities([(model,1.)],x,flow,views,None,[scale],'mean',precision)
|
| 46 |
+
cal=calibrations[index] if calibrations else None
|
| 47 |
+
if cal is not None:
|
| 48 |
+
assert 'slope' in cal
|
| 49 |
+
slope=torch.as_tensor(cal['slope'],device=p.device,dtype=p.dtype)[None,:,:,None,None]
|
| 50 |
+
intercept=torch.as_tensor(cal['intercept'],device=p.device,dtype=p.dtype)[None,:,:,None,None]
|
| 51 |
+
p=(torch.logit(p.clamp(.001,.999))*slope+intercept).sigmoid()
|
| 52 |
+
weight=torch.as_tensor(weight,device=x.device,dtype=torch.float32)
|
| 53 |
+
if weight.ndim==1:weight=weight[None,None,:,None,None]
|
| 54 |
+
elif weight.ndim==2:weight=weight[None,:,:,None,None]
|
| 55 |
+
total=p*weight if total is None else total+p*weight
|
| 56 |
+
den=den+weight
|
| 57 |
+
return total/den
|
| 58 |
+
views=views or [[0,False]]
|
| 59 |
+
total=None;den=0.
|
| 60 |
+
for view in views:
|
| 61 |
+
k,flip=view[:2]
|
| 62 |
+
dy,dx=view[2:] if len(view)>2 else (0,0)
|
| 63 |
+
xx,ff=transform(x,flow,k,flip) if k or flip else (x,flow)
|
| 64 |
+
if dy or dx:xx,ff=shift_view(xx,ff,dy,dx)
|
| 65 |
+
for index,(model,weight) in enumerate(models):
|
| 66 |
+
model_x,model_flow=xx,ff
|
| 67 |
+
scale=scales[index] if scales else 1
|
| 68 |
+
if scale!=1:
|
| 69 |
+
from torch.nn import functional as F
|
| 70 |
+
size=int(round(xx.shape[-1]*scale/32))*32
|
| 71 |
+
model_x=F.interpolate(xx,size=(size,size),mode='bilinear',align_corners=False)
|
| 72 |
+
model_flow=F.interpolate(ff,size=(size//2,size//2),mode='bilinear',align_corners=False)*(size/xx.shape[-1])
|
| 73 |
+
with torch.autocast('cuda',dtype=getattr(torch,precision),enabled=precision!='float32'):
|
| 74 |
+
logits,_,_=model(model_x,model_flow)
|
| 75 |
+
p=logits.float().sigmoid()
|
| 76 |
+
if scale!=1:
|
| 77 |
+
b,t,c,h,w=p.shape
|
| 78 |
+
p=F.interpolate(p.reshape(b,t*c,h,w),size=xx.shape[-2:],mode='bilinear',align_corners=False).reshape(b,t,c,*xx.shape[-2:])
|
| 79 |
+
if dy or dx:p=unshift_prediction(p,dy,dx)
|
| 80 |
+
p=invert(p,k,flip)
|
| 81 |
+
if calibrations and calibrations[index] is not None:
|
| 82 |
+
cal=calibrations[index]
|
| 83 |
+
if 'slope' in cal:
|
| 84 |
+
slope=torch.as_tensor(cal['slope'],device=p.device,dtype=p.dtype)[None,:,:,None,None]
|
| 85 |
+
intercept=torch.as_tensor(cal['intercept'],device=p.device,dtype=p.dtype)[None,:,:,None,None]
|
| 86 |
+
p=(torch.logit(p.clamp(.001,.999))*slope+intercept).sigmoid()
|
| 87 |
+
else:
|
| 88 |
+
center=torch.as_tensor(cal['center'],device=p.device,dtype=p.dtype)
|
| 89 |
+
if center.ndim==1:center=center[None,None,:,None,None]
|
| 90 |
+
else:center=center[None,:,:,None,None]
|
| 91 |
+
temperature=cal.get('temperature',1.0)
|
| 92 |
+
p=((torch.logit(p.clamp(.0001,.9999))-torch.logit(center.clamp(.0001,.9999)))/temperature).sigmoid()
|
| 93 |
+
if aggregation=='logit':p=torch.logit(p.clamp(1e-6,1-1e-6))
|
| 94 |
+
elif aggregation!='mean':
|
| 95 |
+
assert isinstance(aggregation,(int,float)) and aggregation>0
|
| 96 |
+
p=p.clamp_min(1e-6).pow(aggregation)
|
| 97 |
+
weight=torch.as_tensor(weight,device=x.device,dtype=torch.float32)
|
| 98 |
+
if weight.ndim==1:weight=weight[None,None,:,None,None]
|
| 99 |
+
elif weight.ndim==2:weight=weight[None,:,:,None,None]
|
| 100 |
+
total=p*weight if total is None else total+p*weight
|
| 101 |
+
den=den+weight
|
| 102 |
+
result=total/den
|
| 103 |
+
if aggregation=='logit':return result.sigmoid()
|
| 104 |
+
if aggregation!='mean':return result.clamp_min(0).pow(1/aggregation)
|
| 105 |
+
return result
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
def smooth_probabilities(p,sigma):
|
| 109 |
+
"""Optional fixed spatial smoothing, independently within each sample and lead."""
|
| 110 |
+
if not sigma:return p
|
| 111 |
+
from torch.nn import functional as F
|
| 112 |
+
b,t,c,h,w=p.shape
|
| 113 |
+
sig=torch.as_tensor(sigma,device=p.device,dtype=p.dtype)
|
| 114 |
+
if sig.ndim==0:sig=sig.expand(c)
|
| 115 |
+
if sig.ndim==1:sig=sig[None].expand(t,-1)
|
| 116 |
+
radius=max(1,int(float(sig.max())*3+.5))
|
| 117 |
+
xx=torch.arange(-radius,radius+1,device=p.device,dtype=p.dtype)
|
| 118 |
+
kernel=torch.exp(-xx[None,None,:].square()/(2*sig[:,:,None].clamp_min(.01).square()))
|
| 119 |
+
kernel=kernel/kernel.sum(-1,keepdim=True)
|
| 120 |
+
k=(kernel[:,:,:,None]*kernel[:,:,None,:]).reshape(t*c,1,2*radius+1,2*radius+1)
|
| 121 |
+
z=F.conv2d(F.pad(p.reshape(b,t*c,h,w),(radius,radius,radius,radius),mode='reflect'),k,groups=t*c)
|
| 122 |
+
return z.reshape(b,t,c,h,w)
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
def shift_view(x,flow,dy,dx):
|
| 126 |
+
from torch.nn import functional as F
|
| 127 |
+
b,_,h,w=x.shape
|
| 128 |
+
# Positive offsets insert a zero margin and move the observed sequence right/down.
|
| 129 |
+
x=F.pad(x,(dx,0,dy,0))[:,:,:h,:w]
|
| 130 |
+
fh,fw=flow.shape[-2:]
|
| 131 |
+
yy,xx=torch.meshgrid(torch.linspace(-1,1,fh,device=x.device),torch.linspace(-1,1,fw,device=x.device),indexing='ij')
|
| 132 |
+
grid=torch.stack((xx-dx/(fw-1),yy-dy/(fh-1)),-1)[None].expand(b,-1,-1,-1)
|
| 133 |
+
flow=F.grid_sample(flow,grid,padding_mode='border',align_corners=True)
|
| 134 |
+
return x.contiguous(memory_format=torch.channels_last),flow
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
def unshift_prediction(p,dy,dx):
|
| 138 |
+
from torch.nn import functional as F
|
| 139 |
+
b,t,c,h,w=p.shape
|
| 140 |
+
q=p[...,dy:,dx:].reshape(b,t*c,h-dy,w-dx)
|
| 141 |
+
q=F.pad(q,(0,dx,0,dy),mode='replicate')
|
| 142 |
+
return q.reshape(b,t,c,h,w)
|
sevir-full/multiscale_attention.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Optional attention refinements for large-scale storm interactions."""
|
| 2 |
+
import torch
|
| 3 |
+
from torch import nn
|
| 4 |
+
from torch.nn import functional as F
|
| 5 |
+
|
| 6 |
+
class SpatialTransformer(nn.Module):
|
| 7 |
+
def __init__(self,channels,heads=8,expansion=2,positional=False):
|
| 8 |
+
super().__init__()
|
| 9 |
+
self.norm1=nn.GroupNorm(16,channels)
|
| 10 |
+
self.qkv=nn.Conv2d(channels,channels*3,1)
|
| 11 |
+
self.proj=nn.Conv2d(channels,channels,1)
|
| 12 |
+
self.norm2=nn.GroupNorm(16,channels)
|
| 13 |
+
self.ff=nn.Sequential(nn.Conv2d(channels,channels*expansion,1),nn.GELU(),nn.Conv2d(channels*expansion,channels*expansion,3,padding=1,groups=channels*expansion),nn.GELU(),nn.Conv2d(channels*expansion,channels,1))
|
| 14 |
+
self.heads=heads
|
| 15 |
+
self.pos_gain=nn.Parameter(torch.zeros(channels)) if positional else None
|
| 16 |
+
self.gamma1=nn.Parameter(torch.full((channels,),1e-4))
|
| 17 |
+
self.gamma2=nn.Parameter(torch.full((channels,),1e-4))
|
| 18 |
+
def forward(self,x):
|
| 19 |
+
b,c,h,w=x.shape
|
| 20 |
+
z=self.norm1(x)
|
| 21 |
+
if self.pos_gain is not None:
|
| 22 |
+
yy,xx=torch.meshgrid(torch.linspace(-1,1,h,device=x.device),torch.linspace(-1,1,w,device=x.device),indexing='ij')
|
| 23 |
+
freq=torch.exp(torch.linspace(0,3,c//4,device=x.device))*torch.pi
|
| 24 |
+
pe=torch.cat(((xx[None]*freq[:,None,None]).sin(),(xx[None]*freq[:,None,None]).cos(),(yy[None]*freq[:,None,None]).sin(),(yy[None]*freq[:,None,None]).cos()),0)
|
| 25 |
+
z=z+pe[None].to(z.dtype)*self.pos_gain[None,:,None,None]
|
| 26 |
+
q,k,v=self.qkv(z).reshape(b,3,self.heads,c//self.heads,h*w).unbind(1)
|
| 27 |
+
a=F.scaled_dot_product_attention(q.transpose(-1,-2),k.transpose(-1,-2),v.transpose(-1,-2))
|
| 28 |
+
a=a.transpose(-1,-2).reshape(b,c,h,w)
|
| 29 |
+
x=x+self.proj(a)*self.gamma1[None,:,None,None]
|
| 30 |
+
return x+self.ff(self.norm2(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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Motion-guided probabilistic radar nowcasting networks, trained from scratch."""
|
| 2 |
+
import math
|
| 3 |
+
import torch
|
| 4 |
+
from torch import nn
|
| 5 |
+
from torch.nn import functional as F
|
| 6 |
+
|
| 7 |
+
THRESHOLDS = [16, 74, 133, 160, 181, 219]
|
| 8 |
+
|
| 9 |
+
class ResBlock(nn.Module):
|
| 10 |
+
def __init__(self, cin, cout):
|
| 11 |
+
super().__init__()
|
| 12 |
+
self.conv1 = nn.Conv2d(cin, cout, 3, padding=1, bias=False)
|
| 13 |
+
self.norm1 = nn.GroupNorm(min(16, cout // 8), cout)
|
| 14 |
+
self.conv2 = nn.Conv2d(cout, cout, 3, padding=1, bias=False)
|
| 15 |
+
self.norm2 = nn.GroupNorm(min(16, cout // 8), cout)
|
| 16 |
+
self.skip = nn.Conv2d(cin, cout, 1, bias=False) if cin != cout else nn.Identity()
|
| 17 |
+
self.se = nn.Sequential(nn.AdaptiveAvgPool2d(1), nn.Conv2d(cout, max(16, cout//8), 1), nn.SiLU(), nn.Conv2d(max(16,cout//8), cout, 1), nn.Sigmoid())
|
| 18 |
+
def forward(self, x):
|
| 19 |
+
z = F.silu(self.norm1(self.conv1(x)))
|
| 20 |
+
z = self.norm2(self.conv2(z))
|
| 21 |
+
return F.silu(self.skip(x) + z * self.se(z))
|
| 22 |
+
|
| 23 |
+
class Attention(nn.Module):
|
| 24 |
+
def __init__(self, channels, heads=8):
|
| 25 |
+
super().__init__()
|
| 26 |
+
self.norm = nn.GroupNorm(16, channels)
|
| 27 |
+
self.qkv = nn.Conv2d(channels, channels*3, 1)
|
| 28 |
+
self.proj = nn.Conv2d(channels, channels, 1)
|
| 29 |
+
self.heads = heads
|
| 30 |
+
nn.init.zeros_(self.proj.weight)
|
| 31 |
+
nn.init.zeros_(self.proj.bias)
|
| 32 |
+
def forward(self, x):
|
| 33 |
+
b,c,h,w = x.shape
|
| 34 |
+
q,k,v = self.qkv(self.norm(x)).reshape(b,3,self.heads,c//self.heads,h*w).unbind(1)
|
| 35 |
+
z = F.scaled_dot_product_attention(q.transpose(-1,-2), k.transpose(-1,-2), v.transpose(-1,-2))
|
| 36 |
+
return x + self.proj(z.transpose(-1,-2).reshape(b,c,h,w))
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
def warp(last, flow, steps=12, correction=None):
|
| 40 |
+
"""Backward flow is at half resolution and spans two observed timesteps."""
|
| 41 |
+
b,_,h,w = last.shape
|
| 42 |
+
yy,xx = torch.meshgrid(torch.linspace(-1,1,h,device=last.device), torch.linspace(-1,1,w,device=last.device), indexing='ij')
|
| 43 |
+
grid = torch.stack((xx,yy),-1)[None,None]
|
| 44 |
+
f = F.interpolate(flow.float(), (h,w), mode='bilinear',align_corners=False)
|
| 45 |
+
leads = torch.arange(1, steps+1,device=last.device,dtype=torch.float32)[None,:,None,None,None]
|
| 46 |
+
# half-resolution pixels / two observed timesteps -> full-resolution pixels / timestep
|
| 47 |
+
f = f[:,None]*leads
|
| 48 |
+
if correction is not None:
|
| 49 |
+
corr = F.interpolate(correction.float(), (h,w), mode='bilinear',align_corners=False)
|
| 50 |
+
f = f + corr.reshape(b,steps,2,h,w) * leads.sqrt()
|
| 51 |
+
scale = torch.tensor([2/(w-1),2/(h-1)],device=last.device).view(1,1,1,1,2)
|
| 52 |
+
g = grid + f.permute(0,1,3,4,2)*scale
|
| 53 |
+
# expand is safe: each image is independent, including every time lead.
|
| 54 |
+
y = F.grid_sample(last.float()[:,None].expand(-1,steps,-1,-1,-1).reshape(b*steps,1,h,w),g.reshape(b*steps,h,w,2),mode='bilinear',padding_mode='zeros',align_corners=True)
|
| 55 |
+
return y.reshape(b,steps,h,w)
|
| 56 |
+
|
| 57 |
+
def align_history(x,flow):
|
| 58 |
+
"""Align seven recent observations to the last observed location, using input-only flow."""
|
| 59 |
+
b,_,h,w=x.shape
|
| 60 |
+
yy,xx=torch.meshgrid(torch.linspace(-1,1,h,device=x.device),torch.linspace(-1,1,w,device=x.device),indexing='ij')
|
| 61 |
+
grid=torch.stack((xx,yy),-1)[None,None]
|
| 62 |
+
f=F.interpolate(flow.float(),(h,w),mode='bilinear',align_corners=False)
|
| 63 |
+
times=torch.tensor([12,10,8,6,4,2,1],device=x.device,dtype=torch.float32)
|
| 64 |
+
scale=torch.tensor([2/(w-1),2/(h-1)],device=x.device).view(1,1,1,1,2)
|
| 65 |
+
g=grid+f.permute(0,2,3,1)[:,None]*times[None,:,None,None,None]*scale
|
| 66 |
+
inp=x[:,[0,2,4,6,8,10,11]].float().reshape(b*7,1,h,w)
|
| 67 |
+
return F.grid_sample(inp,g.reshape(b*7,h,w,2),align_corners=True,padding_mode='zeros').reshape(b,7,h,w)
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
class TemporalHead(nn.Module):
|
| 71 |
+
"""Shared spatial refinement with feature exchange between adjacent lead times."""
|
| 72 |
+
def __init__(self, cin, channels=32, depth=3, downsample=1):
|
| 73 |
+
super().__init__()
|
| 74 |
+
self.channels=channels
|
| 75 |
+
self.downsample=downsample
|
| 76 |
+
self.project=nn.Conv2d(cin,12*channels,1)
|
| 77 |
+
self.time=nn.Parameter(torch.zeros(12,channels))
|
| 78 |
+
self.blocks=nn.ModuleList([ResBlock(channels,channels) for _ in range(depth)])
|
| 79 |
+
self.head=nn.Conv2d(channels,7*4,1)
|
| 80 |
+
nn.init.zeros_(self.head.weight)
|
| 81 |
+
nn.init.zeros_(self.head.bias)
|
| 82 |
+
def forward(self,x):
|
| 83 |
+
original_size=x.shape[-2:]
|
| 84 |
+
if self.downsample>1:x=F.avg_pool2d(x,self.downsample)
|
| 85 |
+
b,_,h,w=x.shape
|
| 86 |
+
z=self.project(x).reshape(b,12,self.channels,h,w)+self.time[None,:,:,None,None]
|
| 87 |
+
for block in self.blocks:
|
| 88 |
+
c=self.channels//4
|
| 89 |
+
# Exchange information in time, retaining a large unshifted component.
|
| 90 |
+
left=torch.cat((z[:,1:,:c],z[:,-1:,:c]),1)
|
| 91 |
+
right=torch.cat((z[:,:1,c:2*c],z[:,:-1,c:2*c]),1)
|
| 92 |
+
mixed=torch.cat((left,right,z[:,:,2*c:]),2)
|
| 93 |
+
z=block(mixed.reshape(b*12,self.channels,h,w)).reshape(b,12,self.channels,h,w)
|
| 94 |
+
out=self.head(z.reshape(b*12,self.channels,h,w)).reshape(b,12*7*4,h,w)
|
| 95 |
+
if self.downsample>1:out=F.interpolate(out,size=original_size,mode="bilinear",align_corners=False)
|
| 96 |
+
return out
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
class Nowcaster(nn.Module):
|
| 100 |
+
def __init__(self, width=48, motion=True, blocks=2, attention=True, temporal_channels=0, aligned=False, temporal_downsample=1, global_blocks=0, global_positions=False):
|
| 101 |
+
super().__init__()
|
| 102 |
+
self.config = dict(width=width,motion=motion,blocks=blocks,attention=attention,temporal_channels=temporal_channels,aligned=aligned,temporal_downsample=temporal_downsample,global_blocks=global_blocks,global_positions=global_positions)
|
| 103 |
+
self.motion = motion
|
| 104 |
+
self.aligned = aligned
|
| 105 |
+
ch = [width,width*2,width*4,width*6,width*8]
|
| 106 |
+
cin = 13*4 + (12*4+2 if motion else 0) + (7*4 if aligned else 0)
|
| 107 |
+
self.stem = nn.Sequential(nn.Conv2d(cin,ch[0],3,padding=1,bias=False),nn.GroupNorm(8,ch[0]),nn.SiLU())
|
| 108 |
+
self.enc = nn.ModuleList([nn.Sequential(*[ResBlock(c,c) for _ in range(blocks)]) for c in ch])
|
| 109 |
+
self.down = nn.ModuleList([nn.Conv2d(a,b,3,stride=2,padding=1) for a,b in zip(ch[:-1],ch[1:])])
|
| 110 |
+
self.attn = Attention(ch[-1]) if attention else nn.Identity()
|
| 111 |
+
self.global_blocks=global_blocks
|
| 112 |
+
if global_blocks:
|
| 113 |
+
from multiscale_attention import SpatialTransformer
|
| 114 |
+
self.global_mid=nn.Sequential(*[SpatialTransformer(ch[3],positional=global_positions) for _ in range(global_blocks)])
|
| 115 |
+
self.global_deep=nn.Sequential(*[SpatialTransformer(ch[4],positional=global_positions) for _ in range(global_blocks)])
|
| 116 |
+
self.up = nn.ModuleList([nn.Sequential(ResBlock(ch[i+1]+ch[i],ch[i]),*[ResBlock(ch[i],ch[i]) for _ in range(blocks-1)]) for i in range(3,-1,-1)])
|
| 117 |
+
self.head = nn.Conv2d(ch[0],12*7*4,1)
|
| 118 |
+
self.temporal = TemporalHead(ch[0],temporal_channels,downsample=temporal_downsample) if temporal_channels else None
|
| 119 |
+
self.flowhead = nn.Conv2d(ch[0],24,1) if motion else None
|
| 120 |
+
nn.init.normal_(self.head.weight, std=0.001)
|
| 121 |
+
nn.init.zeros_(self.head.bias)
|
| 122 |
+
if motion:
|
| 123 |
+
nn.init.zeros_(self.flowhead.weight)
|
| 124 |
+
nn.init.zeros_(self.flowhead.bias)
|
| 125 |
+
else:
|
| 126 |
+
with torch.no_grad():
|
| 127 |
+
# Initial rainfall climatology, one bias per threshold, time and subpixel.
|
| 128 |
+
b=self.head.bias.reshape(12,7,4)
|
| 129 |
+
b[:,:6] = torch.tensor([-1.,-2.,-3.2,-4.,-4.6,-6.])[None,:,None]
|
| 130 |
+
self.register_buffer('thresholds',torch.tensor(THRESHOLDS,dtype=torch.float32)/255)
|
| 131 |
+
def forward(self, x, flow=None):
|
| 132 |
+
b,_,h,w=x.shape
|
| 133 |
+
if self.motion:
|
| 134 |
+
base = warp(x[:,-1:],flow)
|
| 135 |
+
z = torch.cat((F.pixel_unshuffle(x,2),F.pixel_unshuffle(base.to(x.dtype),2),flow.to(x.dtype)/8),1)
|
| 136 |
+
else:
|
| 137 |
+
base=None
|
| 138 |
+
z=F.pixel_unshuffle(x,2)
|
| 139 |
+
if self.aligned:
|
| 140 |
+
z=torch.cat((z,F.pixel_unshuffle(align_history(x,flow).to(x.dtype),2)),1)
|
| 141 |
+
z=self.stem(z)
|
| 142 |
+
skips=[]
|
| 143 |
+
for i,enc in enumerate(self.enc):
|
| 144 |
+
z=enc(z)
|
| 145 |
+
if self.global_blocks and i==3:z=self.global_mid(z)
|
| 146 |
+
if self.global_blocks and i==4:z=self.global_deep(z)
|
| 147 |
+
skips.append(z)
|
| 148 |
+
if i<4: z=self.down[i](z)
|
| 149 |
+
z=self.attn(z)
|
| 150 |
+
for up,s in zip(self.up,reversed(skips[:-1])):
|
| 151 |
+
z=up(torch.cat((F.interpolate(z,size=s.shape[-2:],mode='bilinear',align_corners=False),s),1))
|
| 152 |
+
raw=self.head(z)
|
| 153 |
+
if self.temporal is not None:raw=raw+self.temporal(z)
|
| 154 |
+
out=F.pixel_shuffle(raw,2).reshape(b,12,7,h,w)
|
| 155 |
+
if self.motion:
|
| 156 |
+
correction = torch.tanh(self.flowhead(z))*8
|
| 157 |
+
adv = warp(x[:,-1:],flow,correction=correction)
|
| 158 |
+
baseline = ((adv[:,:,None]-self.thresholds.view(1,1,6,1,1))/0.10).clamp(-4,4)
|
| 159 |
+
# Retain crisp recent observed structures, while allowing learned growth/decay.
|
| 160 |
+
decay=torch.linspace(1.0,0.65,12,device=x.device).view(1,12,1,1,1)
|
| 161 |
+
logits=out[:,:,:6]+baseline*decay
|
| 162 |
+
mean=out[:,:,6]*0.25+adv
|
| 163 |
+
else:
|
| 164 |
+
adv=None
|
| 165 |
+
logits=out[:,:,:6]
|
| 166 |
+
mean=out[:,:,6]
|
| 167 |
+
return logits,mean,adv
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
def loss_function(outputs, target, dice_weight=0.6, mode="original", threshold_start=0):
|
| 171 |
+
logits,mean,adv=outputs
|
| 172 |
+
logits=logits.float()
|
| 173 |
+
thresholds=torch.tensor(THRESHOLDS,device=target.device).view(1,1,6,1,1)/255
|
| 174 |
+
truth=(target[:,:,None]>=thresholds).float()
|
| 175 |
+
weights=torch.tensor([1.,1.5,2.,2.5,3.,5.],device=target.device).view(1,1,6,1,1)
|
| 176 |
+
logits=logits[:,:,threshold_start:]
|
| 177 |
+
truth=truth[:,:,threshold_start:]
|
| 178 |
+
weights=weights[:,:,threshold_start:]
|
| 179 |
+
if mode=='balanced':
|
| 180 |
+
# Positive weighting gives rare, long-lead cells a useful likelihood gradient.
|
| 181 |
+
pos_weight=torch.tensor([1.,2.,4.,6.,8.,12.],device=target.device).view(1,1,6,1,1)
|
| 182 |
+
pos_weight=pos_weight[:,:,threshold_start:]
|
| 183 |
+
bce=(F.binary_cross_entropy_with_logits(logits,truth,reduction='none',pos_weight=pos_weight)*weights).mean()
|
| 184 |
+
else:
|
| 185 |
+
bce=(F.binary_cross_entropy_with_logits(logits,truth,reduction='none')*weights).mean()
|
| 186 |
+
p=logits.sigmoid()
|
| 187 |
+
inter=(p*truth).sum((0,1,3,4))
|
| 188 |
+
den=(p+truth).sum((0,1,3,4))
|
| 189 |
+
dice=(1-(2*inter+1)/(den+1)).mean()
|
| 190 |
+
if mode in ('temporal','balanced'):
|
| 191 |
+
ip=(p*truth).sum((0,3,4)).reshape(-1,3,6-threshold_start).sum(1)
|
| 192 |
+
dd=(p+truth).sum((0,3,4)).reshape(-1,3,6-threshold_start).sum(1)
|
| 193 |
+
dice=.5*dice+.5*(1-(2*ip+1)/(dd+1)).mean()
|
| 194 |
+
if mode=='csi':
|
| 195 |
+
# A sharper overlap surrogate concentrates gradient near the forecast decision.
|
| 196 |
+
centers=logits.new_tensor([.40,.35,.30,.28,.26,.23])[threshold_start:]
|
| 197 |
+
margin=logits-torch.logit(centers)[None,None,:,None,None]
|
| 198 |
+
soft=(margin/.5).sigmoid()
|
| 199 |
+
hit=(soft*truth).sum((0,1,3,4))
|
| 200 |
+
union=(truth+soft*(1-truth)).sum((0,1,3,4))
|
| 201 |
+
dice=.5*dice+.5*(1-(hit+1)/(union+1)).mean()
|
| 202 |
+
w=1+2*(target>=74/255)+3*(target>=133/255)+4*(target>=160/255)+5*(target>=181/255)+5*(target>=219/255)
|
| 203 |
+
reg=((mean.float()-target).square()*w).mean()
|
| 204 |
+
# Weak motion supervision preserves useful gradients in the learned flow corrections.
|
| 205 |
+
flowloss = ((adv-target).abs()*(1+2*(target>=74/255))).mean() if adv is not None else target.new_zeros(())
|
| 206 |
+
total=bce+dice_weight*dice+2*reg+0.05*flowloss
|
| 207 |
+
return total,torch.stack((bce.detach(),dice.detach(),reg.detach(),flowloss.detach()))
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
def probabilities_to_vil(probs, cutoffs=None):
|
| 211 |
+
"""Apply fixed held-out calibration and enforce nested exceedance decisions."""
|
| 212 |
+
if cutoffs is None:
|
| 213 |
+
cutoffs=[0.40,0.35,0.30,0.28,0.26,0.23]
|
| 214 |
+
cuts=torch.as_tensor(cutoffs,device=probs.device,dtype=torch.float32)
|
| 215 |
+
if cuts.ndim==1: cuts=cuts[None,None,:,None,None]
|
| 216 |
+
elif cuts.ndim==2: cuts=cuts[None,:,:,None,None]
|
| 217 |
+
yes=probs>=cuts
|
| 218 |
+
# A higher rainfall category necessarily includes all the lower thresholds.
|
| 219 |
+
level=torch.where(yes,torch.arange(1,7,device=probs.device).view(1,1,6,1,1),0).amax(2)
|
| 220 |
+
vals=torch.tensor([0,40,100,146,170,195,235],device=probs.device,dtype=torch.uint8)
|
| 221 |
+
return vals[level]
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
def build_model(config):
|
| 225 |
+
config=dict(config)
|
| 226 |
+
architecture=config.pop('architecture','unet')
|
| 227 |
+
if architecture=='wide':
|
| 228 |
+
from wide_model import WideNowcaster
|
| 229 |
+
return WideNowcaster(**config)
|
| 230 |
+
if architecture=='wide_simvp':
|
| 231 |
+
from wide_simvp_model import WideSimNowcaster
|
| 232 |
+
return WideSimNowcaster(**config)
|
| 233 |
+
if architecture=='simvp':
|
| 234 |
+
from simvp_model import SimNowcaster
|
| 235 |
+
return SimNowcaster(**config)
|
| 236 |
+
if architecture=='advective':
|
| 237 |
+
from advective_model import AdvectiveNowcaster
|
| 238 |
+
return AdvectiveNowcaster(**config)
|
| 239 |
+
return Nowcaster(**config)
|
sevir-full/predict_prob.py
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Independent, frozen-model inference, sharded over the available GPUs."""
|
| 2 |
+
import os,json,time,argparse
|
| 3 |
+
from pathlib import Path
|
| 4 |
+
from concurrent.futures import ThreadPoolExecutor
|
| 5 |
+
import numpy as np
|
| 6 |
+
import torch
|
| 7 |
+
from torch.utils.data import DataLoader
|
| 8 |
+
from nowcast import Nowcaster,build_model,probabilities_to_vil
|
| 9 |
+
from radar_data import ForecastDataset
|
| 10 |
+
from inference_utils import predict_probabilities,smooth_probabilities,CompiledForecast
|
| 11 |
+
|
| 12 |
+
@torch.inference_mode()
|
| 13 |
+
def main():
|
| 14 |
+
ap=argparse.ArgumentParser()
|
| 15 |
+
ap.add_argument('--input',required=True);ap.add_argument('--output',required=True)
|
| 16 |
+
ap.add_argument('--config',default='inference.json');ap.add_argument('--batch',type=int,default=8)
|
| 17 |
+
ap.add_argument('--rank',type=int,default=0);ap.add_argument('--world',type=int,default=1)
|
| 18 |
+
ap.add_argument('--workers',type=int,default=6)
|
| 19 |
+
a=ap.parse_args()
|
| 20 |
+
torch.set_num_threads(3)
|
| 21 |
+
torch.cuda.set_device(a.rank)
|
| 22 |
+
torch.backends.cudnn.benchmark=True
|
| 23 |
+
torch.backends.cuda.matmul.allow_tf32=True
|
| 24 |
+
device=torch.device('cuda',a.rank)
|
| 25 |
+
cfg=json.load(open(a.config))
|
| 26 |
+
assert not cfg.get('training_pool_only'), 'Choose a calibrated ensemble configuration, not a training pool.'
|
| 27 |
+
models=[]
|
| 28 |
+
for item in cfg['models']:
|
| 29 |
+
ck=torch.load(item['path'],map_location='cpu',weights_only=False)
|
| 30 |
+
m=build_model(ck['config']).to(device,memory_format=torch.channels_last).eval()
|
| 31 |
+
m.load_state_dict(ck.get('ema',ck['model']))
|
| 32 |
+
if cfg.get('compile',False):m=CompiledForecast(m,a.batch)
|
| 33 |
+
models.append((m,item.get('weight',1)))
|
| 34 |
+
del ck
|
| 35 |
+
ds=ForecastDataset(a.input,a.rank,a.world,motion=any(m.motion for m,_ in models),flow_mode=cfg.get('flow_mode','standard'))
|
| 36 |
+
loader=DataLoader(ds,batch_size=a.batch,num_workers=a.workers,pin_memory=True,persistent_workers=a.workers>0)
|
| 37 |
+
out=Path(a.output);out.mkdir(exist_ok=True,parents=True)
|
| 38 |
+
began=time.time();done=0
|
| 39 |
+
writer=ThreadPoolExecutor(max_workers=3)
|
| 40 |
+
futures=[]
|
| 41 |
+
for ids,x,f in loader:
|
| 42 |
+
x=x.to(device,non_blocking=True,memory_format=torch.channels_last).float()/255
|
| 43 |
+
f=f.to(device,non_blocking=True)
|
| 44 |
+
probs=predict_probabilities(models,x,f,cfg.get('views'),[item.get('calibration') for item in cfg['models']],[item.get('scale',1) for item in cfg['models']],cfg.get('aggregation','mean'),cfg.get('precision','bfloat16'),cfg.get('calibration_order','view'))
|
| 45 |
+
probs=smooth_probabilities(probs,cfg.get('smoothing'))
|
| 46 |
+
pred=probabilities_to_vil(probs,cfg.get('cutoffs')).cpu().numpy()
|
| 47 |
+
for fut in futures:fut.result()
|
| 48 |
+
futures=[writer.submit(np.save,out/(i+'.npy'),y,allow_pickle=False) for i,y in zip(ids,pred)]
|
| 49 |
+
done+=len(ids)
|
| 50 |
+
if done%256<a.batch:print(f'GPU {a.rank}: {done}/{len(ds)} forecasts, {time.time()-began:.1f}s',flush=True)
|
| 51 |
+
for fut in futures:fut.result()
|
| 52 |
+
writer.shutdown()
|
| 53 |
+
print(f'GPU {a.rank}: finished {done} forecasts in {time.time()-began:.1f}s',flush=True)
|
| 54 |
+
if __name__=='__main__':main()
|
sevir-full/radar_data.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os,json,random,csv
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
import numpy as np
|
| 4 |
+
import cv2
|
| 5 |
+
import torch
|
| 6 |
+
from torch.utils.data import Dataset
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def compute_flow(x,mode='standard'):
|
| 10 |
+
cv2.setNumThreads(1)
|
| 11 |
+
a=cv2.resize(x[-1],(192,192),interpolation=cv2.INTER_AREA)
|
| 12 |
+
dis=cv2.DISOpticalFlow_create(cv2.DISOPTICAL_FLOW_PRESET_MEDIUM)
|
| 13 |
+
if mode=='standard':lags=[2];weights=[1.]
|
| 14 |
+
elif mode=='long':lags=[4];weights=[1.]
|
| 15 |
+
elif mode=='average':lags=[2,4,6];weights=[.5,.3,.2]
|
| 16 |
+
else:raise ValueError(mode)
|
| 17 |
+
f=None
|
| 18 |
+
for lag,weight in zip(lags,weights):
|
| 19 |
+
b=cv2.resize(x[-1-lag],(192,192),interpolation=cv2.INTER_AREA)
|
| 20 |
+
part=dis.calc(a,b,None)*(2*weight/lag)
|
| 21 |
+
f=part if f is None else f+part
|
| 22 |
+
f=cv2.GaussianBlur(f,(0,0),1.5)
|
| 23 |
+
return np.ascontiguousarray(f.transpose(2,0,1))
|
| 24 |
+
|
| 25 |
+
class RadarDataset(Dataset):
|
| 26 |
+
def __init__(self,split='train',data='/app/data/train',length=1000000,seed=0,motion=True,sampling='uniform',augment_scale=False,all_data=False,flow_mode='standard'):
|
| 27 |
+
info=json.load(open(Path(__file__).parent/'split.json'))
|
| 28 |
+
self.events=info[split]+(info['val'] if all_data and split=='train' else [])
|
| 29 |
+
self.data=data
|
| 30 |
+
self.split=split
|
| 31 |
+
self.length=length if split=='train' else len(self.events)*3
|
| 32 |
+
self.seed=seed
|
| 33 |
+
self.motion=motion
|
| 34 |
+
self.flow_mode=flow_mode
|
| 35 |
+
self.augment_scale=augment_scale
|
| 36 |
+
self.event_prob=None
|
| 37 |
+
if sampling=='intense' and split=='train':
|
| 38 |
+
stats=json.load(open(Path(__file__).parent/'event_stats.json'))
|
| 39 |
+
weights=np.array([1+2*min(3,(stats[e][-1]/0.00073)**.5) for e in self.events])
|
| 40 |
+
self.event_prob=weights/weights.sum()
|
| 41 |
+
if sampling=='summer' and split=='train':
|
| 42 |
+
months={row['event']:int(row['start_utc'][5:7]) for row in csv.DictReader(open(Path(data)/'events.csv'))}
|
| 43 |
+
weights=np.array([2.5 if 6<=months[e]<=11 else 1. for e in self.events])
|
| 44 |
+
self.event_prob=weights/weights.sum()
|
| 45 |
+
def __len__(self):return self.length
|
| 46 |
+
def __getitem__(self,i):
|
| 47 |
+
if self.split=='train':
|
| 48 |
+
rng=np.random.default_rng([self.seed,i])
|
| 49 |
+
event=self.events[int(rng.integers(len(self.events))) if self.event_prob is None else int(rng.choice(len(self.events),p=self.event_prob))]
|
| 50 |
+
start=int(rng.integers(25))
|
| 51 |
+
else:
|
| 52 |
+
event=self.events[i//3];start=(i%3)*12
|
| 53 |
+
ev=np.load(f'{self.data}/events/{event}.npy',mmap_mode='r')
|
| 54 |
+
a=np.array(ev[start:start+25])
|
| 55 |
+
if self.split=='train':
|
| 56 |
+
k=int(rng.integers(4));a=np.rot90(a,k,axes=(-2,-1))
|
| 57 |
+
if rng.random()<.5:a=a[:,:,::-1]
|
| 58 |
+
if self.augment_scale and rng.random()<.4:
|
| 59 |
+
size=int(rng.integers(288,384));top=int(rng.integers(385-size));left=int(rng.integers(385-size))
|
| 60 |
+
a=cv2.resize(np.ascontiguousarray(a[:,top:top+size,left:left+size].transpose(1,2,0)),(384,384),interpolation=cv2.INTER_LINEAR).transpose(2,0,1)
|
| 61 |
+
a=np.ascontiguousarray(a)
|
| 62 |
+
flow=compute_flow(a[:13],self.flow_mode) if self.motion else np.zeros((2,192,192),np.float32)
|
| 63 |
+
return torch.from_numpy(a[:13]),torch.from_numpy(a[13:]),torch.from_numpy(flow)
|
| 64 |
+
|
| 65 |
+
class ForecastDataset(Dataset):
|
| 66 |
+
def __init__(self,path,rank=0,world=1,motion=True,flow_mode='standard'):
|
| 67 |
+
self.path=Path(path)
|
| 68 |
+
self.files=sorted(self.path.glob('*.npy'))[rank::world]
|
| 69 |
+
self.motion=motion
|
| 70 |
+
self.flow_mode=flow_mode
|
| 71 |
+
def __len__(self):return len(self.files)
|
| 72 |
+
def __getitem__(self,i):
|
| 73 |
+
p=self.files[i]
|
| 74 |
+
x=np.load(p,allow_pickle=False)
|
| 75 |
+
f=compute_flow(x,self.flow_mode) if self.motion else np.zeros((2,192,192),np.float32)
|
| 76 |
+
return p.stem,torch.from_numpy(np.array(x)),torch.from_numpy(f)
|
sevir-full/run.sh
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
cd "$(dirname "$0")"
|
| 4 |
+
export OMP_NUM_THREADS=3 OPENBLAS_NUM_THREADS=1 MKL_NUM_THREADS=3
|
| 5 |
+
mkdir -p "$2"
|
| 6 |
+
ngpu=$(python3 -c 'import torch; print(torch.cuda.device_count())')
|
| 7 |
+
pids=()
|
| 8 |
+
for ((rank=0; rank<ngpu; rank++)); do
|
| 9 |
+
python3 predict_prob.py --input "$1" --output "$2" --rank "$rank" --world "$ngpu" --batch 8 &
|
| 10 |
+
pids+=("$!")
|
| 11 |
+
done
|
| 12 |
+
failed=0
|
| 13 |
+
for pid in "${pids[@]}"; do wait "$pid" || failed=1; done
|
| 14 |
+
exit "$failed"
|
sevir-full/simvp_model.py
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Shared frame encoder, temporal translator, and shared future-frame decoder."""
|
| 2 |
+
import torch
|
| 3 |
+
from torch import nn
|
| 4 |
+
from torch.nn import functional as F
|
| 5 |
+
from nowcast import ResBlock,Attention,warp,THRESHOLDS
|
| 6 |
+
from advective_model import advect_features
|
| 7 |
+
from multiscale_attention import SpatialTransformer
|
| 8 |
+
|
| 9 |
+
class HistoryAttention(nn.Module):
|
| 10 |
+
def __init__(self,channels,depth=2):
|
| 11 |
+
super().__init__()
|
| 12 |
+
self.positions=nn.Parameter(torch.randn(13,channels)*.02)
|
| 13 |
+
self.blocks=nn.ModuleList([nn.ModuleList([nn.LayerNorm(channels),nn.MultiheadAttention(channels,4,batch_first=True),nn.LayerNorm(channels),nn.Sequential(nn.Linear(channels,channels*4),nn.GELU(),nn.Linear(channels*4,channels))]) for _ in range(depth)])
|
| 14 |
+
def forward(self,features,flow,b):
|
| 15 |
+
_,c,h,w=features.shape;t=13
|
| 16 |
+
yy,xx=torch.meshgrid(torch.linspace(-1,1,h,device=flow.device),torch.linspace(-1,1,w,device=flow.device),indexing='ij')
|
| 17 |
+
grid=torch.stack((xx,yy),-1)[None,None]
|
| 18 |
+
motion=F.interpolate(flow.float(),(h,w),mode='bilinear',align_corners=False)*(w/(2*flow.shape[-1]))
|
| 19 |
+
age=torch.arange(12,-1,-1,device=flow.device,dtype=torch.float32)[None,:,None,None,None]
|
| 20 |
+
scale=flow.new_tensor([2/(w-1),2/(h-1)])[None,None,None,None]
|
| 21 |
+
grid=grid+motion.permute(0,2,3,1)[:,None]*age*scale
|
| 22 |
+
aligned=F.grid_sample(features.float(),grid.reshape(b*t,h,w,2),align_corners=True,padding_mode='zeros')
|
| 23 |
+
z=F.avg_pool2d(aligned,4);hh,ww=z.shape[-2:]
|
| 24 |
+
z=z.reshape(b,t,c,hh,ww).permute(0,3,4,1,2).reshape(b*hh*ww,t,c)+self.positions
|
| 25 |
+
for norm,attention,norm2,mlp in self.blocks:
|
| 26 |
+
q=norm(z);z=z+attention(q,q,q,need_weights=False)[0];z=z+mlp(norm2(z))
|
| 27 |
+
z=z.reshape(b,hh,ww,t,c).permute(0,3,4,1,2).reshape(b,t*c,hh,ww)
|
| 28 |
+
return F.interpolate(z,(h,w),mode='bilinear',align_corners=False)
|
| 29 |
+
|
| 30 |
+
class SimNowcaster(nn.Module):
|
| 31 |
+
def __init__(self,width=32,history_attention=0,**unused):
|
| 32 |
+
super().__init__()
|
| 33 |
+
self.config={'architecture':'simvp','width':width,'history_attention':history_attention}
|
| 34 |
+
self.motion=True
|
| 35 |
+
self.frame_stem=nn.Sequential(nn.Conv2d(4,width,3,padding=1,bias=False),nn.GroupNorm(8,width),nn.SiLU(),ResBlock(width,width))
|
| 36 |
+
self.frame_down=nn.Sequential(nn.Conv2d(width,width*2,3,stride=2,padding=1),ResBlock(width*2,width*2))
|
| 37 |
+
ch=[width*4,width*8,width*12,width*16]
|
| 38 |
+
self.stem=nn.Sequential(nn.Conv2d(13*width*2+12*16+2,ch[0],1,bias=False),nn.GroupNorm(16,ch[0]),nn.SiLU())
|
| 39 |
+
self.history_attention=HistoryAttention(width*2,history_attention) if history_attention else None
|
| 40 |
+
if history_attention:
|
| 41 |
+
self.history_project=nn.Conv2d(13*width*2,ch[0],1)
|
| 42 |
+
nn.init.zeros_(self.history_project.weight);nn.init.zeros_(self.history_project.bias)
|
| 43 |
+
self.enc=nn.ModuleList([nn.Sequential(ResBlock(c,c),ResBlock(c,c)) for c in ch])
|
| 44 |
+
self.down=nn.ModuleList([nn.Conv2d(a,b,3,stride=2,padding=1) for a,b in zip(ch[:-1],ch[1:])])
|
| 45 |
+
self.attn=nn.Sequential(SpatialTransformer(ch[-1],positional=True),SpatialTransformer(ch[-1],positional=True))
|
| 46 |
+
self.up=nn.ModuleList([nn.Sequential(ResBlock(ch[i+1]+ch[i],ch[i]),ResBlock(ch[i],ch[i])) for i in range(2,-1,-1)])
|
| 47 |
+
self.project=nn.Conv2d(ch[0],12*width*2,1)
|
| 48 |
+
self.time=nn.Parameter(torch.zeros(12,width*2))
|
| 49 |
+
self.temporal=nn.ModuleList([ResBlock(width*2,width*2) for _ in range(3)])
|
| 50 |
+
self.expand=nn.Conv2d(width*2,width*4,1)
|
| 51 |
+
self.refine=nn.Sequential(ResBlock(width*2+1,width),ResBlock(width,width))
|
| 52 |
+
self.head=nn.Conv2d(width,7*4,1)
|
| 53 |
+
self.flowhead=nn.Conv2d(width,2,1)
|
| 54 |
+
nn.init.zeros_(self.head.weight);nn.init.zeros_(self.head.bias)
|
| 55 |
+
nn.init.zeros_(self.flowhead.weight);nn.init.zeros_(self.flowhead.bias)
|
| 56 |
+
self.register_buffer('thresholds',torch.tensor(THRESHOLDS,dtype=torch.float32)/255)
|
| 57 |
+
self.width=width
|
| 58 |
+
def forward(self,x,flow):
|
| 59 |
+
b,t,h,w=x.shape
|
| 60 |
+
frames=x.reshape(b*t,1,h,w)
|
| 61 |
+
high=self.frame_stem(F.pixel_unshuffle(frames,2))
|
| 62 |
+
low=self.frame_down(high)
|
| 63 |
+
context=self.history_attention(low,flow,b) if self.history_attention is not None else None
|
| 64 |
+
high=high.reshape(b,t,self.width,h//2,w//2)
|
| 65 |
+
low=low.reshape(b,t*self.width*2,h//4,w//4)
|
| 66 |
+
base=warp(x[:,-1:],flow)
|
| 67 |
+
z=self.stem(torch.cat((low,F.pixel_unshuffle(base.to(low.dtype),4),F.avg_pool2d(flow,2).to(low.dtype)/8),1))
|
| 68 |
+
if context is not None:z=z+self.history_project(context.to(z.dtype))
|
| 69 |
+
skips=[]
|
| 70 |
+
for i,enc in enumerate(self.enc):
|
| 71 |
+
z=enc(z);skips.append(z)
|
| 72 |
+
if i<3:z=self.down[i](z)
|
| 73 |
+
z=self.attn(z)
|
| 74 |
+
for up,s in zip(self.up,reversed(skips[:-1])):
|
| 75 |
+
z=up(torch.cat((F.interpolate(z,size=s.shape[-2:],mode='bilinear',align_corners=False),s),1))
|
| 76 |
+
z=self.project(z).reshape(b,12,self.width*2,h//4,w//4)+self.time[None,:,:,None,None]
|
| 77 |
+
for block in self.temporal:
|
| 78 |
+
c=self.width//2
|
| 79 |
+
left=torch.cat((z[:,1:,:c],z[:,-1:,:c]),1)
|
| 80 |
+
right=torch.cat((z[:,:1,c:2*c],z[:,:-1,c:2*c]),1)
|
| 81 |
+
z=block(torch.cat((left,right,z[:,:,2*c:]),2).reshape(b*12,self.width*2,h//4,w//4)).reshape(b,12,self.width*2,h//4,w//4)
|
| 82 |
+
z=F.pixel_shuffle(self.expand(z.reshape(b*12,self.width*2,h//4,w//4)),2)
|
| 83 |
+
leads=torch.arange(1,13,device=x.device,dtype=torch.float32)
|
| 84 |
+
last=advect_features(high[:,-1],flow,leads)
|
| 85 |
+
coarse=F.avg_pool2d(base.reshape(b*12,1,h,w),2).to(z.dtype)
|
| 86 |
+
z=self.refine(torch.cat((z,last,coarse),1))
|
| 87 |
+
out=F.pixel_shuffle(self.head(z),2).reshape(b,12,7,h,w)
|
| 88 |
+
correction=torch.tanh(self.flowhead(z)).reshape(b,24,h//2,w//2)*8
|
| 89 |
+
adv=warp(x[:,-1:],flow,correction=correction)
|
| 90 |
+
baseline=((adv[:,:,None]-self.thresholds.view(1,1,6,1,1))/.10).clamp(-4,4)
|
| 91 |
+
decay=torch.linspace(1.,.65,12,device=x.device).view(1,12,1,1,1)
|
| 92 |
+
return out[:,:,:6]+baseline*decay,adv+out[:,:,6]*.25,adv
|
sevir-full/weights/all_ac_early_0_wide_ac_20k_eval_ema.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:98f93fc3cfbfe5b7f51a5ac6b8e86c93a843e23066cfb49a1529af584141ba4f
|
| 3 |
+
size 971030771
|
sevir-full/weights/final_all_0_direct_x_best_eval_ema.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1339111e32381aa8909780e7811a2f7f2c56029f4a5964768bf8b640266fe9ae
|
| 3 |
+
size 190477205
|
sevir-full/weights/final_all_1_short_z_best_eval_ema.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3697fd46b98c92762e172bf8e522d106adaad7ed60c801fbafbba59b2921bf46
|
| 3 |
+
size 100171891
|
sevir-full/weights/final_all_3_wide_ae_best_eval_ema.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8af25b6710163d27b8730435b99832adb19e560795b534fd62bf5f1c4a7d93b9
|
| 3 |
+
size 605180963
|
sevir-full/weights/final_all_4_storm_ag_best_eval_ema.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:55b3423cc1a15837abe166dd5b758678bc5a8963015a7e906c79db7e0ee76c32
|
| 3 |
+
size 428468978
|
sevir-full/weights/final_all_5_heavy_ah_best_eval_ema.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e646fa48c430c49fe9720dc383a7a8a4fdd64be94bdf78e432fa9542caa5cc7d
|
| 3 |
+
size 151562836
|
sevir-full/weights/final_all_6_advective_t_best_eval_ema.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8318e7fa4e952b22fd838696bd06468e14068ed31631c1c49097bac8b76e7a04
|
| 3 |
+
size 100172719
|
sevir-full/weights/final_all_7_storm_r_best_eval_ema.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ec7b6e20640f96de6c9da5adf72a43a1a60c6f2d4b15d996ecab02da8de8d54a
|
| 3 |
+
size 428468595
|
sevir-full/weights/final_all_8_simvp_u_best_eval_ema.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1312bc02596dcebbb56a41b218d91df4ab04f422c6619cfd0db93c37e76d5315
|
| 3 |
+
size 151562531
|
sevir-full/weights/long_y_best_eval.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5d88548b72d0954896d615c26a0814b23098e586c9144d0e8a712c26e0dc3ba
|
| 3 |
+
size 243619411
|
sevir-full/weights/wide_ab_best_eval.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e5f01f72520f8420fc13a1bb30c541ba9bbd5643f1d5a65a5db9ea97b8e50b34
|
| 3 |
+
size 601866893
|
sevir-full/wide_model.py
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Function-preserving channel expansion of a trained nowcasting network."""
|
| 2 |
+
import torch
|
| 3 |
+
from torch import nn
|
| 4 |
+
from torch.nn import functional as F
|
| 5 |
+
from nowcast import Nowcaster,Attention,ResBlock
|
| 6 |
+
from multiscale_attention import SpatialTransformer
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
class StochasticResBlock(ResBlock):
|
| 10 |
+
def forward(self,x):
|
| 11 |
+
z=F.silu(self.norm1(self.conv1(x)))
|
| 12 |
+
z=F.dropout2d(z,p=self.dropout_probability,training=self.training)
|
| 13 |
+
z=self.norm2(self.conv2(z))
|
| 14 |
+
return F.silu(self.skip(x)+z*self.se(z))
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
class WideSpatialTransformer(SpatialTransformer):
|
| 18 |
+
def forward(self,x):
|
| 19 |
+
b,c,h,w=x.shape;z=self.norm1(x)
|
| 20 |
+
if self.pos_gain is not None:
|
| 21 |
+
yy,xx=torch.meshgrid(torch.linspace(-1,1,h,device=x.device),torch.linspace(-1,1,w,device=x.device),indexing='ij')
|
| 22 |
+
freq=torch.exp(torch.linspace(0,3,c//self.position_factor//4,device=x.device))*torch.pi
|
| 23 |
+
pe=torch.cat(((xx[None]*freq[:,None,None]).sin(),(xx[None]*freq[:,None,None]).cos(),(yy[None]*freq[:,None,None]).sin(),(yy[None]*freq[:,None,None]).cos()),0).repeat(self.position_factor,1,1)
|
| 24 |
+
z=z+pe[None].to(z.dtype)*self.pos_gain[None,:,None,None]
|
| 25 |
+
q,k,v=self.qkv(z).reshape(b,3,self.heads,c//self.heads,h*w).unbind(1)
|
| 26 |
+
a=F.scaled_dot_product_attention(q.transpose(-1,-2),k.transpose(-1,-2),v.transpose(-1,-2))
|
| 27 |
+
a=a.transpose(-1,-2).reshape(b,c,h,w)
|
| 28 |
+
x=x+self.proj(a)*self.gamma1[None,:,None,None]
|
| 29 |
+
return x+self.ff(self.norm2(x))*self.gamma2[None,:,None,None]
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
def expand_modules(module,factor,prefix=''):
|
| 33 |
+
for name,child in list(module.named_children()):
|
| 34 |
+
path=prefix+'.'+name if prefix else name
|
| 35 |
+
if isinstance(child,nn.Conv2d):
|
| 36 |
+
cin=child.in_channels if path=='stem.0' else child.in_channels*factor
|
| 37 |
+
cout=child.out_channels if path in ('head','flowhead') else child.out_channels*factor
|
| 38 |
+
depthwise=child.groups==child.in_channels==child.out_channels
|
| 39 |
+
groups=child.groups*factor if depthwise else child.groups
|
| 40 |
+
if child.groups!=1 and not depthwise:raise ValueError(path)
|
| 41 |
+
replacement=nn.Conv2d(cin,cout,child.kernel_size,child.stride,child.padding,child.dilation,groups,child.bias is not None,child.padding_mode)
|
| 42 |
+
setattr(module,name,replacement)
|
| 43 |
+
elif isinstance(child,nn.GroupNorm):
|
| 44 |
+
setattr(module,name,nn.GroupNorm(child.num_groups*factor,child.num_channels*factor,child.eps,child.affine))
|
| 45 |
+
else:
|
| 46 |
+
expand_modules(child,factor,path)
|
| 47 |
+
if isinstance(child,SpatialTransformer):
|
| 48 |
+
child.__class__=WideSpatialTransformer
|
| 49 |
+
child.position_factor=factor;child.heads*=factor
|
| 50 |
+
for field in ('gamma1','gamma2','pos_gain'):
|
| 51 |
+
value=getattr(child,field)
|
| 52 |
+
if value is not None:setattr(child,field,nn.Parameter(value.detach().repeat(factor)))
|
| 53 |
+
elif isinstance(child,Attention):child.heads*=factor
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
class WideNowcaster(Nowcaster):
|
| 57 |
+
def __init__(self,width=64,factor=2,dropout=0.,**kwargs):
|
| 58 |
+
assert kwargs.get('temporal_channels',0)==0
|
| 59 |
+
super().__init__(width=width,**kwargs)
|
| 60 |
+
self.factor=factor;expand_modules(self,factor)
|
| 61 |
+
self.config.update(architecture='wide',factor=factor)
|
| 62 |
+
if dropout:
|
| 63 |
+
assert 0<dropout<1
|
| 64 |
+
for stack in [*self.enc[2:],*self.up[:2]]:
|
| 65 |
+
for block in stack.modules():
|
| 66 |
+
if isinstance(block,ResBlock):
|
| 67 |
+
block.__class__=StochasticResBlock
|
| 68 |
+
block.dropout_probability=dropout
|
| 69 |
+
self.config['dropout']=dropout
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
def expanded_state_dict(old,model,noise=0.,noise_mode='gaussian'):
|
| 73 |
+
"""Replicate channels, divide incoming dense weights, and preserve packed Q/K/V order."""
|
| 74 |
+
factor=model.factor;result={};ch=[model.config['width']*x for x in [1,2,4,6,8]]
|
| 75 |
+
for key,target in model.state_dict().items():
|
| 76 |
+
value=old[key]
|
| 77 |
+
if value.shape==target.shape:
|
| 78 |
+
result[key]=value.clone();continue
|
| 79 |
+
if value.ndim==1:
|
| 80 |
+
if '.qkv.' in key:
|
| 81 |
+
n=len(value)//3;index=torch.cat([torch.arange(n).repeat(factor)+part*n for part in range(3)])
|
| 82 |
+
value=value[index]
|
| 83 |
+
else:value=value.repeat(target.shape[0]//value.shape[0])
|
| 84 |
+
elif value.ndim==4:
|
| 85 |
+
old_out,old_in=value.shape[:2]
|
| 86 |
+
if '.qkv.' in key:
|
| 87 |
+
n=old_out//3;out_index=torch.cat([torch.arange(n).repeat(factor)+part*n for part in range(3)])
|
| 88 |
+
else:out_index=torch.arange(old_out).repeat(target.shape[0]//old_out)
|
| 89 |
+
expansion=target.shape[1]//old_in
|
| 90 |
+
if key.startswith('up.') and ('.0.conv1.weight' in key or '.0.skip.weight' in key):
|
| 91 |
+
level=3-int(key.split('.')[1]);high=ch[level+1];low=ch[level]
|
| 92 |
+
in_index=torch.cat((torch.arange(high).repeat(expansion),torch.arange(low).repeat(expansion)+high))
|
| 93 |
+
else:in_index=torch.arange(old_in).repeat(expansion)
|
| 94 |
+
value=value[out_index][:,in_index]/expansion
|
| 95 |
+
else:raise ValueError((key,value.shape,target.shape))
|
| 96 |
+
assert value.shape==target.shape,(key,value.shape,target.shape)
|
| 97 |
+
if noise and value.ndim>=2:
|
| 98 |
+
perturbation=torch.randn_like(value)*(value.std()*noise)
|
| 99 |
+
if noise_mode=='balanced':
|
| 100 |
+
# Duplicate input features have identical activations. Redistributing
|
| 101 |
+
# their incoming weights with zero sum preserves the initial function
|
| 102 |
+
# while giving the duplicate channels different backward gradients.
|
| 103 |
+
if expansion>1:
|
| 104 |
+
average=torch.zeros(value.shape[0],old_in,*value.shape[2:],dtype=value.dtype,device=value.device)
|
| 105 |
+
average.index_add_(1,in_index,perturbation)
|
| 106 |
+
perturbation=perturbation-average[:,in_index]/expansion
|
| 107 |
+
value=value+perturbation
|
| 108 |
+
elif noise_mode=='gaussian':value=value+perturbation
|
| 109 |
+
else:raise ValueError(noise_mode)
|
| 110 |
+
result[key]=value
|
| 111 |
+
return result
|
sevir-full/wide_simvp_model.py
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Expand shared-frame and shared-decoder channels while preserving their layouts."""
|
| 2 |
+
import torch
|
| 3 |
+
from torch import nn
|
| 4 |
+
from simvp_model import SimNowcaster, HistoryAttention
|
| 5 |
+
from multiscale_attention import SpatialTransformer
|
| 6 |
+
from wide_model import WideSpatialTransformer
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
class WideSimNowcaster(SimNowcaster):
|
| 10 |
+
def __init__(self, width=32, factor=2, history_attention=0, **unused):
|
| 11 |
+
super().__init__(width=width, history_attention=0)
|
| 12 |
+
self.factor = factor
|
| 13 |
+
self.base_width = width
|
| 14 |
+
self.expansion_maps = {}
|
| 15 |
+
|
| 16 |
+
def repeat(size, groups=1):
|
| 17 |
+
assert size % groups == 0
|
| 18 |
+
n = size // groups
|
| 19 |
+
return torch.cat([torch.arange(n).repeat(factor) + g * n for g in range(groups)])
|
| 20 |
+
|
| 21 |
+
def conv_maps(path, module):
|
| 22 |
+
inputs, outputs = repeat(module.in_channels), repeat(module.out_channels)
|
| 23 |
+
if path == 'frame_stem.0':
|
| 24 |
+
inputs = torch.arange(4)
|
| 25 |
+
elif path == 'stem.0':
|
| 26 |
+
observed = 13 * width * 2
|
| 27 |
+
inputs = torch.cat((repeat(observed, 13), torch.arange(module.in_channels - observed) + observed))
|
| 28 |
+
elif path in ('head', 'flowhead'):
|
| 29 |
+
outputs = torch.arange(module.out_channels)
|
| 30 |
+
elif path == 'project':
|
| 31 |
+
outputs = repeat(module.out_channels, 12 * 4)
|
| 32 |
+
elif path == 'expand':
|
| 33 |
+
inputs = repeat(module.in_channels, 4)
|
| 34 |
+
elif path.startswith('temporal.'):
|
| 35 |
+
if module.in_channels == width * 2:
|
| 36 |
+
inputs = repeat(module.in_channels, 4)
|
| 37 |
+
if module.out_channels == width * 2:
|
| 38 |
+
outputs = repeat(module.out_channels, 4)
|
| 39 |
+
elif path in ('refine.0.conv1', 'refine.0.skip'):
|
| 40 |
+
inputs = torch.cat((repeat(width), repeat(width) + width, torch.tensor([width * 2])))
|
| 41 |
+
elif path.startswith('up.') and (path.endswith('.0.conv1') or path.endswith('.0.skip')):
|
| 42 |
+
channels = [width * m for m in [4, 8, 12, 16]]
|
| 43 |
+
level = 2 - int(path.split('.')[1])
|
| 44 |
+
high, low = channels[level + 1], channels[level]
|
| 45 |
+
inputs = torch.cat((repeat(high), repeat(low) + high))
|
| 46 |
+
if path.endswith('.qkv'):
|
| 47 |
+
outputs = repeat(module.out_channels, 3)
|
| 48 |
+
return inputs, outputs
|
| 49 |
+
|
| 50 |
+
def expand(module, prefix=''):
|
| 51 |
+
for name, child in list(module.named_children()):
|
| 52 |
+
path = prefix + '.' + name if prefix else name
|
| 53 |
+
if isinstance(child, nn.Conv2d):
|
| 54 |
+
inputs, outputs = conv_maps(path, child)
|
| 55 |
+
depthwise = child.groups == child.in_channels == child.out_channels
|
| 56 |
+
assert child.groups == 1 or depthwise
|
| 57 |
+
groups = len(inputs) if depthwise else 1
|
| 58 |
+
replacement = nn.Conv2d(len(inputs), len(outputs), child.kernel_size, child.stride,
|
| 59 |
+
child.padding, child.dilation, groups, child.bias is not None,
|
| 60 |
+
child.padding_mode)
|
| 61 |
+
setattr(module, name, replacement)
|
| 62 |
+
self.expansion_maps[path + '.weight'] = (outputs, torch.arange(1) if depthwise else inputs)
|
| 63 |
+
if child.bias is not None:
|
| 64 |
+
self.expansion_maps[path + '.bias'] = outputs
|
| 65 |
+
elif isinstance(child, nn.GroupNorm):
|
| 66 |
+
index = repeat(child.num_channels, 4 if path.startswith('temporal.') else 1)
|
| 67 |
+
replacement = nn.GroupNorm(child.num_groups * factor, len(index), child.eps, child.affine)
|
| 68 |
+
setattr(module, name, replacement)
|
| 69 |
+
if child.affine:
|
| 70 |
+
self.expansion_maps[path + '.weight'] = index
|
| 71 |
+
self.expansion_maps[path + '.bias'] = index
|
| 72 |
+
else:
|
| 73 |
+
expand(child, path)
|
| 74 |
+
if isinstance(child, SpatialTransformer):
|
| 75 |
+
child.__class__ = WideSpatialTransformer
|
| 76 |
+
child.position_factor = factor
|
| 77 |
+
child.heads *= factor
|
| 78 |
+
for field in ('gamma1', 'gamma2', 'pos_gain'):
|
| 79 |
+
value = getattr(child, field)
|
| 80 |
+
if value is not None:
|
| 81 |
+
index = repeat(len(value))
|
| 82 |
+
setattr(child, field, nn.Parameter(value.detach()[index]))
|
| 83 |
+
self.expansion_maps[path + '.' + field] = index
|
| 84 |
+
|
| 85 |
+
expand(self)
|
| 86 |
+
time_index = repeat(width * 2, 4)
|
| 87 |
+
self.time = nn.Parameter(self.time.detach()[:, time_index])
|
| 88 |
+
self.expansion_maps['time'] = (torch.arange(12), time_index)
|
| 89 |
+
self.width = width * factor
|
| 90 |
+
if history_attention:
|
| 91 |
+
self.history_attention = HistoryAttention(self.width * 2, history_attention)
|
| 92 |
+
self.history_project = nn.Conv2d(13 * self.width * 2, self.width * 4, 1)
|
| 93 |
+
nn.init.zeros_(self.history_project.weight)
|
| 94 |
+
nn.init.zeros_(self.history_project.bias)
|
| 95 |
+
self.config = {'architecture': 'wide_simvp', 'width': width, 'factor': factor,
|
| 96 |
+
'history_attention': history_attention}
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
def expanded_sim_state_dict(old, model, noise=.5):
|
| 100 |
+
result = {}
|
| 101 |
+
for key, target in model.state_dict().items():
|
| 102 |
+
if key not in old and key.startswith('history_'):
|
| 103 |
+
result[key] = target.detach().cpu().clone()
|
| 104 |
+
continue
|
| 105 |
+
value = old[key]
|
| 106 |
+
mapping = model.expansion_maps.get(key)
|
| 107 |
+
if mapping is None:
|
| 108 |
+
assert value.shape == target.shape, (key, value.shape, target.shape)
|
| 109 |
+
result[key] = value.clone()
|
| 110 |
+
continue
|
| 111 |
+
if isinstance(mapping, tuple):
|
| 112 |
+
outputs, inputs = mapping
|
| 113 |
+
if value.ndim == 2:
|
| 114 |
+
value = value[outputs][:, inputs]
|
| 115 |
+
else:
|
| 116 |
+
old_inputs = value.shape[1]
|
| 117 |
+
counts = torch.bincount(inputs, minlength=old_inputs).to(value.dtype)
|
| 118 |
+
value = value[outputs][:, inputs] / counts[inputs][None, :, None, None]
|
| 119 |
+
if noise and len(inputs) > old_inputs:
|
| 120 |
+
perturbation = torch.randn_like(value) * (value.std() * noise)
|
| 121 |
+
average = torch.zeros(value.shape[0], old_inputs, *value.shape[2:], dtype=value.dtype)
|
| 122 |
+
average.index_add_(1, inputs, perturbation)
|
| 123 |
+
perturbation -= average[:, inputs] / counts[inputs][None, :, None, None]
|
| 124 |
+
value += perturbation
|
| 125 |
+
else:
|
| 126 |
+
value = value[mapping]
|
| 127 |
+
assert value.shape == target.shape, (key, value.shape, target.shape)
|
| 128 |
+
result[key] = value
|
| 129 |
+
return result
|