nerfstudio icon indicating copy to clipboard operation
nerfstudio copied to clipboard

Ability to disable Viser during training a nerf

Open AruniRC opened this issue 1 month ago • 3 comments

Is your feature request related to a problem? Please describe. I am unable to turn off Viser during training a nerf using Nerfstudio.

Describe the solution you'd like In some applications, for example if I am trying to build something on top of Nerfstudio, we may not want to use Viser but some custom tool for the viewer. Being able to easily turn off Viser during model training via the Python API at least would help here.

Describe alternatives you've considered I have tried various settings for "vis" and "viewer" options in the trainer, but these were not successful workarounds. Other than majorly editing the existing Nerfstudio codebase, I did not see any clean way to disable Viser from running.

Additional context

Code snippet below of what I tried:

from nerfstudio.configs.method_configs import method_configs
from nerfstudio.scripts.train import main
from pathlib import Path

# Create default training config for the nerfacto method
cfg = method_configs["nerfacto"]

# Specify where the pre-processed data is saved (must contain 'transforms.json')
cfg.data = Path("processed_data_folder")

# attempt to  turn off in-browser viewer (Viser) ?
# cfg.vis = None        # no effect!
# cfg.viewer = None  # training fails with error!

# begin training!
main(cfg)

AruniRC avatar Jun 25 '24 20:06 AruniRC