Skip to content
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

Incorporating mesh level properties #3

Open
asadabbas09 opened this issue Jul 5, 2021 · 1 comment
Open

Incorporating mesh level properties #3

asadabbas09 opened this issue Jul 5, 2021 · 1 comment

Comments

@asadabbas09
Copy link

Thanks for sharing your awesome work.

I'm trying to work with inputs that have the following shapes:

mesh coordinates: x, y, z
mesh level scalar parameters: e.g: A=10, B=12, C=150, D=20

I changed scalar parameters to vectors using np.full and stacked them with x, y, z vertices to make a 7 Dim input C_in

x_in = torch.stack([x,y,z, A, B, C, D]

It works fine but I was wondering if that is the right way or is there a better way to include mesh level input parameters.

Because with my current implementation I'm not sure if the network is able to capture the effects of A,B,C,D on the output and seems like a waste of computational power.

@nmwsharp
Copy link
Owner

nmwsharp commented Jul 6, 2021

Hi, very glad to hear you are interested!

This sounds like pretty a good way to include mesh-level input parameters to me. You want them to be inputs to each of the pointwise MLPs, and this accomplishes that. The added computational cost should be small, since it only makes the first linear layer slightly larger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants