Default to train dataset when eval isn't specified in config (#265)

default to train dataset when eval isn't in config
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-08-10 15:29:56 -07:00
1 parent 0b042be956
commit 841e03a9a3
11 files changed
+8 -44

No files matched your search

+1 -1
View File
@@ -190,7 +190,7 @@ class Model(nn.Module):
"""Computes and returns the losses dict."""
@torch.no_grad()
def get_outputs_for_camera_ray_bundle(self, camera_ray_bundle: RayBundle):
def get_outputs_for_camera_ray_bundle(self, camera_ray_bundle: RayBundle) -> Dict[str, torch.Tensor]:
"""Takes in camera parameters and computes the output of the model."""
assert is_not_none(camera_ray_bundle.num_rays_per_chunk)
image_height, image_width = camera_ray_bundle.origins.shape[:2]