TECHNOLOGY

OpenVINO Model Server mean and scale: assign normalization to a single explicit owner

In this article
THE QUICK TAKE

Server-side mean and scale modify input preprocessing; clients and exported model graphs must agree on which transformations have already been applied.

The service accepts an already-normalized image

An application normalizes pixel values before sending a tensor. A deployment update also enables server-side mean and scale, expecting to simplify future clients. Existing clients now deliver a representation that is transformed again before model execution. Requests can remain syntactically valid while predictions shift. Define the ownership of every numeric transformation before enabling it in another component. The model input contract includes value range and channel interpretation as well as shape, so successful tensor validation cannot establish that the intended normalization was applied exactly once.

Mean and scale have documented numeric roles

The parameter reference describes subtracting mean values and dividing by scale values, with channel-specific forms where appropriate. Record the configured values and their intended input representation. Do not infer the correct policy from a familiar parameter name alone: a model may already include preprocessing in its exported graph. The release should explain what arrives from the client and what reaches the model after the actual server-side transformation path has been applied.

Runtime preprocessing is an intentional release feature

The official release notes describe configurable preprocessing for classic served models, including mean, scale, color and layout changes. Confirm support in the deployed release rather than copying options into an older environment. Tokenizer release manifests provide an analogous principle: model-adjacent interpretation changes belong to release evidence even when the trained weights do not change. Moving preprocessing can be an API change if existing callers continue to send the previous prepared representation.

Channel layout determines per-channel interpretation

The shape-layout guide explains model input layout configuration. Keep the normalization’s channel association consistent with the actual tensor layout and any inserted conversion. Axis semantics offer related background: matching array dimensions does not prove that each axis has the expected role. A per-channel numeric vector can have the right length while being associated with the wrong channel order or applied before an unintended duplicate conversion inside the exported graph.

Compare the complete numerical preparation path

Use an image with recognizable channel values and compare the prepared model input against an isolated trusted reference. Test both the legacy prepared client and the intended raw-input client during the migration. Keep model artifact identity fixed while locating any difference. A correct release assigns each transformation to a documented owner and defines the supported incoming representation, rather than announcing simplified preprocessing while silently changing the effective numeric meaning of requests that still satisfy the old client’s apparent tensor schema.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles