Config restructure (#283)

* starting docs for pipelines

* working on an example

* clearing output

* starting to implement config changes and add documentation

* wip: removed cicular imports; porting basic config into python; todo: get python setups workin

* circular imports again

* wip: pausing at dataloader sort of working

* break for today

* running vanilla

* wip need to get all the config docs working

* laptop about to die

* instant ngp working

* added all configs for all methods; not tested yet: [mipnerf360, nerfw, semantic_nerf]

* unpacking later

* done with pylinting

* mostly done. just need to do docs and one test

* added import order to docs

* fixing near/far plane and other config things

* making loggers also instantiable via configs

* docs

* lint

* making --help work with dcargs

* moving configs back into flat

* convert list to tuples; fixed post init function with mutable params

* lint

* made run_eval and benchmarking scripts compatible with new config/dcargs

* lint

* added option to load configs from presaved config

Co-authored-by: evonneng <evonne_ng@berkeley.edu>
This commit is contained in:
Ethan Weberandevonneng authored and GitHub committed 2022-08-26 17:25:10 -07:00
1 parent e0856e3afc
commit 7e9a56fac4
46 files changed
+987 -916

No files matched your search

+9 -8
View File
@@ -154,7 +154,7 @@ class RayBundle(TensorDataclass):
Args:
origins: Ray origins (XYZ)
directions: Unit ray direction vector
pixel_area: Projected area of pixel a distance 1 away from origin.
pixel_area: Projected area of pixel a distance 1 away from origin
camera_indices: Camera indices
nears: Distance along ray to start sampling
fars: Rays Distance along ray to stop sampling
@@ -162,13 +162,14 @@ class RayBundle(TensorDataclass):
num_rays_per_chunk: Number of rays per chunk
"""
origins: TensorType["num_rays", 3]
directions: TensorType["num_rays", 3]
pixel_area: TensorType["num_rays", 1]
camera_indices: Optional[TensorType["num_rays", 1]] = None
nears: Optional[TensorType["num_rays", 1]] = None
fars: Optional[TensorType["num_rays", 1]] = None
valid_mask: Optional[TensorType["num_rays", 1, bool]] = None
# TODO(ethan): make sure the sizes with ... are correct
origins: TensorType[..., 3]
directions: TensorType[..., 3]
pixel_area: TensorType[..., 1]
camera_indices: Optional[TensorType[..., 1]] = None
nears: Optional[TensorType[..., 1]] = None
fars: Optional[TensorType[..., 1]] = None
valid_mask: Optional[TensorType[..., 1, bool]] = None
num_rays_per_chunk: int = 128
def set_camera_indices(self, camera_index: int) -> None: