MCPcopy Create free account
hub / github.com/OpenGVLab/UniFormerV2 / display

Method display

slowfast/visualization/demo_loader.py:325–333  ·  view source on GitHub ↗

Add the visualized task to the write queue for display/write to outputfile. Args: task (TaskInfo object): task object that contain the necessary information for prediction visualization. (e.g. visualized frames.)

(self, task)

Source from the content-addressed store, hash-verified

323 self.output_file.write(frame)
324
325 def display(self, task):
326 """
327 Add the visualized task to the write queue for display/write to outputfile.
328 Args:
329 task (TaskInfo object): task object that contain
330 the necessary information for prediction visualization. (e.g. visualized frames.)
331 """
332 with self.write_lock:
333 self.write_queue[task.id] = (True, task)
334
335 def start(self):
336 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected