mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-19 06:14:03 +08:00
fix optimizer dict (#729)
* bump version * optimizer doc fix * Update conf.py * Update pyproject.toml
This commit is contained in:
1 parent
ee94f23f83
commit
45e5b528e5
1 file changed
+2
-3
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user