Skip to content

Commit

Permalink
kornia fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eps696 committed Oct 28, 2021
1 parent 6830303 commit 22201e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def inner(image_t):
center[..., 1] = (image_t.shape[2] - 1) / 2
try:
M = kornia.geometry.transform.get_rotation_matrix2d(center, angle, scale).to(device)
rotated_image = kornia.geometry.transform..warp_affine(image_t.float(), M, dsize=(h, w))
rotated_image = kornia.geometry.transform.warp_affine(image_t.float(), M, dsize=(h, w))
except:
M = kornia.get_rotation_matrix2d(center, angle, scale).to(device)
rotated_image = kornia.warp_affine(image_t.float(), M, dsize=(h, w))
Expand Down

0 comments on commit 22201e8

Please sign in to comment.