-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/improve-dataloader-memory
- Loading branch information
Showing
27 changed files
with
808 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
overwrite: True | ||
|
||
data: "data" | ||
hidden: "hidden" | ||
|
||
nodes: | ||
# Data nodes | ||
data: | ||
node_builder: | ||
_target_: anemoi.graphs.nodes.ZarrDatasetNodes | ||
dataset: ${dataloader.training.dataset} | ||
attributes: ${graph.attributes.nodes} | ||
# Hidden nodes | ||
hidden: | ||
node_builder: | ||
_target_: anemoi.graphs.nodes.LimitedAreaTriNodes # options: ZarrDatasetNodes, NPZFileNodes, TriNodes | ||
resolution: 5 # grid resolution for npz (o32, o48, ...) | ||
reference_node_name: ${graph.data} | ||
mask_attr_name: cutout | ||
|
||
edges: | ||
# Encoder configuration | ||
- source_name: ${graph.data} | ||
target_name: ${graph.hidden} | ||
edge_builder: | ||
_target_: anemoi.graphs.edges.CutOffEdges # options: KNNEdges, CutOffEdges | ||
cutoff_factor: 0.6 # only for cutoff method | ||
attributes: ${graph.attributes.edges} | ||
# Processor configuration | ||
- source_name: ${graph.hidden} | ||
target_name: ${graph.hidden} | ||
edge_builder: | ||
_target_: anemoi.graphs.edges.MultiScaleEdges | ||
x_hops: 1 | ||
attributes: ${graph.attributes.edges} | ||
# Decoder configuration | ||
- source_name: ${graph.hidden} | ||
target_name: ${graph.data} | ||
target_mask_attr_name: cutout | ||
edge_builder: | ||
_target_: anemoi.graphs.edges.KNNEdges # options: KNNEdges, CutOffEdges | ||
num_nearest_neighbours: 3 # only for knn method | ||
attributes: ${graph.attributes.edges} | ||
|
||
|
||
attributes: | ||
nodes: | ||
area_weight: | ||
_target_: anemoi.graphs.nodes.attributes.AreaWeights # options: Area, Uniform | ||
norm: unit-max # options: l1, l2, unit-max, unit-sum, unit-std | ||
cutout: | ||
_target_: anemoi.graphs.nodes.attributes.CutOutMask | ||
edges: | ||
edge_length: | ||
_target_: anemoi.graphs.edges.attributes.EdgeLength | ||
norm: unit-std | ||
edge_dirs: | ||
_target_: anemoi.graphs.edges.attributes.EdgeDirection | ||
norm: unit-std |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Stretched grid graph config intended to be used with a cutout dataset. | ||
# The stretched mesh resolution used here is intended for o96 global resolution with 10km | ||
# limited area resolution. | ||
overwrite: False | ||
|
||
data: "data" | ||
hidden: "hidden" | ||
|
||
nodes: | ||
data: | ||
node_builder: | ||
_target_: anemoi.graphs.nodes.ZarrDatasetNodes | ||
dataset: ${dataloader.training.dataset} | ||
attributes: | ||
area_weight: | ||
_target_: anemoi.graphs.nodes.attributes.AreaWeights | ||
norm: unit-max | ||
cutout: | ||
_target_: anemoi.graphs.nodes.attributes.CutOutMask | ||
hidden: | ||
node_builder: | ||
_target_: anemoi.graphs.nodes.StretchedTriNodes | ||
lam_resolution: 8 | ||
global_resolution: 5 | ||
reference_node_name: ${graph.data} | ||
mask_attr_name: cutout | ||
margin_radius_km: 11 | ||
attributes: | ||
area_weights: | ||
_target_: anemoi.graphs.nodes.attributes.AreaWeights | ||
norm: unit-max | ||
|
||
edges: | ||
# Encoder | ||
- source_name: ${graph.data} | ||
target_name: ${graph.hidden} | ||
edge_builder: | ||
_target_: anemoi.graphs.edges.KNNEdges | ||
num_nearest_neighbours: 12 | ||
attributes: ${graph.attributes.edges} | ||
# Processor | ||
- source_name: ${graph.hidden} | ||
target_name: ${graph.hidden} | ||
edge_builder: | ||
_target_: anemoi.graphs.edges.MultiScaleEdges | ||
x_hops: 1 | ||
attributes: ${graph.attributes.edges} | ||
# Decoder | ||
- source_name: ${graph.hidden} | ||
target_name: ${graph.data} | ||
edge_builder: | ||
_target_: anemoi.graphs.edges.KNNEdges | ||
num_nearest_neighbours: 3 | ||
attributes: ${graph.attributes.edges} | ||
|
||
attributes: | ||
edges: | ||
edge_length: | ||
_target_: anemoi.graphs.edges.attributes.EdgeLength | ||
norm: unit-max | ||
edge_dirs: | ||
_target_: anemoi.graphs.edges.attributes.EdgeDirection | ||
norm: unit-std |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.