adjust comma two model timing thresholds after bigmodel

old-commit-hash: c98d9791f0
taco
Adeeb Shihadeh 3 years ago
parent 5517800a59
commit 4ab3f4c5de
  1. 7
      selfdrive/test/test_onroad.py

@ -227,7 +227,12 @@ class TestOnroad(unittest.TestCase):
result += "----------------- Model Timing -----------------\n"
result += "------------------------------------------------\n"
# TODO: this went up when plannerd cpu usage increased, why?
cfgs = [("modelV2", 0.038, 0.036), ("driverState", 0.028, 0.026)]
cfgs = [("driverState", 0.028, 0.026)]
if EON:
cfgs += [("modelV2", 0.045, 0.04)]
else:
cfgs += [("modelV2", 0.038, 0.036), ("driverState", 0.028, 0.026)]
for (s, instant_max, avg_max) in cfgs:
ts = [getattr(getattr(m, s), "modelExecutionTime") for m in self.lr if m.which() == s]
self.assertLess(min(ts), instant_max, f"high '{s}' execution time: {min(ts)}")

Loading…
Cancel
Save