ui.py: fix model lead plotting

old-commit-hash: efc9084409
taco
Willem Melching 3 years ago
parent f48147b333
commit cc65efe7b0
  1. 6
      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: if calibration is None or top_down is None:
return return
for lead in m.leads: for lead in m.leadsV3:
if lead.prob < 0.5: if lead.prob < 0.5:
continue continue
x, y, _, _ = lead.xyva x, y = lead.x[0], lead.y[0]
x_std, _, _, _ = lead.xyvaStd x_std = lead.xStd[0]
x -= RADAR_TO_CAMERA x -= RADAR_TO_CAMERA
_, py_top = to_topdown_pt(x + x_std, y) _, py_top = to_topdown_pt(x + x_std, y)

Loading…
Cancel
Save