mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 14:28:41 +08:00
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:
1 parent
2495cfe1ee
commit
84024a4e73
10 files changed
+170
-31
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user