INNER CODE UNIT · Python

_yolo_worker_topology

yihong1120/Construction-Hazard-Detection · main.py:519

    def _yolo_worker_topology(
        self,
        configs: list[StreamConfig] | None,
    ) -> tuple[int, dict[str, int], str | None]:
        """Build stable same-model camera shards for TensorRT workers."""
        if not configs:
            return 0, {}, None
        default_cameras_per_engine = max(
            1,
            _positive_int_env(
                'YOLO_WORKER_CAMERAS_PER_ENGINE',
                default=3,
            ),
        )
        cameras_per_engine_by_model = _model_camera_limits_env()

        grouped_configs: dict[str, list[StreamConfig]] = {}
        for cfg in configs:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…