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

Method put

slowfast/visualization/async_predictor.py:254–262  ·  view source on GitHub ↗

Put task into task queue for prediction and visualization. Args: task (TaskInfo object): task object that contain the necessary information for action prediction. (e.g. frames)

(self, task)

Source from the content-addressed store, hash-verified

252 self.async_vis = async_vis
253
254 def put(self, task):
255 """
256 Put task into task queue for prediction and visualization.
257 Args:
258 task (TaskInfo object): task object that contain
259 the necessary information for action prediction. (e.g. frames)
260 """
261 self.async_vis.get_indices_ls.append(task.id)
262 self.model.put(task)
263
264 def get(self):
265 """

Callers

nothing calls this directly

Calls 1

putMethod · 0.45

Tested by

no test coverage detected