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 with custom data #35

Open
felipesce opened this issue Sep 30, 2022 · 2 comments
Open

Issues with custom data #35

felipesce opened this issue Sep 30, 2022 · 2 comments

Comments

@felipesce
Copy link

felipesce commented Sep 30, 2022

Hello.

I'm having issues building a convex hull and then adapting the scripts to my own point clouds.
I seem to have been able to build the hull.obj file, but I'm not sure if it has problems.

When running the script, there's an error in models/losses.py:
this line

cham_norm_x = F.cosine_similarity(x_normals, x_normals_near, dim=2, eps=1e-6)

The error is:

RuntimeError: The size of tensor a (3) must match the size of tensor b (0) at non-singleton dimension 2

x_normals.shape = torch.Size([1, 15000, 3])
x_normals_near.shape = torch.Size([1, 15000, 0])

I have no idea where I went wrong, any help would be deeply appreciated.

Thanks!

@jiayaozi
Copy link

jiayaozi commented Dec 2, 2022

hello , i have the same error. Have you solved that?

@gavinleong
Copy link

Hi, had the same problem. I solved it by noticing that the giraffe.ply point cloud file in the examples folder has normals listed next to the vertex, so I put my custom point cloud file onto CloudCompare, calculated the normals, exported the point cloud as an ascii .ply file and tried again, and it seems to not produce the error.

Also notice the error in the losses.py script features mostly "normals" related variables, so that would be the hint at the problem.

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

3 participants