Skip to main content

Tensorflow - Version Python - Version Open in Colab

Deep Learning for empirical DownScaling

DL4DS (Deep Learning for empirical DownScaling) is a Python package that implements state-of-the-art and novel deep learning algorithms for empirical downscaling of gridded Earth science data.

The general architecture of DL4DS is shown on the image below. A low-resolution gridded dataset can be downscaled, with the help of (an arbitrary number of) auxiliary predictor and static variables, and a high-resolution reference dataset. The mapping between the low- and high-resolution data is learned with either a supervised or a conditional generative adversarial DL model.

drawing

The training can be done from explicit pairs of high- and low-resolution samples (MOS-style, e.g., high-res observations and low-res numerical weather prediction model output) or only with a HR dataset (PerfectProg-style, e.g., high-res observations or high-res model output).

A wide variety of network architectures have been implemented in DL4DS. The main modelling approaches can be combined into many different architectures:

Downscaling type Training (loss type) Sample type Backbone section Upsampling method
MOS (explicit pairs of HR and LR data) Supervised (non-adversarial) Spatial Plain convolutional Pre-upsampling via interpolation
PerfectProg (implicit pairs, only HR data) Conditional Adversarial Spatio-temporal Residual Post-upsampling via sub-pixel convolution
Dense Post-upsampling via resize convolution
Unet (PIN, Spatial samples) Post-upsampling via deconvolution
Convnext (Spatial samples)

In DL4DS, we implement a channel attention mechanism to exploit inter-channel relationship of features by providing a weight for each channel in order to enhance those that contribute the most to the optimizaiton and learning process. Aditionally, a Localized Convolutional Block (LCB) is located in the output module of the networks in DL4DS. With the LCB we learn location-specific information via a locally connected layer with biases.

DL4DS is built on top of Tensorflow/Keras and supports distributed GPU training (data parallelism) thanks to Horovod.

API documentation

Check out the API documentation here.

Installation

pip install dl4ds

Example notebooks

A first Colab notebook can be found in the notebooks folder. Click the badge at the top to open the notebook on Google Colab.

Metadata

Release files for dl4ds 1.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dl4ds 1.8.0
File Size Uploaded Provenance Actions
dl4ds-1.8.0.tar.gz 51.1 kB Without provenance Details for dl4ds-1.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dl4ds 1.8.0
File Interpreter ABI Platform Actions
dl4ds-1.8.0-py3-none-any.whl Python 3 none any Details for dl4ds-1.8.0-py3-none-any.whl

Total release size: 113.4 kB

Release files / dl4ds-1.8.0.tar.gz

Download URL dl4ds-1.8.0.tar.gz
Size 51.1 kB
Tags Source
SHA-256 checksum
How to use checksums
37fed6141e7b4eeffe32758f014a80f9f796b28005247845772ac4bf1d384822
BLAKE2b-256 checksum
How to use checksums
2943c79ea9f078aa89348fa7d649bb3a3402a384b0b2e14d6bfda93f9b77e839
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release files / dl4ds-1.8.0-py3-none-any.whl

Download URL dl4ds-1.8.0-py3-none-any.whl
Size 62.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35ee0a3f6a75770b3096ce321c4724fb17c0065854aa23fe618a95e16b1b858c
BLAKE2b-256 checksum
How to use checksums
e7cd594728a1dbccbadeb21b62466fe93d96aa2597d14451fd138140850cdfe0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Security for dl4ds 1.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.8.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page