INNER CODE UNIT · Python
device
yihong1120/Construction-Hazard-Detection · main.py:606
device = devices[worker_index % len(devices)]
self.yolo_worker_processes[worker_index] = self._start_yolo_worker(
worker_index,
request_queue,
device,
)
self.logger.warning(
'[YOLO-Worker] process %s exited; restarted with existing '
'IPC broker on %s',
worker_index,
device,
)
def _start_yolo_worker(
self,
worker_index: int,
request_queue: Any,
device: str,