Skip to content

Commit

Permalink
fix kpt scaling when image size exceeds max_dim
Browse files Browse the repository at this point in the history
  • Loading branch information
vdvchen authored Sep 19, 2020
1 parent 4ca6cf4 commit d6bc1b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/feat_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _run(self, data):
idxs = np.negative(scores).argsort()[0:self.config['config']['kpt_n']]

descs = descs[idxs]
kpts = kpts[idxs] * np.array([W / data_size[1], H / data_size[0]], dtype=np.float32)
kpts = kpts[idxs]
scores = scores[idxs]
return descs, kpts, scores

Expand Down

0 comments on commit d6bc1b4

Please sign in to comment.