Skip to content

Commit

Permalink
fix post processing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenc0221 committed Aug 18, 2020
1 parent 9c25646 commit 5b3dd8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def find_instance_center(ctr_hmp, threshold=0.1, nms_kernel=3, top_k=None):
return ctr_all
else:
# find top k centers.
top_k_scores, _ = torch.topk(torch.flatten(ctr_all), top_k)
top_k_scores, _ = torch.topk(torch.flatten(ctr_hmp), top_k)
return torch.nonzero(ctr_hmp > top_k_scores[-1])


Expand Down

0 comments on commit 5b3dd8c

Please sign in to comment.