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

Method put

slowfast/visualization/async_predictor.py:183–191  ·  view source on GitHub ↗

Add the new task to task queue. Args: task (TaskInfo object): task object that contain the necessary information for action prediction. (e.g. frames, boxes, predictions)

(self, task)

Source from the content-addressed store, hash-verified

181 atexit.register(self.shutdown)
182
183 def put(self, task):
184 """
185 Add the new task to task queue.
186 Args:
187 task (TaskInfo object): task object that contain
188 the necessary information for action prediction. (e.g. frames, boxes, predictions)
189 """
190 self.put_id += 1
191 self.task_queue.put(task)
192
193 def get(self):
194 """

Callers 9

__call__Method · 0.95
runFunction · 0.45
runMethod · 0.45
putMethod · 0.45
shutdownMethod · 0.45
runMethod · 0.45
shutdownMethod · 0.45
putMethod · 0.45
put_fnMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected