NowcastNet-Rewritten
1. Introduction
This project is a personal reimplementation of the NowcastNet inference framework. The original research, titled "Skilful nowcasting of extreme precipitation with NowcastNet," by Yuchen Zhang, Mingsheng Long et al., was published in Nature and can be accessed at https://www.nature.com/articles/s41586-023-06184-4. Additionally, the original code by Yuchen Zhang is available at https://doi.org/10.24433/CO.0832447.v1.
Q: Why reimplement? A: Just for learning :)
2. Getting Started
-
Cloning the repository:
git clone https://github.com/VioletsOleander/nowcastnet-rewritten.git
-
Install the dependencies (pick one of the following methods):
-
Sync dependencies using uv:
uv sync -
Make sure
python>=3.10,<3.11, and either install from PyPI:pip install -U nowcastnet-rewritten
or install from local:
pip install .
-
Notes:
- uv is recommended for managing dependencies for full reproducibility.
- To ensure compatibility with this reimplementation's architecture, weights have been modified and are available for download from Hugging Face.
3. Usage
To perform inference, run inference.py with the required arguments.
To view all available arguments, use:
python inference.py -h
It is recommended to use the --config_path option to specify the configuration file, for example:
python inference.py --config_path ../configs/inference.toml
An example configuration file is provided in the configs/ directory.
You can also specify options directly from the command line, for example:
python inference.py \
--case_type normal \
--device cuda:0 \
path_to_weights \
path_to_data \
path_to_result
Note: If
--config_pathis specified, other command line options will be ignored.
4. Example Inference Result
1024 x 1024:
512 x 512:
Metadata
Release files for nowcastnet-rewritten 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nowcastnet_rewritten-0.1.1.tar.gz | 17.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nowcastnet_rewritten-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.9 kB
Release files / nowcastnet_rewritten-0.1.1.tar.gz
| Download URL | nowcastnet_rewritten-0.1.1.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6dd313d7d556d9f6870ac06bb2675cc3e001c4fe54ff465212901e77c2dde4a
|
|
BLAKE2b-256 checksum How to use checksums |
4110ddd8ba7b6ff3244c4c0f5ab5e075bdd8ab813f021aee227fa421df4902e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|
Release files / nowcastnet_rewritten-0.1.1-py3-none-any.whl
| Download URL | nowcastnet_rewritten-0.1.1-py3-none-any.whl |
|---|---|
| Size | 21.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5edabacaac9106a5238781f9b2c5ea0fff6fe15c4a9baee8f7e7724aadb0d5c2
|
|
BLAKE2b-256 checksum How to use checksums |
ae35814426f92d590e40c031b381994536837f33099d865873cfbb4cdf7b1ac4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|