Skip to content

Commit

Permalink
add img_hw arg to Tracker.track
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze committed Oct 25, 2024
1 parent 182c6bf commit 3b7a75b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions sleap/nn/tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ def run_tracker(
def track(
self,
untracked_instances: List[InstanceType],
img_hw: Tuple[int],
img: Optional[np.ndarray] = None,
t: int = None,
):
Expand Down Expand Up @@ -1561,6 +1562,7 @@ def cull_function(inst_list):
def track(
self,
untracked_instances: List[InstanceType],
img_hw: Tuple[int],
img: Optional[np.ndarray] = None,
t: int = None,
) -> List[InstanceType]:
Expand Down
1 change: 0 additions & 1 deletion tests/nn/test_tracker_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
FrameMatches,
greedy_matching,
)
from sleap.io.dataset import Labels

from sleap.instance import PredictedInstance
from sleap.skeleton import Skeleton
Expand Down
3 changes: 1 addition & 2 deletions tests/nn/test_tracking_integration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import inspect
import operator
import os
import time
Expand All @@ -7,7 +6,7 @@
import sleap
from sleap.nn.inference import main as inference_cli
import sleap.nn.tracker.components
from sleap.io.dataset import Labels, LabeledFrame
from sleap.io.dataset import Labels


def test_simple_tracker(tmpdir, centered_pair_predictions_slp_path):
Expand Down

0 comments on commit 3b7a75b

Please sign in to comment.