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

Method get

slowfast/visualization/async_predictor.py:264–273  ·  view source on GitHub ↗

Get the visualized clips if any.

(self)

Source from the content-addressed store, hash-verified

262 self.model.put(task)
263
264 def get(self):
265 """
266 Get the visualized clips if any.
267 """
268 try:
269 task = self.async_vis.get()
270 except (queue.Empty, IndexError):
271 raise IndexError("Results are not available yet.")
272
273 return task
274
275
276def draw_predictions(task, video_vis):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected