mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-20 14:45:38 +08:00
Fix type errors (#296)
This commit is contained in:
1 parent
3963a1d9cb
commit
86ea6de059
5 files changed
+20
-7
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user