This commit is contained in:
Jason Wen
2025-03-17 23:04:11 -04:00
parent 9d8460f85e
commit 0f475dfae8
2 changed files with 2 additions and 4 deletions
@@ -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")
@@ -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: