compound model (wip) (#427)

* compound model now uses compound field, passing num_images in the config, working on passing image indices through ngp sampler

* renaming cuda func, adding torch compound support

* removing unused imports

* getting num images from dataloader instead of config

* fixing pylint and adding todo

* undoing base config change

* adding cone angle and near plane to compound model config
This commit is contained in:
Terrance Wang authored and GitHub committed 2022-09-16 14:38:25 -07:00
1 parent 2495cfe1ee
commit 84024a4e73
10 files changed
+170 -31

No files matched your search

+2
View File
@@ -51,11 +51,13 @@ class Model(nn.Module):
self,
config: cfg.ModelConfig,
scene_bounds: SceneBounds,
num_train_data: int,
**kwargs,
) -> None:
super().__init__()
self.config = config
self.scene_bounds = scene_bounds
self.num_train_data = num_train_data
self.density_field = None
self.kwargs = kwargs
self.collider = None