INNER CODE UNIT · Python
max_frame
xinshuoweng/AB3DMOT · main.py:51
min_frame, max_frame = int(frame_list[0]), int(frame_list[-1])
for frame in range(min_frame, max_frame + 1):
# add an additional frame here to deal with the case that the last frame, although no detection
# but should output an N x 0 affinity for consistency
# logging
print_str = 'processing %s %s: %d/%d, %d/%d \r' % (result_sha, seq_name, seq_count, \
len(seq_eval), frame, max_frame)
sys.stdout.write(print_str)
sys.stdout.flush()
# tracking by detection
dets_frame = get_frame_det(seq_dets, frame)
since = time.time()
results, affi = tracker.track(dets_frame, frame, seq_name)
total_time += time.time() - since
# saving affinity matrix, between the past frame and current frame