Skip to content

Commit

Permalink
Update supervision.py
Browse files Browse the repository at this point in the history
typo in if condition for scale1 check
  • Loading branch information
ashutoshsingh0223 authored Aug 2, 2023
1 parent c0546af commit db08bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loftr/utils/supervision.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def spvs_coarse(data, config):
_, _, H1, W1 = data['image1'].shape
scale = config['LOFTR']['RESOLUTION'][0]
scale0 = scale * data['scale0'][:, None] if 'scale0' in data else scale
scale1 = scale * data['scale1'][:, None] if 'scale0' in data else scale
scale1 = scale * data['scale1'][:, None] if 'scale1' in data else scale
h0, w0, h1, w1 = map(lambda x: x // scale, [H0, W0, H1, W1])

# 2. warp grids
Expand Down

0 comments on commit db08bc9

Please sign in to comment.