Add trainer parsing (#1801)

* Increase max_res of first proposal network

* add trainer to parsing for ViewerElements

* lint

---------

Co-authored-by: Ayaan Haque <ayaanzhaque@gmail.com>
This commit is contained in:
Justin KerrandAyaan Haque authored and GitHub committed 2023-04-22 15:04:11 -07:00
1 parent d5decb61a6
commit 09f56ab00d
2 files changed
+6 -16

No files matched your search

-14
View File
@@ -20,9 +20,6 @@ from typing import Any, List, Tuple
from torch import nn
from nerfstudio.pipelines.base_pipeline import Pipeline
from nerfstudio.viewer.server.viewer_elements import ViewerElement
def parse_object(
obj: Any,
@@ -68,14 +65,3 @@ def parse_object(
for ts, o in lower_rets:
add(ret, ts, o)
return ret
def get_viewer_elements(pipeline: Pipeline) -> List[Tuple[str, ViewerElement]]:
"""
Recursively parse the pipeline object and return a tree of all the ViewerElements contained
returns a list of (path/to/object, param), which represents the path down the object tree as well as
the ViewerElement itself
"""
ret = parse_object(pipeline, ViewerElement, "Custom")
return ret