From 7768eb7a6c03434723dcc7ceedc672ee82de6770 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sun, 16 Mar 2025 05:29:56 -0400 Subject: [PATCH] update path to submodule --- sunnypilot/selfdrive/controls/lib/nnlc/helpers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sunnypilot/selfdrive/controls/lib/nnlc/helpers.py b/sunnypilot/selfdrive/controls/lib/nnlc/helpers.py index 4e6b65cb9b..24532a3cc9 100644 --- a/sunnypilot/selfdrive/controls/lib/nnlc/helpers.py +++ b/sunnypilot/selfdrive/controls/lib/nnlc/helpers.py @@ -32,7 +32,7 @@ from openpilot.common.basedir import BASEDIR # dict used to rename activation functions whose names aren't valid python identifiers ACTIVATION_FUNCTION_NAMES = {'σ': 'sigmoid'} -TORQUE_NN_MODEL_PATH = os.path.join(BASEDIR, 'lat_models') +TORQUE_NN_MODEL_PATH = os.path.join(BASEDIR, "sunnypilot", "neural_network_data", "neural_network_lateral_control") def similarity(s1: str, s2: str) -> float: @@ -72,3 +72,6 @@ def get_nn_model_path(CP: structs.CarParams) -> tuple[str | None, str, bool]: fuzzy_fingerprint = max_similarity < 0.99 return model_path, _model_name, fuzzy_fingerprint + +if __name__ == "__main__": + print(TORQUE_NN_MODEL_PATH)