kerrj / lerf

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

LERFPipeline.__init__() got an unexpected keyword argument 'grad_scaler' #37

Closed guanhua-vfx closed 1 year ago

guanhua-vfx commented 1 year ago

Hi all,

Ran into a type error while trying to run ns-train lerf --data <data_folder>

File "C:\Users\User\miniconda3\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\User\miniconda3\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\User\miniconda3\Scripts\ns-train.exe__main__.py", line 7, in File "C:\Users\User\nerfstudio\nerfstudio\scripts\train.py", line 261, in entrypoint main( File "C:\Users\User\nerfstudio\nerfstudio\scripts\train.py", line 246, in main launch( File "C:\Users\User\nerfstudio\nerfstudio\scripts\train.py", line 189, in launch main_func(local_rank=0, world_size=world_size, config=config) File "C:\Users\User\nerfstudio\nerfstudio\scripts\train.py", line 99, in train_loop trainer.setup() File "C:\Users\User\nerfstudio\nerfstudio\engine\trainer.py", line 148, in setup self.pipeline = self.config.pipeline.setup( File "C:\Users\User\nerfstudio\nerfstudio\configs\base_config.py", line 57, in setup return self._target(self, **kwargs) TypeError: LERFPipeline.init() got an unexpected keyword argument 'grad_scaler'

Any idea what might be causing this? Thanks in advance!

guanhua-vfx commented 1 year ago

Fixed by using pull request #34 Thanks @maturk