-
Notifications
You must be signed in to change notification settings - Fork 18
Unable to use UniformWeights config option for area_weights
#312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
bug
Something isn't working
Comments
I attempted to create the graph manually via nodes:
data:
node_builder:
_target_: anemoi.graphs.nodes.AnemoiDatasetNodes
dataset: ${dataset}
attributes:
area_weights:
_target_: anemoi.graphs.nodes.attributes.area_weights.UniformWeights
norm: unit-max
hidden:
node_builder:
_target_: anemoi.graphs.nodes.TriNodes
resolution: 5
area_weights:
_target_: anemoi.graphs.nodes.attributes.area_weights.UniformWeights
norm: unit-max
edges:
# Encoder connections
- source_name: data
target_name: hidden
edge_builders:
- _target_: anemoi.graphs.edges.CutOffEdges
cutoff_factor: 0.6
source_mask_attr_name: null
target_mask_attr_name: null
attributes:
edge_length:
_target_: anemoi.graphs.edges.attributes.EdgeLength
norm: unit-std
edge_dirs:
_target_: anemoi.graphs.edges.attributes.EdgeDirection
norm: unit-std
# Processor connections
- source_name: hidden
target_name: hidden
edge_builders:
- _target_: anemoi.graphs.edges.MultiScaleEdges
x_hops: 1
scale_resolutions: 5
source_mask_attr_name: null
target_mask_attr_name: null
attributes:
edge_length:
_target_: anemoi.graphs.edges.attributes.EdgeLength
norm: unit-std
edge_dirs:
_target_: anemoi.graphs.edges.attributes.EdgeDirection
norm: unit-std
# Decoder connections
- source_name: hidden
target_name: data
edge_builders:
- _target_: anemoi.graphs.edges.KNNEdges
num_nearest_neighbours: 3
source_mask_attr_name: null
target_mask_attr_name: null
attributes:
edge_length:
_target_: anemoi.graphs.edges.attributes.EdgeLength
norm: unit-std
edge_dirs:
_target_: anemoi.graphs.edges.attributes.EdgeDirection
norm: unit-std
post_processors: [] Results:
Perhaps there is a mismatch in the hydra config between |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
I'm unable to create a graph using UniformArea weights option. Perhaps I'm missing something but looking at the code here, it looks like it should be an option.
Here is my config override for the graph:
And the errors:
Perhaps I'm doing something wrong? Are there more config options that I need to change?
I'm attempting to initialize a model using
1959-2022-full_37-1h-0p25deg-chunk-1.zarr-v2
from the ARCO ERA5 dataset and I was told that I should try usingUniformWeights
until #223 makes it through.What are the steps to reproduce the bug?
Execute a training run using the above config overrides for graph.
Version
anemoi-training==0.4.0.post17, anemoi-graphs==0.5.2.post11
Platform (OS and architecture)
Linux 6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC
Relevant log output
Accompanying data
No response
Organisation
No response
The text was updated successfully, but these errors were encountered: