Views
No views yet
openclimatefix/dgmr, MIT License) and integrated with the OneScience data loading and training workflow.| Scenario | Description |
|---|---|
| Short-term precipitation nowcasting research | Train a cGAN on radar echo sequences to generate future radar echo frames. |
| Probabilistic forecast output | Obtain multiple generated samples of future fields through latent-variable sampling. |
| Local quick validation | Use synthetic data to check data loading, training, inference, and result scripts. |
| ModelScope/OneCode execution | Download the model package, install dependencies, and run the scripts directly. |
| Multi-card training | Launch multi-process training with torchrun. |
1hf download OneScience-Group/DGMR --local-dir ./DGMR
2cd DGMR1# Activate DTK and CONDA first
2conda create -n onescience311 python=3.11 -y
3conda activate onescience311
4# uv installation is supported
5pip install onescience[earth-dcu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai1# Activate CONDA first
2conda create -n onescience311 python=3.11 -y libstdcxx-ng=12 libgcc-ng=12 gcc_linux-64=12 gxx_linux-64=12
3conda activate onescience311
4# uv installation is supported
5pip install onescience[earth-gpu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.aiconf/config.yaml is correct:hf download --repo-type dataset OneScience-Group/ERA5 --local-dir ./datapython scripts/fake_data.pyNote:scripts/fake_data.pygenerates a single-channel radar sequence fromnum_context,forecast_steps, batch size, and radar grid size. The current small configuration uses 4 input frames, 6 output frames, and a 128×128 grid.
python scripts/train.pytorchrun --nproc_per_node=8 --nnodes=1 --rdzv_id=1000 --rdzv_backend=c10d --max_restarts=0 --master_addr="localhost" --master_port=29500 scripts/train.py1data/checkpoints/model_bak.pth
2data/checkpoints/trloss.npy
3data/checkpoints/valoss.npyweight/ folder is reserved for model weights. Pretrained weights are not provided by default; users may train the model using the paper configuration. Official DeepMind pretrained weights require access approval and differ from the current configuration in channel count and grid size, so they must be aligned before loading.data/checkpoints/model_bak.pth:python scripts/inference.pyresult/output/python scripts/result.pyresult/rmse.npyresult/acc.npyresult/loss.pngopenclimatefix/dgmr (MIT License). The related network modules (common/layers/generators/discriminators/losses) are embedded unchanged in model/dgmr_official/ (with the HuggingFace hub mixin and pytorch_lightning training loop removed); model/dgmr.py is only a YAML-driven thin wrapper.conf/config.yaml uses a small configuration (forecast_steps=6, output_shape=128, latent_channels=384, context_channels=192) for connectivity validation by default; paper-level reproduction requires 4→18 frames, a 256×256 grid, latent_channels=768, and context_channels=384.num_context=4, forecast_steps=18) requires at least T >= num_context + forecast_steps + 1 = 23 frames per year; the current synthetic data uses T=10 (time_step=6h), so the default configuration uses 4→6 frames.>= 2 (with synthetic data, the training set uses two samples from two years, exactly one batch).| Platform | OneScience Main Repository | Skills Repository |
|---|---|---|
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
openclimatefix/dgmr implementation and follows the MIT License.