mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-05 23:38:42 +08:00
Visualizer: toggle between different output options (#122)
* added dynamic setting options based on graph outputs * added functionality to view different types of outputs * fixed first value set to nothing * moved try except in smaller scope
This commit is contained in:
1 parent
437606e614
commit
25a1f91dee
5 files changed
+135
-12
No files matched your search
@@ -72,6 +72,28 @@ class SetTransform:
|
||||
return {"type": "set_transform", "path": self.path.lower(), "matrix": list(self.matrix.T.flatten())}
|
||||
|
||||
|
||||
class SetOutputOptions:
|
||||
__slots__ = ["output_options", "path"]
|
||||
|
||||
def __init__(self, output_options, path):
|
||||
self.output_options = output_options
|
||||
self.path = path
|
||||
|
||||
def lower(self):
|
||||
return {"type": "set_output_options", "path": self.path.lower(), "output_options": list(self.output_options)}
|
||||
|
||||
|
||||
class SetOutputType:
|
||||
__slots__ = ["output_type", "path"]
|
||||
|
||||
def __init__(self, output_type, path):
|
||||
self.output_type = output_type
|
||||
self.path = path
|
||||
|
||||
def lower(self):
|
||||
return {"type": "set_output_options", "path": self.path.lower(), "output_options": list(self.output_type)}
|
||||
|
||||
|
||||
class Delete:
|
||||
__slots__ = ["path"]
|
||||
|
||||
|
||||
Reference in new issue
Block a user