nerfstudio: NameError: name 'tcnn' is not defined when trying to train nerfacto

Describe the bug I get a NameError: name 'tcnn' is not defined error right after starting to train nerfacto model Vanilla model is trained without issues though

[visualizer.py:96] Sending ping to the viewer Bridge Server...
[visualizer.py:98] Successfully connected.
[WARNING] Not running eval iterations since only viewer is enabled. Use `--vis wandb` or `--vis tensorboard` to run
with eval instead.
disabled tensorboard/wandb event writers
Auto image downscale factor of 2
[nerfstudio_dataparser.py:91] Skipping 0 files in dataset split train.
Auto image downscale factor of 2
[nerfstudio_dataparser.py:91] Skipping 0 files in dataset split val.
Loading data batch ---------------------------------------- 100% 0:00:00
Loading data batch ---------------------------------------- 100% 0:00:00
[profiler.py:85] Printing profiling stats, from longest to shortest duration in seconds
Traceback (most recent call last):
  File "C:\Users\user\miniconda3\envs\nerfstudio\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\user\miniconda3\envs\nerfstudio\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\user\miniconda3\envs\nerfstudio\Scripts\ns-train.exe\__main__.py", line 7, in <module>
  File "C:\Code\nerfstudio\scripts\train.py", line 216, in entrypoint
    main(tyro.cli(AnnotatedBaseConfigUnion))
  File "C:\Code\nerfstudio\scripts\train.py", line 202, in main
    launch(
  File "C:\Code\nerfstudio\scripts\train.py", line 145, in launch
    main_func(local_rank=0, world_size=1, config=config)
  File "C:\Code\nerfstudio\nerfstudio\engine\trainer.py", line 62, in train_loop
    trainer.setup()
  File "C:\Code\nerfstudio\nerfstudio\engine\trainer.py", line 129, in setup
    self.pipeline: VanillaPipeline = self.config.pipeline.setup(
  File "C:\Code\nerfstudio\nerfstudio\configs\base_config.py", line 62, in setup
    return self._target(self, **kwargs)
  File "C:\Code\nerfstudio\nerfstudio\pipelines\base_pipeline.py", line 220, in __init__
    self._model = config.model.setup(
  File "C:\Code\nerfstudio\nerfstudio\configs\base_config.py", line 62, in setup
    return self._target(self, **kwargs)
  File "C:\Code\nerfstudio\nerfstudio\models\base_model.py", line 80, in __init__
    self.populate_modules()  # populate the modules
  File "C:\Code\nerfstudio\nerfstudio\models\nerfacto.py", line 104, in populate_modules
    self.field = TCNNNerfactoField(
  File "C:\Code\nerfstudio\nerfstudio\fields\nerfacto_field.py", line 123, in __init__
    self.direction_encoding = tcnn.Encoding(
NameError: name 'tcnn' is not defined

Windows 10 Nvidia A6000

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (6 by maintainers)

Most upvoted comments

@akristoffersen just found out that tinycudann fails to install and to compile on my machine. Will try to investigate.

I know this one is closed but I am kinda wondering why tinycudann is not included with the installation setup (or at least the docs) if its required for usage?