4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 18:44:21 +08:00

fix optimizer dict (#729)

* bump version

* optimizer doc fix

* Update conf.py

* Update pyproject.toml
This commit is contained in:
Ethan Weber 2022-10-07 11:42:36 -07:00 committed by GitHub
parent ee94f23f83
commit 45e5b528e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,9 +41,8 @@ class OptimizerConfig(base_config.PrintableConfig):
# but also not sure how to go about passing things into predefined torch objects.
def setup(self, params) -> Any:
"""Returns the instantiated object using the config."""
kwargs = vars(self)
if "_target" in kwargs:
del kwargs["_target"]
kwargs = vars(self).copy()
kwargs.pop("_target")
return self._target(params, **kwargs)