f9fcc7adab
date: 2026-06-28T09:48:35 master commit: da6313dbe95b3f24bb5d8018b0e5f950f5823ca7
16 lines
401 B
Python
16 lines
401 B
Python
import os
|
|
import numpy as np
|
|
from openpilot.system.hardware.hw import Paths
|
|
from cereal import custom
|
|
|
|
# Type definitions for clarity
|
|
NumpyDict = dict[str, np.ndarray]
|
|
ShapeDict = dict[str, tuple[int, ...]]
|
|
SliceDict = dict[str, slice]
|
|
|
|
ModelType = custom.ModelManagerSP.Model.Type
|
|
Model = custom.ModelManagerSP.Model
|
|
|
|
SEND_RAW_PRED = os.getenv('SEND_RAW_PRED')
|
|
CUSTOM_MODEL_PATH = Paths.model_root()
|