zju3dv / object_nerf

Code for "Learning Object-Compositional Neural Radiance Field for Editable Scene Rendering", ICCV 2021
https://zju3dv.github.io/object_nerf/
MIT License
313 stars 23 forks source link

How to determine `scale_factor` and `scene_scater` in the config file. #23

Open rockywind opened 1 year ago

rockywind commented 1 year ago

Hi, How to determine scale_factor and scene_scater in the config file. The original value of scale_factor is 5.0, and the value of scene_center is [0.2, 1.4, 7.1].

ybbbbt commented 1 year ago

Hi, we determine the scale factor by measuring the size of the reconstruction target (i.e., room size) with MeshLab, and set the scene center to the reconstruction center (i.e., a desk). The main reason of using scaling is to make the reconstruction lies inside [-1, 1], so as to make NeRF converge better. You can also automatically compute these scale_factor using max distances of two cameras with some empirical scaling factors (e.g., 5), or adopting scene contraction like nerfstudio/mipnerf360 does.

rockywind commented 1 year ago

Hi, @ybbbbt Can you share me the code about how to generate the bbox.json?