kerrj / lerf

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

Clarification in LERF Field processing #57

Closed Shiva-Gantha closed 10 months ago

Shiva-Gantha commented 11 months ago

Could you please explain the purpose for the following line of code (link) in the get_outputs() function under LERFField:

positions = (positions + 2.0) / 4.0

Shiva-Gantha commented 10 months ago

I understand that this is to bring the 3D co-ordinates in the range [0, 1] after the Scene contraction operation which warps the 3D co-ordinates into a sphere of radius 2.