mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-13 03:14:00 +08:00
type ignore
This commit is contained in:
1 parent
e0c245156a
commit
4ddbee9b08
1 file changed
+1
-1
@@ -113,7 +113,7 @@ class CameraOptimizer(nn.Module):
|
||||
def apply_to_raybundle(self, raybundle: RayBundle) -> None:
|
||||
"""Apply the pose correction to the raybundle"""
|
||||
if self.config.mode != "off":
|
||||
correction_matrices = self(raybundle.camera_indices.squeeze())
|
||||
correction_matrices = self(raybundle.camera_indices.squeeze()) # type: ignore
|
||||
raybundle.origins = raybundle.origins + correction_matrices[:, :3, 3]
|
||||
raybundle.directions = torch.bmm(correction_matrices[:, :3, :3], raybundle.directions[..., None]).squeeze()
|
||||
|
||||
|
||||
Reference in new issue
Block a user