Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion SegTracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ def find_new_objs(self, track_mask, seg_mask):
or obj_num > self.max_obj_num:
new_obj_mask[new_obj_mask==idx] = 0
else:
new_obj_mask[new_obj_mask==idx] = obj_num
obj_num += 1
new_obj_mask[new_obj_mask==idx] = obj_num

return new_obj_mask

def restart_tracker(self):
Expand Down