Fixed testing and added graph abstractions (#64)

* abstracted some test logic and actually using test images now

* moved logging from trainer to graph

* fixing dataset path

* refactored instant ngp code to use inheritance

* fixed my run_train

* fixed data path

* fixed data dir
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-05-09 11:54:40 -07:00
1 parent e83ce4f61b
commit 5fb3d14304
26 files changed
+8526 -270

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ class RayGenerator(nn.Module):
camera_index = 0
camera_class = get_camera_model(self.num_intrinsics_params)
camera = camera_class(*self.intrinsics[camera_index].tolist())
image_coords = camera.get_image_coords().to(ray_indices.device)
image_coords = camera.get_image_coords().to(ray_indices.device) # NOTE(ethan): I can actually avoid this step
coords = image_coords[y, x]
ray_bundle = camera_class.generate_rays(intrinsics=intrinsics, camera_to_world=camera_to_world, coords=coords)