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 -1
View File
@@ -88,7 +88,8 @@ class Pipeline(nn.Module):
# TODO(ethan): get rid of scene_bounds from the model
assert self.datamanager.train_input_dataset is not None, "Missing input dataset"
self.model: Model = config.model.setup(
scene_bounds=self.datamanager.train_input_dataset.dataset_inputs.scene_bounds
scene_bounds=self.datamanager.train_input_dataset.dataset_inputs.scene_bounds,
num_train_data=len(self.datamanager.train_input_dataset),
)
self.model.to(device)