Skip to content

Commit c759b44

Browse files
Fix bug that prevented tracking until the last frame
1 parent aa414a8 commit c759b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micro_sam/sam_annotator/annotator_tracking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _update_motion_model(seg, t, t0, motion_model):
142142
break
143143

144144
# stop if we are at the last slce
145-
if t == seg.shape[0] - 1:
145+
if t == seg.shape[0]:
146146
break
147147

148148
# stop if we have a division

0 commit comments

Comments
 (0)