From cc65efe7b0f62bec574228369cc7545cc9f75e6d Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Mon, 21 Feb 2022 11:56:20 +0100 Subject: [PATCH] ui.py: fix model lead plotting old-commit-hash: efc9084409f61afb8da753353f25d336f51c2163 --- tools/replay/lib/ui_helpers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/replay/lib/ui_helpers.py b/tools/replay/lib/ui_helpers.py index 7410c107c4..33a1e77e05 100644 --- a/tools/replay/lib/ui_helpers.py +++ b/tools/replay/lib/ui_helpers.py @@ -185,12 +185,12 @@ def plot_model(m, img, calibration, top_down): if calibration is None or top_down is None: return - for lead in m.leads: + for lead in m.leadsV3: if lead.prob < 0.5: continue - x, y, _, _ = lead.xyva - x_std, _, _, _ = lead.xyvaStd + x, y = lead.x[0], lead.y[0] + x_std = lead.xStd[0] x -= RADAR_TO_CAMERA _, py_top = to_topdown_pt(x + x_std, y)