The implementation philosophy of RCD
Dear Dr. Cui, First of all, thank you very much for your excellent work on the P2C paper. After carefully reading the paper and the corresponding code, I have a question regarding the loss calculation that I would like to ask you: The shape loss mentioned in the paper is the Region-based Chamfer Distance (RCD) loss, which is supposed to compute the CD loss on a region-wise basis. However, when I went through the code, I noticed that you did not compute the loss region by region. Instead, you reshaped all regions and directly calculated the overall CD loss. I would greatly appreciate it if you could clarify whether this implementation is correct, or if there is any misunderstanding on my part. Thank you again for your time and contribution to the community. Sincerely, T Zh.
Thank you for your interest! This is indeed a confusing part of my code as I did not formulate the RCD loss a class or module, but instead computed it using many code patches; The answer for this question is that, since I have collected some fps points, then I found the knn around these fps points, this automatically creates regions, so that I did not recompute regions again, and used CD loss directly on these reformed point clouds;
You can also refer to https://github.com/CuiRuikai/Partial2Complete/issues/15
Thank you for your reply! I understand that you have already achieved region division via FPS and KNN in your code, so there is no need to divide regions again when calculating the CD loss. However, I noticed that when computing the Chamfer Distance loss, you reshape all point cloud features into a tensor with the shape B × (20×32) × 3 and calculate the loss directly on the entire point set. Could you please tell me whether this operation will cause cross-region matching during the CD loss computation?
Thank you for your reply! I understand that you have already achieved region division via FPS and KNN in your code, so there is no need to divide regions again when calculating the CD loss. However, I noticed that when computing the Chamfer Distance loss, you reshape all point cloud features into a tensor with the shape B × (20×32) × 3 and calculate the loss directly on the entire point set. Could you please tell me whether this operation will cause cross-region matching during the CD loss computation?
![]()
It may cause cross-region matching and this is designed to do so. actually, we do not need to restrict the nearest points to only the local patches. We have already formed the region-awared predictions, so that it can directly compare with the whole observed partial point cloud
let me know if you have further questions
Thank you for your reply. I noticed that the GroupSize in your configuration is set to 32. However, when calculating the CD (Chamfer Distance) loss, nbr_ratio * neighborhood_size equals 64, meaning there is a 2x difference in the number of points during the CD loss computation. Could this cause any issues?
This is just an emperical number, I found setting it 64 works well and better than 32, so I set it 64. No comphensive experiments about this
Thank you for your reply.