Skip to content

Commit

Permalink
Make PoseRegressor return a RigidTrasform (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenvivek committed Aug 2, 2024
1 parent 74bce76 commit f9ff7dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion diffdrr/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ def forward(self, x):
x = self.backbone(x)
rot = self.rot_regression(x)
xyz = self.xyz_regression(x)
return rot, xyz
return convert(
rot, xyz, convention=self.convention, parameterization=self.parameterization
)

# %% ../notebooks/api/08_registration.ipynb 7
N_ANGULAR_COMPONENTS = {
Expand Down
4 changes: 3 additions & 1 deletion notebooks/api/08_registration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@
" x = self.backbone(x)\n",
" rot = self.rot_regression(x)\n",
" xyz = self.xyz_regression(x)\n",
" return rot, xyz"
" return convert(\n",
" rot, xyz, convention=self.convention, parameterization=self.parameterization\n",
" )"
]
},
{
Expand Down

0 comments on commit f9ff7dc

Please sign in to comment.