-
Notifications
You must be signed in to change notification settings - Fork 250
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
🐛[BUG]: IndexError: list index out of range when training BiStride MeshGraphNet #695
Comments
@Alexey-Kamenev could you please take a look? |
You are correct, BSMS MGN expects the data in a certain format. To enable this format, you need to wrap your dataset class in |
I'm not sure I understand. Do you mean that, if I want to test both MeshGraphNet and BSMS MGN on the same data, I need to write two different dataset classes? That's not great from a SWE point of view - I'd like my dataset class to be independent of the model class, as much as possible. Of course, complete decoupling is not realistic (if I want to test a set of GNN models, I expect the Dataset class to have a graph building method), but having to write a different class for each model I want to test is definitely suboptimal. Maybe I didn't understand your suggestion? |
You don't need to write a new dataset class, all you have to do is to wrap your existing dataset class with dataset = MyDataset(...)
if use_bsms:
dataset = BistrideMultiLayerGraphDataset(dataset, num_layers=2, cache_dir="/data/bsms_l2_cache") There is a concrete example in one of our unit tests here. |
Closing the issue. Feel free to re-open or create a new one, if needed. |
Version
0.8.0
On which installation method(s) does this occur?
Docker
Describe the issue
I'm trying to train a BiStride MeshGraphNet on my dataset (very similar to DrivAerNet), but I keep getting errors. It looks like it's expecting the data in the graph to have a very specific structure, unlike MeshGraphNet which is better written (and it trains on my data). The error I'm getting is
Can you help? It would be useful if you provided an example to test BiStride MeshGraphNet out, but the only example mentioned in the documentation regards the Ahmed body dataset which is not included in the
examples
folder.https://docs.nvidia.com/deeplearning/modulus/modulus-core/examples/cfd/aero_graph_net/readme.html#bsms-mgn-training
Minimum reproducible example
This is the dataset class:
And this is the
__init__
method of my trainer class:Relevant log output
No response
Environment details
No response
The text was updated successfully, but these errors were encountered: