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:
parent
ee94f23f83
commit
45e5b528e5
@ -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)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user