Add files via upload

This commit is contained in:
David Rotermund 2023-07-10 13:06:54 +02:00 committed by GitHub
parent cc7de6dbbb
commit 71c2784437
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 97 additions and 94 deletions

View file

@ -762,7 +762,7 @@ class ImageAlignment(torch.nn.Module):
bgval: torch.Tensor | None = None,
invert=False,
) -> torch.Tensor:
if invert is True:
if invert:
if scale is not None:
scale = 1.0 / scale
if angle is not None:
@ -927,7 +927,7 @@ class ImageAlignment(torch.nn.Module):
if succ2[pos] > succ[pos]:
pick_rotated = True
if pick_rotated is True:
if pick_rotated:
tvec[pos, :] = tvec2[pos, :]
succ[pos] = succ2[pos]
angle[pos] += 180