Skip to content

Commit

Permalink
Merge pull request #1371 from mikel-brostrom/fix-deque-indexing
Browse files Browse the repository at this point in the history
fix deque indexing
  • Loading branch information
mikel-brostrom authored Mar 22, 2024
2 parents 80e20fc + 10c26d3 commit 4917696
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion boxmot/motion/kalman_filters/deepocsort_kf.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def apply_affine_correction(self, m, t, new_kf):

def unfreeze(self):
if self.attr_saved is not None:
new_history = deepcopy(self.history_obs)
new_history = deepcopy(list(self.history_obs))
self.__dict__ = self.attr_saved
# self.history_obs = new_history
self.history_obs = deque(list(self.history_obs)[:-1])
Expand Down
2 changes: 1 addition & 1 deletion boxmot/motion/kalman_filters/hybridsort_kf.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def freeze(self):

def unfreeze(self):
if self.attr_saved is not None:
new_history = deepcopy(self.history_obs)
new_history = deepcopy(list(self.history_obs))
self.__dict__ = self.attr_saved
# self.history_obs = new_history
self.history_obs = deque(list(self.history_obs)[:-1])
Expand Down
2 changes: 1 addition & 1 deletion boxmot/motion/kalman_filters/ocsort_kf.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def freeze(self):

def unfreeze(self):
if self.attr_saved is not None:
new_history = deepcopy(self.history_obs)
new_history = deepcopy(list(self.history_obs))
self.__dict__ = self.attr_saved
# self.history_obs = new_history
self.history_obs = deque(list(self.history_obs)[:-1])
Expand Down

0 comments on commit 4917696

Please sign in to comment.