Skip to content

Commit

Permalink
Update siamcar_tracker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
twotwo2 authored Jun 18, 2020
1 parent f54c99d commit cf6f05e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysot/tracker/siamcar_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def accurate_location(self, max_r_up, max_c_up):
disp = p_cool_s - (np.array([255, 255]) - 1.) / 2.
return disp

def corse_location(self, hp_cls_up, score_up, scale_score, lrtbs):
def coarse_location(self, hp_cls_up, score_up, scale_score, lrtbs):
upsize = (cfg.TRACK.SCORE_SIZE - 1) * cfg.TRACK.STRIDE + 1
max_r_up_hp, max_c_up_hp = np.unravel_index(hp_cls_up.argmax(), hp_cls_up.shape)
max_r = int(round(max_r_up_hp / scale_score))
Expand All @@ -95,7 +95,7 @@ def corse_location(self, hp_cls_up, score_up, scale_score, lrtbs):

def getCenter(self,hp_cls_up,score_up,scale_score,lrtbs):
# corse location
score_up = self.corse_location(hp_cls_up,score_up,scale_score,lrtbs)
score_up = self.coarse_location(hp_cls_up,score_up,scale_score,lrtbs)
# accurate location
max_r_up, max_c_up = np.unravel_index(score_up.argmax(), score_up.shape)
disp = self.accurate_location(max_r_up,max_c_up)
Expand Down

0 comments on commit cf6f05e

Please sign in to comment.