Skip to content

[Doc] Document image preprocessing steps for ONNX model input#255

Open
yeelam-gordon wants to merge 1 commit intoMicrosoftDocs:docsfrom
yeelam-gordon:fix/61791046-image-preprocess-undocumented
Open

[Doc] Document image preprocessing steps for ONNX model input#255
yeelam-gordon wants to merge 1 commit intoMicrosoftDocs:docsfrom
yeelam-gordon:fix/61791046-image-preprocess-undocumented

Conversation

@yeelam-gordon
Copy link
Copy Markdown

@yeelam-gordon yeelam-gordon commented Apr 14, 2026

Problem

The tutorial page shows how to run inference but doesn't explain image preprocessing (resize, normalize, NCHW layout), which is critical for image classification models like SqueezeNet.

Fix

Added a new 'Image preprocessing' subsection in tutorial.md documenting the 5-step pipeline: load image, resize to 224x224, convert BGRA8 to RGB, normalize with ImageNet mean/std, create DenseTensor. Includes link to sample ImageProcessor.cs.

Files changed

  • docs/new-windows-ml/tutorial.md

Explains the NCHW format, normalization, and tensor creation
that PreprocessImageAsync performs under the hood.
Fixes ADO #61791046

Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant