From 7df5c30eb857e086e411b205de4e345b238d5fd7 Mon Sep 17 00:00:00 2001 From: Vishniakov Nikolai Date: Mon, 18 Sep 2023 17:06:53 +0200 Subject: [PATCH] Use offset in class mapping --- samples/js/node/notebooks/001-hello-world.nnb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/js/node/notebooks/001-hello-world.nnb b/samples/js/node/notebooks/001-hello-world.nnb index 334c8a05770071..8e464619bf703e 100644 --- a/samples/js/node/notebooks/001-hello-world.nnb +++ b/samples/js/node/notebooks/001-hello-world.nnb @@ -145,7 +145,7 @@ { "language": "javascript", "source": [ - "const imagenetClassesMap = require('../../assets/datasets/imagenet_class_index.json');\n\nconsole.log(`Result: ${imagenetClassesMap[resultIndex][1]}`);" + "const imagenetClassesMap = require('../../assets/datasets/imagenet_class_index.json');\nconst imagenetClasses = ['background', ...Object.values(imagenetClassesMap)];\n\nconsole.log(`Result: ${imagenetClasses[resultIndex][1]}`);" ], "outputs": [ { @@ -153,7 +153,7 @@ { "mime": "application/vnd.code.notebook.stdout", "value": [ - "Result: curly-coated_retriever", + "Result: flat-coated_retriever", "" ] }