Skip to main content

Metnet - Pytorch

Project description

Multi-Modality

Metnet3

Install

pip install metnet3

Usage



MetNet-3 Model Architecture README.md

4.2 Model and Architecture Overview

MetNet-3 is a neural network designed to process and predict spatial weather patterns with high precision. This sophisticated model incorporates a fusion of cutting-edge techniques including topographical embeddings, a U-Net backbone, and a modified MaxVit transformer to capture long-range dependencies. With a total of 227 million trainable parameters, MetNet-3 is at the forefront of meteorological modeling.

4.2.1 Topographical Embeddings

Leveraging a grid of trainable embeddings, MetNet-3 can automatically learn and utilize topographical features relevant to weather forecasting. Each grid point, spaced with a stride of 4 km, is associated with 20 parameters. These embeddings are then bilinearly interpolated for each input pixel, enabling the network to effectively encode the underlying geography for each data point.

4.2.2 Network Architecture

MetNet-3's architecture is complex, ingesting both high-resolution (2496 km² at 4 km resolution) and low-resolution (4992 km² at 8 km resolution) spatial inputs. The model processes these inputs through a series of layers and operations, as depicted in the following ASCII flow diagram:

Input Data
   │
   │ High-resolution inputs
   │ concatenated with current time
   │ (624x624x793)
   │
   ▼
 [Embed Topographical Embeddings]
   │
   ├─►[2x ResNet Blocks]───►[Downsampling to 8 km]
   │                            │
   │                            ├─►[Pad to 4992 km²]───►[Concatenate Low-res Inputs]
   │                            │
   ▼                            ▼
 [U-Net Backbone]            [2x ResNet Blocks]
   │                            │
   ├─►[Downsampling to 16 km]   │
   │                            │
   ▼                            │
 [Modified MaxVit Blocks]◄──────┘
   │
   │
 [Central Crop to 768 km²]
   │
   ├─►[Upsampling Path with Skip Connections]
   │
   │
 [Central Crop to 512 km²]
   │
   ├─►[MLP for Weather State Channels at 4 km resolution]
   │
   ├─►[Upsampling to 1 km for Precipitation Targets]
   │
   ▼
[Output Predictions]

Dense and Sparse Inputs

The model uniquely processes both dense and sparse inputs, integrating temporal information such as the time of prediction and the forecast lead time.

Target Outputs

MetNet-3 produces both categorical and deterministic predictions for various weather-related variables, including precipitation and surface conditions, using a combination of loss functions tailored to the nature of each target.

ResNet Blocks and MaxVit

Central to the network's ability to capture complex patterns are the ResNet blocks, which handle local interactions, and the MaxVit blocks, which facilitate global comprehension of the input data through attention mechanisms.

Technical Specifications

  • Input Spatial Resolutions: 4 km and 8 km
  • Output Resolutions: From 1 km to 4 km depending on the variable
  • Embedding Stride: 4 km
  • Topographical Embedding Parameters: 20 per grid point
  • Network Parameters: 227 million
  • Input Channels: Various, including 617+1 channels from HRRR assimilation
  • Output Variables: 6+617 for surface and assimilated state variables, respectively
  • Model Backbone: U-Net with MaxVit transformer
  • Upsampling and Downsampling: Implemented within the network to transition between different resolutions

Low-Level Details and Optimization

Further technical details on architecture intricacies, optimization strategies, and hyperparameter selections are disclosed in Supplement B, providing an in-depth understanding of the model's operational framework.

This README intends to serve as a technical overview for researchers and engineers looking to grasp the functional composition and capabilities of MetNet-3. For implementation and collaboration inquiries, the supplementary materials should be referred to for comprehensive insights.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metnet3-0.0.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

metnet3-0.0.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file metnet3-0.0.1.tar.gz.

File metadata

  • Download URL: metnet3-0.0.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.0 Darwin/22.4.0

File hashes

Hashes for metnet3-0.0.1.tar.gz
Algorithm Hash digest
SHA256 48141b4cedaed4a9cd123071de6b65c8ae76ccacd5d354f0ba8e9cd14d9cbc9b
MD5 4e7b8b14283763852a9c6a92230190c3
BLAKE2b-256 688fb4a61a6ebe185bfb701321ae5a15aa589c6f9c2a4b1f130c2bc60222117d

See more details on using hashes here.

File details

Details for the file metnet3-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: metnet3-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.0 Darwin/22.4.0

File hashes

Hashes for metnet3-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f62fbfca599a9179107587de5f5baad968d8c49c6c644134bfe14671fb4863e
MD5 c2cbc36f5582402afa80d4ef02381404
BLAKE2b-256 cd13739ebbf351d012470db25a809f8f6a00d63251f3f9a309771cedaa54c733

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page