Fixed friends dataset w/o caching (#365)

* fixing friends dataloading and nerfw running

* put dataset back to normal
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-09-07 12:24:29 -07:00
1 parent 42711497ab
commit 512a51f714
11 files changed
+98 -170

No files matched your search

+3 -3
View File
@@ -100,9 +100,9 @@ class DataManager(nn.Module):
super().__init__()
self.train_count = 0
self.eval_count = 0
if self.train_input_dataset and self.train_input_dataset.inputs:
if self.train_input_dataset and self.train_input_dataset.dataset_inputs:
self.setup_train()
if self.eval_input_dataset and self.eval_input_dataset.inputs:
if self.eval_input_dataset and self.eval_input_dataset.dataset_inputs:
self.setup_eval()
def forward(self):
@@ -250,7 +250,7 @@ class VanillaDataManager(DataManager): # pylint: disable=abstract-method
)
self.iter_train_image_dataloader = iter(self.train_image_dataloader)
self.train_pixel_sampler = PixelSampler(self.config.train_num_rays_per_batch)
self.train_ray_generator = RayGenerator(self.train_input_dataset.inputs.cameras.to(self.device))
self.train_ray_generator = RayGenerator(self.train_input_dataset.dataset_inputs.cameras.to(self.device))
def setup_eval(self):
"""Sets up the data loader for evaluation"""