question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Regression with pytorch geometric

See original GitHub issue

Hi @rusty1s,

I am interested to use pytorch_geometric for a regression problem and I wanted to ask you whether you think it would be possible. To give you an understanding of my dataset I have a set of point clouds of different sizes and for which I have available the vertices n, faces f (quad meshed) and a set of features vector fx8 which include the normals, the centroid, the face area, etc. Now for each face I would like to regress an intensity value for the corresponding target that I want to give as an input. Due to the spatial arrangement of my dataset I would have a lot of occlusions and a kind of long tail distribution of these intensity values.

Considering that I am quite new to pytorch_geometric/GCNs/GNNs do you think that this would be feasible. If yes do you have any specific model which you think that it would be best to use and possibly point me to point me to an example if there is any.

Thanks a lot.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ttsesmcommented, Apr 27, 2021

Thanks a lot, quite helpful. I think I could modify the from_scratch() function to load my data.

Skipping through the from_scratch() function I have a few more questions though:

  1. Is it possible to load any custom extra features other than the ones extracted here.

  2. My meshes point coordinates are in meters which could vary from 0 to 10/15m on each mesh, do I need to normalize them to [0,1] or it is not necessary. If yes, each mesh should be normalized individually based on each own min, max dimensionality or based on the min, max dimensions of the whole dataset.

1reaction
Omri-Lcommented, Apr 26, 2021

@Omri-L checking on the PR for the MeshCNN I am trying to use the example from here. Is there an easy way though to load my dataset in the format that MeshCNN accepts?

My data (vertices, faces, center points, normals, target values, etc I guess I can also extract the edges) are in .csv format. Looking into the mesh_cnn_base_datasets.py it is not quite clear how to load each of the input and feature vectors accordingly. Any idea would be helpful.

Hi @ttsesm, MeshCNN works with .obj files (you can see an example of different datasets in the link you shared here). If you want to understand fully how it loads the data, you should go to get function in MeshCnnClassificationDataset class here. The actual loading is in MeshPrepare class here - go to “from_scratch” function. Hope it helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyTorch Geometric for Node Regression · Issue #3794 - GitHub
I have one question: can I use PyTorch Geometric to perform node regression? If so, how can I implement the GCN to perform...
Read more >
Introduction by Example — pytorch_geometric documentation
A graph is used to model pairwise relations (edges) between objects (nodes). A single graph in PyG is described by an instance of...
Read more >
Node regression on graphs with different sizes
Node regression on graphs with different sizes - Pytorch Geometric ... I have a dataset of graphs, several of them have different target...
Read more >
(PyG) Pytorch Geometric Review 1 - intro - AAA (All About AI)
REGRESSION ) self.out = Linear(embedding_size*2, 1) def forward(self, x, edge_index, batch_index): hidden = F.tanh(self.initial_conv(x, ...
Read more >
Pytorch Geometric Temporal - Model Zoo
The library consists of various dynamic and temporal geometric deep learning, embedding, and spatio-temporal regression methods from a variety of published ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found