Views
No views yet
| Variant | Encoder | Attention | Dims | Depths | Pretrained | Params (approx) |
|---|---|---|---|---|---|---|
| Swin | torchvision swin_t | Shifted Window | 96/192/384/768 | 2/2/6/2 | ImageNet-1K (auto) | ~30M |
| DAT | Custom (same skeleton) | Local + Deformable | 96/192/384/768 | 2/2/6/2 | From scratch | ~31M |
| DAT++ | Official LeapLabTHU DAT | Local/Deformable + NATTEN | 64/128/256/512 | 2/4/18/2 | ImageNet-1K (manual) | ~28M |
UNetDecoder with skip connections (GroupNorm + SiLU)CombinedLoss = (1-alpha) * B-MSE + alpha * SSIM1git clone https://huggingface.co/huilinsigehigh/dat-swin-sevir-nowcast
2cd dat-swin-sevir-nowcast
3pip install -r requirements.txt
4# For DAT++ only: pip install natten -f https://shi-labs.com/natten/wheels
5
6# Smoke test (5 epochs, verify fix works)
7python train_compare.py --variants swin --pretrained \
8 --exp_name smoke --epochs 5 --batch_size 4 \
9 --lr 1e-4 --warmup_epochs 2 --weight_decay 1e-5
10
11# Full training (100 epochs)
12python train_compare.py --variants swin dat dat_pp --pretrained \
13 --epochs 100 --batch_size 8 --lr 1e-4 --warmup_epochs 5
14
15# Pass criteria for smoke (5 ep):
16# - train_loss monotonically decreasing (no epoch-2 rebound)
17# - CSI_avg >= 0.20
18# - POD_light < 0.95/root/autodl-tmp/sevir (seetacloud data disk)/root/data/sevir/data/datasets/sevirX:\datasets\sevir (Windows mapped drive)C:\Users\97290\Desktop\datasets\sevir (local dev)sevir/
├── CATALOG.csv
└── data/
└── vil/
└── *.h5| Weight | Source | Size | Download |
|---|---|---|---|
| Swin-T ImageNet-1K | torchvision | ~110MB | Auto-downloaded by torchvision.models.swin_t(weights=IMAGENET1K_V1) |
| DAT-T++ ImageNet-1K | LeapLabTHU/DAT | ~92MB | Included in pretrained/ via LFS. Original: OneDrive / TsinghuaCloud |
| DAT-T (original) | N/A | N/A | Not needed -- DAT variant trains from scratch |
sigmoid output + bf16 autocast + lr=2e-4 no warmup + 50x BMSE weighting caused the model to saturate into an "everywhere rain" dead zone (pred mean=0.82 vs target mean=0.05, Pearson r=-0.50).torch.sigmoid() from all model forward methods (raw logits output)1@article{xia2023dat,
2 title={DAT++: Spatially Dynamic Vision Transformer with Deformable Attention},
3 author={Zhuofan Xia and Xuran Pan and Shiji Song and Li Erran Li and Gao Huang},
4 year={2023},
5 journal={arXiv preprint arXiv:2309.01430},
6}
7
8@InProceedings{Xia_2022_CVPR,
9 author = {Xia, Zhuofan and Pan, Xuran and Song, Shiji and Li, Li Erran and Huang, Gao},
10 title = {Vision Transformer With Deformable Attention},
11 booktitle = {CVPR},
12 year = {2022},
13 pages = {4794-4803}
14}