Closed xuwentai closed 1 year ago
sampled_sum = points_num_acc + i * this_points.shape[0]
Where the points_num_acc denotes the far away points number, the i*this_points.shape[0] calculates the points number of nearby bins when each nearby bin samples same points as i th bin. The sampled_sum calculates the points number when applying bin-based sampling.
if sampled_sum / all_points_num < rate:
position = i
The distant bins will keep all points, only nearby bins should be sampled. The position is a bin index threshold to determine which bins need to be sampled.
Thank you for your wonderful work. I would like to carefully understand how the STVD module runs. I have read your code, but I am not very familiar with it. I hope you can explain: Why sampled_sum should we express it this way: sampled_sum = points_num_acc + i * this_points.shape[0] and the meaning of this code: if sampled_sum / all_points_num < rate: position = i distant_points_num_acc = points_num_acc