MCPcopy Index your code
hub / github.com/facebookresearch/SlowFast / get

Method get

slowfast/visualization/async_predictor.py:260–269  ·  view source on GitHub ↗

Get the visualized clips if any.

(self)

Source from the content-addressed store, hash-verified

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

Callers 1

run_demoFunction · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected