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

Issues running mesh_mnist/main.py #8

Open
DaddyWesker opened this issue Aug 1, 2022 · 5 comments
Open

Issues running mesh_mnist/main.py #8

DaddyWesker opened this issue Aug 1, 2022 · 5 comments

Comments

@DaddyWesker
Copy link

DaddyWesker commented Aug 1, 2022

Hello and thanks for your code.

Don't know if i'll get any answers, but anyway.

I'm trying to launch main.py (with default settings) in mesh_mnist folder (i've downloaded mesh mnist of course from the google drive links). Training crashes on the line:
outputs = model(inputs, laplacian, mask)

If we'll look deeper, it crashes here:
xs = [x, torch.mm(L,x.view(-1, feat)).view(batch, node, feat)] (167 line of src/utils/utils_pt.py file).

It says The expanded size of the tensor (64) must match the existing size (503) at non-singleton dimension 0. Target sizes: [64, 64]. Tensor sizes: [503, 64]

It is torch.mm failing because L is (64,503,503) and x.view(-1, feat) is (32192, 64). By the way, as i know, torch.mm uses 2D tensors as input, no? Well, does anyone launched that and could advice something?

@jiangzhongshi
Copy link
Owner

jiangzhongshi commented Aug 1, 2022 via email

@DaddyWesker
Copy link
Author

Hello, I guess you meant torch version? I can try to install 1.0.0 of course, but i'm not sure I'll be able to since my rtx 3070 demands cuda 11+ and torch 1.0.0 wont support it. So I'll be launching on cpu which is super slow.

@jiangzhongshi
Copy link
Owner

jiangzhongshi commented Aug 2, 2022 via email

@jiangzhongshi
Copy link
Owner

It may help me to have more information: which specific file and branch are you running into problems?

there was indeed an effort to try to make L/Laplaican to be a 2d matrix. but might miss somewhere.

@DaddyWesker
Copy link
Author

So, should i add this diagonal concatenation to the mnist? Place it before torch.mm?

I'm running master branch. main.py in mesh_mnist folder.

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