
Letterboxes each Image, normalizes it when the network takes floats, and runs it through a Triton-hosted model, projecting its class scores onto the connected output arm: the top class as Classification, String or UInt64, the ranked [Classification] or [DetectedClass], or the scores.
Classify frames from a file source against a served Triton model and publish the ranked classes as JSON.
Classify a video stream and overlay the predicted label on each frame for visual review.
model, its element type decides what is sent, and its declared rank decides whether a batch dimension is sent. Bind color_model and pad_type, which no longer have a default. Rebind model_height, model_width and num_classes as Just a value only where model declares that dimension dynamic, and as Nothing otherwise, and change_channel_order as Just a layout only where the declared input shape fits more than one, and as Nothing otherwise. Bind output_classes to the exact class output name. Replace a partial or empty labels list with a complete list, or bind Nothing to use class ids for every label. A model file whose attached configuration still sets input_image, int_input_type or add_batch_layer, a bare number for one of the three counts, or a bare layout name, is refused when it is bound. Existing configurations without these changes cannot deploy or fail startup with this version.output_classes of model supplies the full class vector; any other output is ignored. Every dimension it declares is a fixed 1, a dynamic -1 at any position, or the one class dimension, and the class count is that dimension's length (1 when every dimension is a fixed 1). When no fixed dimension is longer than 1 and one is dynamic, the count is num_classes, and startup fails naming the shape when it is Nothing. A bound num_classes that differs from a declared count fails startup. Every response must have concrete dimensions, all 1 except one class dimension of the count, or it stops the worker. A supplied labels list must have exactly the class count; Nothing uses stringified ids.change_channel_order set to height_width with color_model set to Image.RGB or Image.BGR; it names both parameters and their values. This layout requires Image.GRAY.Classification, String and UInt64 carry the top class (label, class id, score) of the full class vector and ignore threshold and top_k. The list arms [Classification], ([String], [Double]) (parallel index-aligned label and score arrays) and [DetectedClass] carry the ranked classes after threshold and top_k, and are empty when no class passes. [Double] is the class-ordered vector (index = class id, one entry per class), not ranked, thresholded or capped. The class count is read from the declared shape of output_classes, or from num_classes when that shape leaves it dynamic. Each class uses the name at its id in labels; Nothing uses the stringified class id. A supplied list with a different length fails startup.pad_type and pad_color, channel order, mean/std, rescale, the size given for a dynamic dimension, and whether outputs are logits) must match exactly what the served model was trained with, or the predictions are biased or meaningless even though the graph runs and nothing raises. The only resize is an aspect-preserving letterbox: each frame is scaled up or down until it fits the network input, then padded; a network trained on stretched or cropped frames gets silently worse scores.model declares. It must take exactly one input, of element type FP32 (normalized floats are sent) or UINT8 (8-bit pixels are sent), or startup fails naming the type. Its layout is the one of channels_height_width, height_width_channels and height_width its declared shape fits: rank 3 with the first or last dimension equal to the channel count of color_model (3 for RGB or BGR, 1 for GRAY) or -1, or rank 2 for height_width with Image.GRAY only, each optionally after a leading batch dimension of 1 or -1, which is then sent as 1 (with none declared, a model with Triton batching gets its batch of 1 added). A shape that fits several layouts, such as [3, -1, -1] with Image.RGB or Image.BGR, needs change_channel_order; Nothing there fails startup naming the shape and the layouts it fits, a bound layout the shape does not fit fails startup naming both, and a shape that fits none fails startup naming it. Its fixed height and width are the letterbox size; for a dynamic one model_height or model_width gives it, and startup fails naming the dimension when that parameter is Nothing, or naming both values when a bound one differs from a fixed dimension.rescale_factor must be 1, rescale_offset false, mean (0, 0, 0) and std (1, 1, 1). An 8-bit network must carry any normalization it needs inside itself.model. The worker reads its configuration from Triton once at startup; when Triton has not loaded it by then, that call fails and the worker stops, with no wait or retry.model; class names come from labels where supplied, otherwise from the stringified class id. A supplied name list must match the complete class vector.request_timeout_seconds. A request that misses it throws, the inference stream stays cancelled so every later request fails too, and the worker stops with that error; nothing is retried. Any other failure on a frame (a Triton error, an output that is not FP32 or does not hold exactly the class count of values, a non-finite score, an out-of-range probability when logits is false, an empty frame) stops the worker the same way, and no later frame is scored.live-test prerelease
live-test prerelease
Automated release