Fix type errors (#296)

This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-08-25 08:48:25 -07:00
1 parent 3963a1d9cb
commit 86ea6de059
5 files changed
+20 -7

No files matched your search

+1 -1
View File
@@ -118,7 +118,7 @@ class NerfWModel(Model):
def get_outputs(self, ray_bundle: RayBundle):
if misc.is_not_none(ray_bundle.camera_indices):
if ray_bundle.camera_indices is not None:
# TODO(ethan): remove this check
assert (
torch.max(ray_bundle.camera_indices) < self.num_images