npbg
npbg copied to clipboard
How to get the indices for rasterizing descriptors?
I saw the descriptors are stored in PointTexture class as nn.Parameters, and they are rasterized to image through index_select
. I am wondering how to get these indices?
@BostonLobster are you referring to this line? https://github.com/alievk/npbg/blob/c0cf6f2224bda3d4a5007e05c05fbaf5b34cf256/npbg/models/texture.py#L61
In this case, the ind
array should be suitable.
https://github.com/alievk/npbg/blob/c0cf6f2224bda3d4a5007e05c05fbaf5b34cf256/npbg/models/texture.py#L55
@seva100 Yes, that is the line I referred. I am confused about where did you get the ind
array.