Skip to content

Commit ebfefab

Browse files
[OV JS] Fix preprocessing layout in hello_classification demo (openvinotoolkit#26594)
### Details: - Fix of incorrect layout specification in js samples
1 parent 50f78fd commit ebfefab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/js/node/hello_classification/hello_classification.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async function main(modelPath, imagePath, deviceName) {
4747
const _ppp = new ov.preprocess.PrePostProcessor(model);
4848
_ppp.input().tensor().setShape(shape).setLayout('NHWC');
4949
_ppp.input().preprocess().resize(ov.preprocess.resizeAlgorithm.RESIZE_LINEAR);
50-
_ppp.input().model().setLayout('NCHW');
50+
_ppp.input().model().setLayout('NHWC');
5151
_ppp.output().tensor().setElementType(ov.element.f32);
5252
_ppp.build();
5353

0 commit comments

Comments
 (0)