Replies: 1 comment 6 replies
-
Importantly, you have to add node positions to your graph, either as node features or relative edge features between nodes. As such, please try the following x = torch.cat([data.x, data.pos], dim=-1) inside your model. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am having troubles finding a good architecture / data preprocessing for an image segmentation task for my research.
I used the slic algorithm to compute super pixels, and i have a dataset with fully connected graphs and another with edges between touching nodes.
with this settings i tried different graph layers (GCN, a more basic GNN, an attention layer) but it is difficult to get good results compared to a very simple CNN.
I am going towards adding more nearest neighbour because apparently a fully connected graph can oversmoothed information during the aggregation phase, and too few edges is not optimal for message passing.
In terms of architecture though it is difficult to get a good one, does someone have experience with it or know a good architecture for this task ? (or a simple article with a github repo)
Here is one of my models as an example:
Beta Was this translation helpful? Give feedback.
All reactions