Skip to content

Commit

Permalink
MOT wrapper does not work at the moment.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukacu committed May 12, 2023
1 parent 60d87d8 commit df313f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vot/experiment/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def _get_runtime(self, tracker: "Tracker", sequence: "Sequence", multiobject=Fal

if multiobject:
if not runtime.multiobject:
runtime = MultiObjectTrackerRuntime(runtime)
raise TrackerException("Tracker {} does not support multi-object experiments".format(tracker.identifier))
#runtime = MultiObjectTrackerRuntime(runtime)
else:
runtime = SingleObjectTrackerRuntime(runtime)

Expand Down
1 change: 1 addition & 0 deletions vot/tracker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ def update(self, frame: Frame, new: Objects = None, properties: dict = None) ->
return status

class MultiObjectTrackerRuntime(TrackerRuntime):
""" This is a wrapper for tracker runtimes that do not support multi object tracking. It is still work in progress."""

def __init__(self, runtime: TrackerRuntime):
super().__init__(runtime.tracker)
Expand Down

0 comments on commit df313f3

Please sign in to comment.