npbg icon indicating copy to clipboard operation
npbg copied to clipboard

How to get the indices for rasterizing descriptors?

Open BostonLobster opened this issue 4 years ago • 3 comments

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 avatar Sep 02 '20 05:09 BostonLobster

@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 avatar Sep 02 '20 06:09 seva100

@seva100 Yes, that is the line I referred. I am confused about where did you get the ind array.

BostonLobster avatar Sep 03 '20 10:09 BostonLobster