MCPcopy Create free account
hub / github.com/PeizeSun/SparseR-CNN / run

Method run

demo_d2/predictor.py:149–158  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

147 super().__init__()
148
149 def run(self):
150 predictor = DefaultPredictor(self.cfg)
151
152 while True:
153 task = self.task_queue.get()
154 if isinstance(task, AsyncPredictor._StopToken):
155 break
156 idx, data = task
157 result = predictor(data)
158 self.result_queue.put((idx, result))
159
160 def __init__(self, cfg, num_gpus: int = 1):
161 """

Callers

nothing calls this directly

Calls 3

DefaultPredictorClass · 0.90
getMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected