s6.app.data.visualizeΒΆ

Preview dataset frames with annotations.

Supports two formats: - InstrumentTrackingFrame with projections and optional boxes. - YOLO layout under images/ and labels/ with .txt labels.

Examples

>>> python -m s6.app.data.visualize ./dataset_dir
s6.app.data.visualize.load_instrument_frames(ann_path: Path)

Load InstrumentTrackingFrame entries from a JSONL file.

s6.app.data.visualize.load_yolo_frames(dataset_dir: Path)

Load YOLO frames from an images/train tree with labels.

s6.app.data.visualize.draw_instrument_frame(img, frame: InstrumentTrackingFrame)

Draw instrument projections or boxes onto an image inplace.

s6.app.data.visualize.draw_yolo_frame(img, frame: YoloFrame)

Draw YOLO-format boxes (xc,yc,w,h normalized) on an image inplace.

s6.app.data.visualize.main()

Open an interactive viewer to step through annotated frames.