mirror of
https://github.com/davrot/gevi.git
synced 2025-06-03 22:00:02 +02:00
Add files via upload
This commit is contained in:
parent
cc7de6dbbb
commit
71c2784437
3 changed files with 97 additions and 94 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue