Viewer Dynamic Resolution Scaling (DRS) (#87)

* updated three.js version. only send camera information when it moves

* changing code back to updating camera constantly because packets seem to be lost

* interrupting function during rendering

* small linting fixes

* added logic for interrupting rendering + separted out visualizer logic from trainer

Co-authored-by: evonneng <evonne_ng@berkeley.edu>
This commit is contained in:
Ethan Weberandevonneng authored and GitHub committed 2022-07-06 15:47:08 -07:00
1 parent bd78a68756
commit 56661b5d9a
12 files changed
+418 -395

No files matched your search

+12 -1
View File
@@ -104,6 +104,17 @@ class GraphConfig:
field_implementation: Optional[str] = "torch"
@dataclass
class ViewerConfig:
"""Configuration for viewer instantiation"""
enable: bool = MISSING
zmq_url: str = MISSING
min_render_image_height: int = MISSING
max_render_image_height: int = MISSING
num_rays_per_chunk: int = MISSING
@dataclass
class Config:
"""Full config contents"""
@@ -138,7 +149,7 @@ def setup_config(config: DictConfig) -> Config:
data = DataConfig(**config.data)
graph = GraphConfig(**config.graph)
optimizers = config.optimizers
viewer = config.viewer
viewer = ViewerConfig(**config.viewer)
return Config(
machine=machine,
logging=logging,