diff --git a/openpilot/sunnypilot/modeld_v2/modeld.py b/openpilot/sunnypilot/modeld_v2/modeld.py index a629405ea8..39b67ff422 100755 --- a/openpilot/sunnypilot/modeld_v2/modeld.py +++ b/openpilot/sunnypilot/modeld_v2/modeld.py @@ -353,7 +353,8 @@ def main(demo=False): model = None if USBGPU: import threading - def load(): nonlocal model; model = ModelState(cam_w=vipc_client_main.width, cam_h=vipc_client_main.height) + def load(): nonlocal model + model = ModelState(cam_w=vipc_client_main.width, cam_h=vipc_client_main.height) t = threading.Thread(target=load, daemon=True) t.start() t.join(60) diff --git a/openpilot/sunnypilot/modeld_v2/tests/conftest.py b/openpilot/sunnypilot/modeld_v2/tests/conftest.py index fc151eeac5..cbdf9ad826 100644 --- a/openpilot/sunnypilot/modeld_v2/tests/conftest.py +++ b/openpilot/sunnypilot/modeld_v2/tests/conftest.py @@ -4,8 +4,6 @@ Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. This file is part of sunnypilot and is licensed under the MIT License. See the LICENSE.md file in the root directory for more details. """ - -import pickle import pytest import openpilot.sunnypilot.models.helpers as helpers