Skip to content

Commit

Permalink
removed unecesary functions in bytetracker
Browse files Browse the repository at this point in the history
  • Loading branch information
nmathieufact committed Mar 27, 2024
1 parent 773861a commit 2118385
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions bytetracker/byte_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,23 +138,6 @@ def tlwh_to_xyah(tlwh):
ret[2] /= ret[3]
return ret

def to_xyah(self):
return self.tlwh_to_xyah(self.tlwh)

@staticmethod
# @jit(nopython=True)
def tlbr_to_tlwh(tlbr):
ret = np.asarray(tlbr).copy()
ret[2:] -= ret[:2]
return ret

@staticmethod
# @jit(nopython=True)
def tlwh_to_tlbr(tlwh):
ret = np.asarray(tlwh).copy()
ret[2:] += ret[:2]
return ret

def __repr__(self):
return "OT_{}_({}-{})".format(self.track_id, self.start_frame, self.end_frame)

Expand Down

0 comments on commit 2118385

Please sign in to comment.