Skip to content

Commit

Permalink
fix cuda bug in undistort_image
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakan Ardo committed Dec 5, 2024
1 parent 64cdec5 commit 9339821
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sskit/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def project_on_ground(camera_matrix, dist_poly, image, width=70, height=120, res

def undistort_image(dist_poly, image, zoom=1):
h, w = image.shape[-2:]
grid = (grid2d(w, h) - torch.tensor([w/2, h/2])) / w / zoom
grid = (grid2d(w, h) - torch.tensor([w/2, h/2])).to(image.device) / w / zoom
dgrid = distort(dist_poly, grid)
return sample_image(image, dgrid[None])

Expand Down
2 changes: 1 addition & 1 deletion sskit/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version_info__ = (0, 2, 0)
__version_info__ = (0, 2, 1)
__version__ = '.'.join(str(i) for i in __version_info__)

0 comments on commit 9339821

Please sign in to comment.