show big model failed (#38487)

This commit is contained in:
Daniel Koepping
2026-07-29 10:22:32 -07:00
committed by GitHub
parent e4d152e1a7
commit 3ec980477d
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -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)
+4 -3
View File
@@ -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: