Skip to content

Commit c4e695e

Browse files
committed
Apply suggestions
1 parent 9f0a775 commit c4e695e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

demos/common/cpp/models/include/models/detection_model_yolov3_onnx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ class ModelYoloV3ONNX: public DetectionModel {
4747

4848
std::string boxesOutputName;
4949
std::string scoresOutputName;
50-
std::string indicesOuputName;
50+
std::string indicesOutputName;
5151
static const int numberOfClasses = 80;
5252
};

demos/common/cpp/models/src/detection_model_yolov3_onnx.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void ModelYoloV3ONNX::prepareInputsOutputs(std::shared_ptr<ov::Model>& model) {
9797
const ov::Shape& currentShape = output.get_partial_shape().get_max_shape();
9898
std::string currentName = output.get_any_name();
9999
if (currentShape[currentShape.size() - 1] == 3) {
100-
indicesOuputName = currentName;
100+
indicesOutputName = currentName;
101101
ppp.output(currentName).tensor().set_element_type(ov::element::i32);
102102
} else if (currentShape[2] == 4) {
103103
boxesOutputName = currentName;
@@ -146,7 +146,7 @@ std::unique_ptr<ResultBase> ModelYoloV3ONNX::postprocess(InferenceResult& infRes
146146
const float* boxesPtr = boxes.data<float>();
147147

148148
const ov::Tensor& scores = infResult.outputsData[scoresOutputName];
149-
const ov::Tensor& indices = infResult.outputsData[indicesOuputName];
149+
const ov::Tensor& indices = infResult.outputsData[indicesOutputName];
150150

151151
const int* indicesData = indices.data<int>();
152152
const auto indicesShape = indices.get_shape();

0 commit comments

Comments
 (0)