py123d_detection.torch.visualize¶
Rendering a run’s predictions: from above, and on the images they came from.
Both views read a predictions file written by py123det-eval, so neither needs a checkpoint or a
GPU. The bird’s-eye view needs nothing else at all; drawing on camera images needs the dataset the
run was scored on, because the file holds boxes and not pixels.
For an interactive view there is py123d_detection.torch.visualize.viewer and the
py123det-view command, which add the run’s predictions to py123d’s own Viser viewer as one
more element rather than writing a second viewer. It is deliberately not imported here: it pulls
viser and trimesh, which rendering a PNG has no use for.
Needs the viz extra (matplotlib; cv2 comes with torch and images).
Modules
A bird's-eye view of one frame: what the model found, over what was there. |
|
Box corners, and the edges that join them. |
|
Boxes drawn onto the camera images they were predicted from. |
|
|
|
One frame as two panels: the front camera, and the bird's-eye view beside it. |
|
Predictions as py123d's own detection type, so py123d's viewer can draw them. |
|
|