Zerg-Overmind / Strivec

Official code for the paper: Strivec (ICCV2023)
142 stars 3 forks source link

What is local_gindx_s/l , local_gweight_s/l #4

Closed ZhenhuiL1n closed 1 year ago

ZhenhuiL1n commented 1 year ago

Hi.

I was trying to understand the code and I don't know what the local_gindx_s/l and local_gweight_s/l mean, can you please explain or give a hint, like corresponding to which part of the paper? Thanks a lot!!!

Zerg-Overmind commented 1 year ago

Hi, these two variables are not referred to any part of the paper. Actually here we want to calculate each query point's features, so we need its grid index (this is the index of the corresponidng CP vector basis and we refered the index of CP vector basis as local_gindx). But each point lies at "some position" and not integer position inside a grid, e.g., point (x,y,z) is at "3.6"th grid and we use linear interpolation to assign features of 3th grid (we refer as local_gindx_s, s means small) and 4th grid (local_gweight_l, l means large) to the point (x,y,z) with corresponding weights we called local_gweights_s=0.4 and local_gweights_l=0.6. You may also take a look at our cuda functions for the details.

ZhenhuiL1n commented 1 year ago

Got it, nice, Thanks for the elaboration, it is clear now!

Zerg-Overmind commented 1 year ago

Np, feel free to ask any other questions!