Skip to content

Commit

Permalink
Merge pull request #121 from lparolari/fix/tracker-exception
Browse files Browse the repository at this point in the history
Fixing missing tracker while raising tracker exception
  • Loading branch information
lukacu authored Jun 11, 2024
2 parents 0abc8e5 + f10e12e commit c26c38b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vot/experiment/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def _get_runtime(self, tracker: "Tracker", sequence: "Sequence", multiobject=Fal

if multiobject:
if not runtime.multiobject:
raise TrackerException("Tracker {} does not support multi-object experiments".format(tracker.identifier))
raise TrackerException("Tracker {} does not support multi-object experiments".format(tracker.identifier), tracker=tracker)
#runtime = MultiObjectTrackerRuntime(runtime)
else:
runtime = SingleObjectTrackerRuntime(runtime)
Expand Down
2 changes: 1 addition & 1 deletion vot/tracker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ def update(self, frame: Frame, new: Objects = None, properties: dict = None) ->
Tuple[Objects, float] -- The updated objects and the time it took to update the tracker.
"""

if not new is None: raise TrackerException("Only supports single object tracking")
if not new is None: raise TrackerException("Only supports single object tracking", tracker=self.tracker)
status = self._runtime.update(frame, new, properties)
if isinstance(status, list): status = status[0]
return status
Expand Down

0 comments on commit c26c38b

Please sign in to comment.