Video-to-Video
weather
precipitation
nowcasting

Update pipeline tag and improve model card metadata

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +17 -65
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  license: cc-by-nc-sa-4.0
3
- pipeline_tag: video-to-video
4
  tags:
5
  - weather
6
  - precipitation
@@ -9,39 +9,34 @@ tags:
9
 
10
  # Probabilistic Precipitation Nowcasting with Rectified Flow Transformers
11
 
 
 
 
 
12
  [![Project Page](https://img.shields.io/badge/Project-Page-blue)](https://compvis.github.io/weather-rf/)
13
  [![arXiv](https://img.shields.io/badge/arXiv-PDF-b31b1b)](https://arxiv.org/abs/2605.31204)
14
- [![Paper PDF](https://img.shields.io/badge/Paper-PDF-orange)](https://openaccess.thecvf.com//content/CVPR2026/papers/Schusterbauer_Probabilistic_Precipitation_Nowcasting_with_Rectified_Flow_Transformers_CVPR_2026_paper.pdf)
15
  [![GitHub](https://img.shields.io/badge/GitHub-Code-black)](https://github.com/CompVis/weather-rf)
16
 
17
-
18
- We propose FREUD, a FRame-wise Encoder, United Decoder rectified flow-based first stage for precipitation nowcasting.
19
- Weather forecasting requires probabilistic prediction. Our generative decoder allows **uncertainty-aware compression**.
20
- Our FREUD design enables variable-length inputs, robustness to frame drops, and preserves temporal consistency.
21
- We enable **simple training** - no loss weight tuning, only a simple, stable rectified flow objective.
22
- A rectified-flow model in FREUD latent space achieves **state-of-the-art distributional and perceptual forecasting** quality.
23
 
24
  <p align="center">
25
- <img src="./docs/teaser_figure_weather.svg" alt="Reconstruction distributions for different precipitation levels" width=700px>
26
  </p>
27
 
28
  *Our generative decoder can quantify uncertainty about compression and covers the true precipitation in heavy-rain scenarios, while deterministic decoding collapses to incorrect modes.*
29
 
30
  <p align="center">
31
- <img src="./docs/qual-forecast.svg" alt="Forecasts with zoom-ins" width=700px>
32
  </p>
33
 
34
  *Forecasts remain realistic over time and ensemble members capture different plausible outcomes.*
35
 
36
  ## Paper and Abstract
37
 
38
- The FREUD model was presented in the paper [Probabilistic Precipitation Nowcasting with Rectified Flow Transformers](https://openaccess.thecvf.com//content/CVPR2026/papers/Schusterbauer_Probabilistic_Precipitation_Nowcasting_with_Rectified_Flow_Transformers_CVPR_2026_paper.pdf), accepted at CVPR 2026.
39
-
40
- ### Abstract:
41
 
42
- <p><em>
43
- Accurate weather forecasts are essential across various domains and are safety-critical in extreme weather conditions. Compared to simulation-based forecasting, data-driven approaches show greater efficiency, enabling short-term, high-resolution nowcasting. In particular, diffusion models proved effective in weather nowcasting due to their strong probabilistic foundation. However, existing methods rely on deterministic compression to reduce the complexity of high-dimensional weather data, limiting their ability to capture uncertainty in the decoding process. In this work, we introduce, a <strong>Fr</strong>ame-wise <strong>E</strong>ncoder and <strong>U</strong>nited <strong>D</strong>ecoder model based on rectified flow transformers for efficient compression of spatio-temporal weather data. Frame-wise encoding enables continuous forecast updates, while the unified video decoder ensures temporal consistency. Our uncertainty-preserving first stage allows us to capture aleatoric uncertainty through ensembling, which is particularly beneficial for extreme weather events with high decoding variability. We achieve state-of-the-art performance in precipitation nowcasting with a compact latent-space rectified flow transformer on the SEVIR benchmark and show further performance gains by model and test-time scaling.
44
- </em></p>
45
 
46
  ## Usage
47
 
@@ -50,51 +45,26 @@ Please refer to [our GitHub repository](https://github.com/CompVis/weather-rf) f
50
  ### Setup
51
 
52
  1. Clone the repository:
53
-
54
  ```bash
55
  git clone https://github.com/CompVis/weather-rf
56
  cd weather-rf
57
  ```
58
 
59
  2. Download model weights:
60
-
61
- Download the model weights from 🤗 huggingface:
62
-
63
  ```bash
64
  hf download CompVis/weather-rf --include "*.pt" --local-dir ckpts
65
  ```
66
 
67
  3. Create a Python environment and install dependencies:
68
-
69
- Conda (recommended):
70
-
71
- ```bash
72
- conda create -n weather-rf python=3.12 -y
73
- conda activate weather-rf
74
- python -m pip install --upgrade pip
75
- pip install -r requirements.txt
76
- ```
77
-
78
- Virtual environment:
79
-
80
  ```bash
81
- python3.12 -m venv .venv
82
- source .venv/bin/activate
83
- python -m pip install --upgrade pip
84
  pip install -r requirements.txt
85
  ```
86
 
87
  ### Inference
88
 
89
- The notebook [notebooks/inference.ipynb](notebooks/inference.ipynb) contains code for obtaining both
90
-
91
- - FREUD reconstructions and
92
- - RaMViD latent-space forecasting (LSM)
93
-
94
- Open it and update local paths (dataset + checkpoints) in the config cells.
95
 
96
  For script-based evaluation, run:
97
-
98
  ```bash
99
  python eval/eval_forecasting.py \
100
  --model_path checkpoints/lsm.ckpt \
@@ -102,37 +72,19 @@ python eval/eval_forecasting.py \
102
  --txt_path data/test_data.txt
103
  ```
104
 
105
- or to evaluate reconstruction quality run:
106
-
107
- ```bash
108
- python eval/eval_freud_recon.py \
109
- --model_path checkpoints/freud.ckpt \
110
- --sevir_npy_path <SEVIR_NPY_ROOT_PLACEHOLDER> \
111
- --txt_path data/test_data.txt
112
- ```
113
-
114
  ### ⚠️ Original vs. Clean Implementation
115
 
116
- Results in the paper were obtained using models trained with `torch==2.5.1`.
117
- Due to changes in the behavior of `flex_attention`, we found checkpoints obtained with this version are **incompatible with newer PyTorch versions** and **highly sensitive to implementation details**.
118
-
119
- Therefore, *we provide two implementations of our model*:
120
- - **Clean**: In `model/` we provide a clean, easy-to-use, and easy-to-understand implementation of our models compatible with newer PyTorch versions. However, results may differ to results reported in the paper.
121
- - **Original**: In `original_model/` we provide code to run the models we trained for the paper. These models **have to be run with `torch==2.5.1`** (see `original_requirements`). This implementation can be used to reproduce our results, yet might be fragile.
122
-
123
- We provide an example of how to use the original implementation in `notebooks/original_inference.ipynb`. Some slight modification to the eval scripts is necessary to use them with the original models, yet core logic for evaluation is shared across both model versions.
124
-
125
- We recommend using the `original_model` when exact reproduction/comparison is of essence and `model` when integrating components of our model into different pipelines.
126
 
127
  ## Citation
128
 
129
- If you use our work or parts thereof, please cite us accordingly:
130
-
131
  ```bibtex
132
  @inproceedings{schusterbauer2026probabilisticprecipitation,
133
  title = {Probabilistic Precipitation Nowcasting with Rectified Flow Transformers},
134
- author = {Schusterbauer, Johannes and Wiese, Jannik and Stracke, Nick and Phan, Timy and Ommer, Bj{\"o}rn},
135
  booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
136
  year = {2026}
137
  }
138
- ```
 
1
  ---
2
  license: cc-by-nc-sa-4.0
3
+ pipeline_tag: image-to-video
4
  tags:
5
  - weather
6
  - precipitation
 
9
 
10
  # Probabilistic Precipitation Nowcasting with Rectified Flow Transformers
11
 
12
+ This repository contains the weights for **FREUD**, as introduced in the paper [Probabilistic Precipitation Nowcasting with Rectified Flow Transformers](https://huggingface.co/papers/2605.31204).
13
+
14
+ **Authors**: Johannes Schusterbauer, Jannik Wiese, Nick Stracke, Timy Phan, Björn Ommer.
15
+
16
  [![Project Page](https://img.shields.io/badge/Project-Page-blue)](https://compvis.github.io/weather-rf/)
17
  [![arXiv](https://img.shields.io/badge/arXiv-PDF-b31b1b)](https://arxiv.org/abs/2605.31204)
 
18
  [![GitHub](https://img.shields.io/badge/GitHub-Code-black)](https://github.com/CompVis/weather-rf)
19
 
20
+ We propose FREUD, a **Fr**ame-wise **E**ncoder, **U**nited **D**ecoder rectified flow-based first stage for precipitation nowcasting. Weather forecasting requires probabilistic prediction; our generative decoder allows **uncertainty-aware compression**. Our design enables variable-length inputs, robustness to frame drops, and preserves temporal consistency.
 
 
 
 
 
21
 
22
  <p align="center">
23
+ <img src="https://huggingface.co/CompVis/weather-rf/resolve/main/docs/teaser_figure_weather.svg" alt="Reconstruction distributions for different precipitation levels" width=700px>
24
  </p>
25
 
26
  *Our generative decoder can quantify uncertainty about compression and covers the true precipitation in heavy-rain scenarios, while deterministic decoding collapses to incorrect modes.*
27
 
28
  <p align="center">
29
+ <img src="https://huggingface.co/CompVis/weather-rf/resolve/main/docs/qual-forecast.svg" alt="Forecasts with zoom-ins" width=700px>
30
  </p>
31
 
32
  *Forecasts remain realistic over time and ensemble members capture different plausible outcomes.*
33
 
34
  ## Paper and Abstract
35
 
36
+ The FREUD model was presented in the paper [Probabilistic Precipitation Nowcasting with Rectified Flow Transformers](https://huggingface.co/papers/2605.31204), accepted at CVPR 2026.
 
 
37
 
38
+ ### Abstract Summary:
39
+ In this work, we introduce FREUD, a model based on rectified flow transformers for efficient compression of spatio-temporal weather data. Our uncertainty-preserving first stage allows us to capture aleatoric uncertainty via ensembling, which is particularly beneficial for extreme weather events with high decoding variability. We achieve state-of-the-art performance in precipitation nowcasting with a compact latent-space rectified flow transformer on the SEVIR benchmark.
 
40
 
41
  ## Usage
42
 
 
45
  ### Setup
46
 
47
  1. Clone the repository:
 
48
  ```bash
49
  git clone https://github.com/CompVis/weather-rf
50
  cd weather-rf
51
  ```
52
 
53
  2. Download model weights:
 
 
 
54
  ```bash
55
  hf download CompVis/weather-rf --include "*.pt" --local-dir ckpts
56
  ```
57
 
58
  3. Create a Python environment and install dependencies:
 
 
 
 
 
 
 
 
 
 
 
 
59
  ```bash
 
 
 
60
  pip install -r requirements.txt
61
  ```
62
 
63
  ### Inference
64
 
65
+ The notebook [notebooks/inference.ipynb](https://github.com/CompVis/weather-rf/blob/main/notebooks/inference.ipynb) contains code for obtaining both FREUD reconstructions and RaMViD latent-space forecasting (LSM).
 
 
 
 
 
66
 
67
  For script-based evaluation, run:
 
68
  ```bash
69
  python eval/eval_forecasting.py \
70
  --model_path checkpoints/lsm.ckpt \
 
72
  --txt_path data/test_data.txt
73
  ```
74
 
 
 
 
 
 
 
 
 
 
75
  ### ⚠️ Original vs. Clean Implementation
76
 
77
+ Results in the paper were obtained using models trained with `torch==2.5.1`.
78
+ - **Clean**: In `model/` we provide a clean, easy-to-use implementation compatible with newer PyTorch versions.
79
+ - **Original**: In `original_model/` we provide code to run the models we trained for the paper (requires `torch==2.5.1`).
 
 
 
 
 
 
 
80
 
81
  ## Citation
82
 
 
 
83
  ```bibtex
84
  @inproceedings{schusterbauer2026probabilisticprecipitation,
85
  title = {Probabilistic Precipitation Nowcasting with Rectified Flow Transformers},
86
+ author = {Schusterbauer, Johannes and Wiese, Jannik and Stracke, Nick and Phan, Timy and Ommer, Bj{\"}orn},
87
  booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
88
  year = {2026}
89
  }
90
+ ```