Any reason for the `N_max` selection?
yzslab opened this issue · 1 comments
yzslab commented
Hi,
N_max
is hardcoded to 51
:
3dgs-mcmc/utils/reloc_utils.py
Lines 5 to 9 in 5bf590e
But looks like nothing can prevent N_idx
, which is calculated here and added 1 here, from being greater than N_max
. In such a situation, it will lead to an out-of-bound accessing in cuda rasterizer.
shakibakh commented
Thanks for reporting this. Seems the clamp was removed when I was cleaning the code, adding it again.
As to why 50, I just chose a large enough value that doesn't cause overflow. In practice, the value of N doesn't really get that high.