Skip to content

Commit c24f10d

Browse files
committed
Merge pull request opencv#10268 from dkurt:fix_scale_layer
2 parents 6185f72 + e307065 commit c24f10d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/dnn/src/layers/scale_layer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ class ScaleLayerImpl : public ScaleLayer
7474
{
7575
float w = blobs[0].at<float>(n);
7676
float b = hasBias ? blobs[1].at<float>(n) : 0;
77-
Mat outBlobPlane = getPlane(outBlob, cn, n);
78-
Mat inpBlobPlane = getPlane(inpBlob, cn, n);
77+
Mat outBlobPlane = slice(outBlob, cn, n);
78+
Mat inpBlobPlane = slice(inpBlob, cn, n);
7979
inpBlobPlane.convertTo(outBlobPlane, CV_32F, w, b);
8080
}
8181
}

0 commit comments

Comments
 (0)