Model switcher

Added model selector to swap between several different models on the fly.
This commit is contained in:
FrogAi
2024-01-12 22:39:30 -07:00
parent 46b0b80f47
commit ae99774cf3
14 changed files with 111 additions and 2 deletions

View File

@@ -199,6 +199,9 @@ def main() -> None:
if os.path.exists("/data/openpilot/prebuilt"):
os.remove("/data/openpilot/prebuilt")
# Set the desired model on boot
subprocess.run(["python3", "/data/openpilot/selfdrive/frogpilot/functions/model_switcher.py"])
# Start UI early so prepare can happen in the background
if not prepare_only:
managed_processes['ui'].start()