Skip to content

Commit 5112b8e

Browse files
committed
Removed deprecated CNNLayer usage
1 parent d0a02fe commit 5112b8e

File tree

1 file changed

+0
-13
lines changed
  • demos/multi_channel/object_detection_demo_yolov3

1 file changed

+0
-13
lines changed

demos/multi_channel/object_detection_demo_yolov3/main.cpp

-13
Original file line numberDiff line numberDiff line change
@@ -135,19 +135,6 @@ class YoloParams {
135135

136136
computeAnchors(initialAnchors, mask);
137137
}
138-
139-
YoloParams(InferenceEngine::CNNLayer::Ptr layer) {
140-
if (layer->type != "RegionYolo")
141-
throw std::runtime_error("Invalid output type: " + layer->type + ". RegionYolo expected");
142-
143-
coords = layer->GetParamAsInt("coords");
144-
classes = layer->GetParamAsInt("classes");
145-
auto initialAnchors = layer->GetParamAsFloats("anchors");
146-
auto mask = layer->GetParamAsInts("mask");
147-
num = mask.size();
148-
149-
computeAnchors(initialAnchors, mask);
150-
}
151138
};
152139

153140
struct DetectionObject {

0 commit comments

Comments
 (0)