--- license: cc-by-nc-sa-4.0 pipeline_tag: video-to-video tags: - weather - precipitation - nowcasting --- # Probabilistic Precipitation Nowcasting with Rectified Flow Transformers [](https://compvis.github.io/weather-rf/) [](https://arxiv.org/abs/2605.31204) [](https://openaccess.thecvf.com//content/CVPR2026/papers/Schusterbauer_Probabilistic_Precipitation_Nowcasting_with_Rectified_Flow_Transformers_CVPR_2026_paper.pdf) [](https://github.com/CompVis/weather-rf) We propose FREUD, a FRame-wise Encoder, United Decoder rectified flow-based first stage for precipitation nowcasting. Weather forecasting requires probabilistic prediction. Our generative decoder allows **uncertainty-aware compression**. Our FREUD design enables variable-length inputs, robustness to frame drops, and preserves temporal consistency. We enable **simple training** - no loss weight tuning, only a simple, stable rectified flow objective. A rectified-flow model in FREUD latent space achieves **state-of-the-art distributional and perceptual forecasting** quality.
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 Frame-wise Encoder and United Decoder 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.
## Usage Please refer to [our GitHub repository](https://github.com/CompVis/weather-rf) for model implementations and usage details. ### Setup 1. Clone the repository: ```bash git clone https://github.com/CompVis/weather-rf cd weather-rf ``` 2. Download model weights: Download the model weights from 🤗 huggingface: ```bash hf download CompVis/weather-rf --include "*.pt" --local-dir ckpts ``` 3. Create a Python environment and install dependencies: Conda (recommended): ```bash conda create -n weather-rf python=3.12 -y conda activate weather-rf python -m pip install --upgrade pip pip install -r requirements.txt ``` Virtual environment: ```bash python3.12 -m venv .venv source .venv/bin/activate python -m pip install --upgrade pip pip install -r requirements.txt ``` ### Inference The notebook [notebooks/inference.ipynb](notebooks/inference.ipynb) contains code for obtaining both - FREUD reconstructions and - RaMViD latent-space forecasting (LSM) Open it and update local paths (dataset + checkpoints) in the config cells. For script-based evaluation, run: ```bash python eval/eval_forecasting.py \ --model_path checkpoints/lsm.ckpt \ --sevir_npy_path