s6.app.keypoint_runtimeΒΆ
Run a minimal s6.nn.keypoints.KeypointDetector smoke test.
Loads an ONNX or TensorRT keypoint model, prepares either a provided grayscale image or a synthetic frame, runs one inference, and prints a compact runtime summary. This is intended as a quick local check for model loading and runtime selection.
- s6.app.keypoint_runtime.parse_args(argv=None)
Parse CLI arguments for the keypoint runtime smoke test.
- Parameters:
argv (list[str] | None, optional) β Explicit argument list. Uses
sys.argvwhen omitted.- Returns:
Parsed arguments.
- Return type:
argparse.Namespace
- s6.app.keypoint_runtime.load_image(args)
Load a test image or create a synthetic grayscale frame.
- Parameters:
args (argparse.Namespace) β Parsed CLI arguments.
- Returns:
Grayscale test image of shape
(H, W)and dtypeuint8.- Return type:
ndarray
- Raises:
FileNotFoundError β Raised when
args.imageis provided but OpenCV cannot read it.
- s6.app.keypoint_runtime.main(argv=None)
Run the smoke test and print a short execution summary.