Skip to content

Commit

Permalink
Merge pull request #54 from ibrahim-601/master
Browse files Browse the repository at this point in the history
Fixes #53.
  • Loading branch information
zhou13 authored Sep 27, 2021
2 parents 88f281a + 6c0590b commit e07e48b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lcnn/models/line_vectorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def sample_lines(self, meta, jmap, joff, mode):

# index: [N_TYPE, K]
score, index = torch.topk(jmap, k=K)
y = (index / 128).float() + torch.gather(joff[:, 0], 1, index) + 0.5
y = (index // 128).float() + torch.gather(joff[:, 0], 1, index) + 0.5
x = (index % 128).float() + torch.gather(joff[:, 1], 1, index) + 0.5

# xy: [N_TYPE, K, 2]
Expand Down

0 comments on commit e07e48b

Please sign in to comment.