kerrj / lerf

Code for LERF: Language Embedded Radiance Fields
https://www.lerf.io/
MIT License
649 stars 63 forks source link

confusion about position encoding interpolation #51

Open llianxu opened 11 months ago

llianxu commented 11 months ago

Thanks for your great work! I want to know that why the code below need to minus patch_size

# compute number of tokens taking stride into account
 w0 = 1 + (w - patch_size) // stride_hw[1]
 h0 = 1 + (h - patch_size) // stride_hw[0]