diff --git a/openpilot/selfdrive/modeld/modeld.py b/openpilot/selfdrive/modeld/modeld.py index 1dc3572d79..02483d7428 100755 --- a/openpilot/selfdrive/modeld/modeld.py +++ b/openpilot/selfdrive/modeld/modeld.py @@ -151,7 +151,7 @@ def main(demo=False): USBGPU = usbgpu_present() and usbgpu_compiled() params = Params() params.put_bool("UsbGpuLoading", USBGPU) - params.put_bool("UsbGpuActive", False) + params.remove("UsbGpuActive") config_realtime_process(7, 54) diff --git a/openpilot/selfdrive/selfdrived/selfdrived.py b/openpilot/selfdrive/selfdrived/selfdrived.py index f4e5a5ba2e..0912d52082 100755 --- a/openpilot/selfdrive/selfdrived/selfdrived.py +++ b/openpilot/selfdrive/selfdrived/selfdrived.py @@ -160,14 +160,15 @@ class SelfdriveD: loading = self.params.get_bool("UsbGpuLoading") if self.big_model_loading and not loading: self.big_model_ready_t = time.monotonic() - if not self.params.get_bool("UsbGpuActive"): - self.events.add(EventName.bigModelFailed) self.big_model_loading = loading if self.big_model_loading: self.events.add(EventName.bigModelLoading) + big_active = self.params.get("UsbGpuActive") + if big_active is False: + self.events.add(EventName.bigModelFailed) + # soft disable if the big model fails - big_active = self.params.get_bool("UsbGpuActive") if big_active: self.big_model_active = True if self.enabled and self.big_model_active and not big_active: