Skip to content

Commit

Permalink
chore: run pre-commits
Browse files Browse the repository at this point in the history
  • Loading branch information
AtticusZeller committed Jun 17, 2024
1 parent c00503d commit 47e7df4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
path = thirdparty/torchimize
url = git@github.com:SupaVision/torchimize.git

[submodule "thirdparty/pytorch3d"]
path = thirdparty/pytorch3d
url = git@github.com:facebookresearch/pytorch3d.git
2 changes: 1 addition & 1 deletion .idea/AB_GICP.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import kornia
import kornia.geometry.conversions as KG
import torch
from pykeops.torch import LazyTensor
from torch import Tensor
import kornia.geometry.conversions as KG

from src.pose_estimation import DEVICE


Expand Down Expand Up @@ -48,7 +49,7 @@ def project_depth(depth: Tensor, pose: Tensor, intrinsics: Tensor) -> Tensor:
X = (grid_x - intrinsics[0, 2]) * Z / intrinsics[0, 0]
Y = (grid_y - intrinsics[1, 2]) * Z / intrinsics[1, 1]

# Create homogenous coordinates
# Create homogeneous coordinates
ones = torch.ones_like(Z)
pcd_camera = torch.stack((X, Y, Z, ones), dim=-1)

Expand Down Expand Up @@ -206,7 +207,7 @@ def rotation_matrix_to_quaternion(rotation_matrix: Tensor) -> Tensor:
return KG.rotation_matrix_to_quaternion(rotation_matrix)


class KnnSearch:
class KnnSearchKeOp3:
def __init__(self, dataset: torch.Tensor):
self.dataset = dataset
# Convert dataset to a KeOps LazyTensor
Expand Down

0 comments on commit 47e7df4

Please sign in to comment.