mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +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:
|
def apply_to_raybundle(self, raybundle: RayBundle) -> None:
|
||||||
"""Apply the pose correction to the raybundle"""
|
"""Apply the pose correction to the raybundle"""
|
||||||
if self.config.mode != "off":
|
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.origins = raybundle.origins + correction_matrices[:, :3, 3]
|
||||||
raybundle.directions = torch.bmm(correction_matrices[:, :3, :3], raybundle.directions[..., None]).squeeze()
|
raybundle.directions = torch.bmm(correction_matrices[:, :3, :3], raybundle.directions[..., None]).squeeze()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user