OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[OV JS] Fix preprocessing layout in hello_classification demo (#26594)
Vishniakov Nikolaiebfefab84d7d
diff --git a/samples/js/node/hello_classification/hello_classification.js b/samples/js/node/hello_classification/hello_classification.jsindex c28527c4ae5..00ba868e40f 100644--- a/samples/js/node/hello_classification/hello_classification.js+++ b/samples/js/node/hello_classification/hello_classification.js@@ -47,7 +47,7 @@ async function main(modelPath, imagePath, deviceName) {const _ppp = new ov.preprocess.PrePostProcessor(model);_ppp.input().tensor().setShape(shape).setLayout('NHWC');_ppp.input().preprocess().resize(ov.preprocess.resizeAlgorithm.RESIZE_LINEAR);- _ppp.input().model().setLayout('NCHW');+ _ppp.input().model().setLayout('NHWC');_ppp.output().tensor().setElementType(ov.element.f32);_ppp.build();