Closed nawazishkhan1-nk closed 1 month ago
@jadie1 , Please add python implementation. Thanks!
Here is the equation for chamfer distance between two point clouds S1 and S2:
It is the L2 distance between each point and its nearest neighbor in the other point cloud, so the main functionality you need nearest neighbors.
I've been using this PyTorch implementation: https://pytorch3d.readthedocs.io/en/latest/modules/loss.html
There are some other repos that implement the functionality in C++ and adapt it for pytorch, for example: https://github.com/otaheri/chamfer_distance
Feature Summary