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

Tensors of type TensorImpl do not have sizes #25

Open
Xxxkkkkx opened this issue Sep 4, 2024 · 2 comments
Open

Tensors of type TensorImpl do not have sizes #25

Xxxkkkkx opened this issue Sep 4, 2024 · 2 comments

Comments

@Xxxkkkkx
Copy link

Xxxkkkkx commented Sep 4, 2024

During the training process, I keep encountering the following error. I have checked the format of xyz1 and xyz2 inputs to ChamferFunction, which are (32, 640, 3) and (32, 1280, 3) respectively, and they seem to be correct. I would like to consult on possible solutions. Looking forward to your response.
错误

@CuiRuikai
Copy link
Owner

I did not encounter such a problem.
After some research on this issues, I have two things to confirm: 1) are you using sparse tensor? 2) can you try making all tensor continuous (.continuous() in PyTorch) before sending to the chamfer function.

@CuiRuikai
Copy link
Owner

PyTorch3D also provides an implementation of Chamfer distance, which might be more robust than the one that I used. You could try this version.
https://pytorch3d.readthedocs.io/en/latest/modules/loss.html

Please let me know if the above solutions are not able to resolve this issues

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