Closed nikhilmishra000 closed 10 months ago
I broke the marching_cubes cuda implementation recently with my commit https://github.com/facebookresearch/pytorch3d/commit/6f2212da46f3ad1a596b3e1017be2d16eaaf95f9 which was attempting to fix windows' build problems (see #1610). Fixing the type error you are seeing (which is easy) doesn't give the right result. This needs investigating. For the moment, it would be easiest to build from a source checkout, changing marching_cubes.cu to the previous version.
Thanks, I'll give that a try -- are there any tests in the pytorch3d repo I can run to check correctness?
Turns out all the test_marching_cubes tests are checking cpu only (where output order is deterministic). That's how this went wrong. Ideally the same tests would check gpu too.
Turns out all the test_marching_cubes tests are checking cpu only (where output order is deterministic). That's how this went wrong. Ideally the same tests would check gpu too.
In fact, fixing the typing in the new code works.
hi @bottler, thank you for taking care of this case.
Can I ask if you have any updates on this? (I'm using v0.7.5)
🐛 Bugs / Unexpected behaviors
pytorch3d.ops.marching_cubes.marching_cubes()
does not work on v0.7.5 for cuda tensors. It throwsRuntimeError: expected scalar type Int but found Long
.Instructions To Reproduce the Issue:
I am using
torch==2.1.0+cu121
and I installedpytorch3d
via:The following snippet raises the error:
This raises
RuntimeError: expected scalar type Int but found Long
.