Merge branch 'main' of https://huggingface.co/Onemiss/PW-FouCast
Browse files
README.md
CHANGED
|
@@ -2,5 +2,55 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
arxiv: 2603.21768
|
| 4 |
tags:
|
| 5 |
-
-
|
| 6 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
arxiv: 2603.21768
|
| 4 |
tags:
|
| 5 |
+
- Pretrained Weights
|
| 6 |
---
|
| 7 |
+
# PW-FouCast: Pangu-Weather-guided Fourier-domain foreCast
|
| 8 |
+
|
| 9 |
+
[//]: # (Add badges here if desired, e.g., for License or Paper)
|
| 10 |
+
[](https://arxiv.org/abs/2603.21768)
|
| 11 |
+
[](https://github.com/Onemissed/PW-FouCast)
|
| 12 |
+
[](https://attend.ieee.org/wcci-2026/)
|
| 13 |
+
|
| 14 |
+
This is the official Hugging Face repository for **PW-FouCast**, a novel frequency-domain fusion framework designed to extend precipitation nowcasting horizons by integrating weather foundation model priors with radar observations.
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
## 🌟 Model Overview
|
| 18 |
+
|
| 19 |
+
**PW-FouCast** addresses the challenge of representational heterogeneities between high-resolution radar imagery and large-scale meteorological data. By leveraging Pangu-Weather forecasts as spectral priors within a Fourier-based backbone, the model effectively bridges the gap between atmospheric dynamics and local convective patterns.
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
### Key Features
|
| 24 |
+
|
| 25 |
+
* **Pangu-Weather-guided Frequency Modulation (PFM):** Aligning spectral magnitudes and phases with physical meteorological priors to ensure physically consistent forecasts.
|
| 26 |
+
* **Frequency Memory (FM):** A learned repository of ground-truth spectral patterns that dynamically corrects phase discrepancies and preserves complex temporal evolutions (e.g., expansion/contraction).
|
| 27 |
+
* **Inverted Frequency Attention (IFA):** A residual-reinjection mechanism designed to recover high-frequency details typically lost during spectral filtering, maintaining sharp structural fidelity in long-term predictions.
|
| 28 |
+
* **Extended Horizon:** Demonstrates superior performance on **SEVIR** and **MeteoNet** benchmarks, significantly mitigating performance decay in long-lead nowcasting.
|
| 29 |
+
|
| 30 |
+
## 🚀 How to Use
|
| 31 |
+
|
| 32 |
+
You can load the model weights for inference or fine-tuning as follows:
|
| 33 |
+
|
| 34 |
+
```python
|
| 35 |
+
import torch
|
| 36 |
+
from pw_foucast import PWFouCast
|
| 37 |
+
from safetensors.torch import load_model
|
| 38 |
+
from huggingface_hub import hf_hub_download
|
| 39 |
+
|
| 40 |
+
MODEL_REGISTRY = {
|
| 41 |
+
'pw_foucast': PW_FouCast,
|
| 42 |
+
}
|
| 43 |
+
ModelClass = MODEL_REGISTRY.get(args.model.lower())
|
| 44 |
+
|
| 45 |
+
model = ModelClass(**model_kwargs).to(args.device)
|
| 46 |
+
model = torch.nn.DataParallel(model)
|
| 47 |
+
|
| 48 |
+
# Load the model from Hugging Face
|
| 49 |
+
weights_path = hf_hub_download(repo_id=f"Onemiss/PW-FouCast", filename=f"{args.model}/{args.dataset}/model.safetensors")
|
| 50 |
+
load_model(model, weights_path)
|
| 51 |
+
|
| 52 |
+
# Eval
|
| 53 |
+
model.eval()
|
| 54 |
+
……
|
| 55 |
+
|
| 56 |
+
```
|