krrish94 / chamferdist

Pytorch package to compute Chamfer distance between point sets (pointclouds).
Other
290 stars 50 forks source link

problem when grad backward #1

Closed lixincheng4026 closed 4 years ago

lixincheng4026 commented 4 years ago

Thanks for your work, I have used your code for pytorch to evaluate two points set,but problems happened when I want the dist to backward. TypeError: backward() takes 3 positional arguments but 5 were given. Really dont know what happened.

sawadika213 commented 4 years ago

I have the same problem ? Do you have solved?

krrish94 commented 4 years ago

Yes, that's a bug indeed! Should be fixed with https://github.com/krrish94/chamferdist/commit/1158a98bb4bb8e5b9d4f3415d9936b2dcddf9831

The latest master branch fixes this issue, and so does the pypi package (version 0.3.0 or higher).