From 0f475dfae805910c7bd4bfb449131cbc42bc5d8f Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Mon, 17 Mar 2025 23:04:11 -0400 Subject: [PATCH] move it --- sunnypilot/selfdrive/controls/lib/nnlc/helpers.py | 3 --- sunnypilot/selfdrive/controls/lib/nnlc/model.py | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sunnypilot/selfdrive/controls/lib/nnlc/helpers.py b/sunnypilot/selfdrive/controls/lib/nnlc/helpers.py index 44ec1300e9..5f68a0a28e 100644 --- a/sunnypilot/selfdrive/controls/lib/nnlc/helpers.py +++ b/sunnypilot/selfdrive/controls/lib/nnlc/helpers.py @@ -10,9 +10,6 @@ from difflib import SequenceMatcher from opendbc.car import structs 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, "sunnypilot", "neural_network_data", "neural_network_lateral_control") diff --git a/sunnypilot/selfdrive/controls/lib/nnlc/model.py b/sunnypilot/selfdrive/controls/lib/nnlc/model.py index 75492b7b62..1e527c7370 100644 --- a/sunnypilot/selfdrive/controls/lib/nnlc/model.py +++ b/sunnypilot/selfdrive/controls/lib/nnlc/model.py @@ -7,7 +7,8 @@ See the LICENSE.md file in the root directory for more details. from json import load import numpy as np -from openpilot.sunnypilot.selfdrive.controls.lib.nnlc.helpers import ACTIVATION_FUNCTION_NAMES +# dict used to rename activation functions whose names aren't valid python identifiers +ACTIVATION_FUNCTION_NAMES = {'σ': 'sigmoid'} class NNTorqueModel: