Skip to content

Fetch multiple frames before reporting predictions #9

@raghavgoyal14

Description

@raghavgoyal14

Hi,

In the vot.py, can we fetch multiple frames and make predictions (in a clip-wise fashion)?

For instance, modifying this piece of code to account for clip-wise inference

while True:

    image = self._handle.frame()
    if not image:
        break

    status = [tracker(image) for tracker in trackers]

    self._handle.report(status)

results in timeout error (Tracker interrupted, it did not reply in 30 seconds)

Timeout reached, terminating tracker
@@TRAX:quit 
Exception ignored in: <function VOT.__del__ at 0x7f4b50661c10>
Traceback (most recent call last):
  File "/h/rgoyal/code/epi_mem_vos_chris/trackers/vot.py", line 170, in __del__
  File "/h/rgoyal/code/epi_mem_vos_chris/trackers/vot.py", line 166, in quit
  File "/h/rgoyal/miniconda3/envs/epi_mem_vos_1.12/lib/python3.8/site-packages/trax/server.py", line 162, in quit
ImportError: sys.meta_path is None, Python is likely shutting down

Do you happen to know how I go about resolving this issue?

cc @davidhalladay

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions