Skip to content

Commit

Permalink
use select_fields() to optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
brimoor committed May 8, 2024
1 parent 75c9f77 commit 303c416
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fiftyone/utils/tracking/deepsort.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def track(
sample_collection, _in_field, fo.Detections
)

for sample in sample_collection.iter_samples(
autosave=True, progress=progress
):
view = sample_collection.select_fields(_in_field)

for sample in view.iter_samples(autosave=True, progress=progress):
try:
DeepSort.track_sample(
sample,
Expand Down

0 comments on commit 303c416

Please sign in to comment.