Model runtime fix

Select the model runtime before validating device artifacts
This commit is contained in:
whoisdomi
2026-10-24 18:02:09 -05:00
parent 2251e13068
commit e97e07e1b3
+2
View File
@@ -82,6 +82,8 @@ def validate_camera(artifact: Path, version: str, camera: tuple[int, int], steps
gpu: bool, max_p95_ms: float | None = None, runner_factory=None, action_update=None, initial_action=None) -> dict:
device_frames = runner_factory is None
if runner_factory is None:
from openpilot.starpilot.models.runtime_bridge.runtime import prepare as prepare_model_runtime
prepare_model_runtime('driving')
from openpilot.starpilot.models.runner import CatalogModelState, action_from_outputs
from openpilot.cereal import log
runner_factory, action_update = CatalogModelState, action_from_outputs