1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Dilated convolution import from TensorFlow

This commit is contained in:
Dmitry Kurtaev
2017-09-12 15:56:51 +03:00
parent 9640bbe76d
commit 58b890b9f7
6 changed files with 59 additions and 16 deletions
+2 -2
View File
@@ -81,7 +81,7 @@ public:
Size outSize = Size(outputs[0].size[3], outputs[0].size[2]);
getConvPoolPaddings(Size(input.size[3], input.size[2]), outSize,
kernel, stride, padMode, pad);
kernel, stride, padMode, dilation, pad);
}
bool hasBias() const
@@ -183,7 +183,7 @@ public:
}
else
{
getConvPoolOutParams(Size(inpW, inpH), kernel, stride, padMode, out);
getConvPoolOutParams(Size(inpW, inpH), kernel, stride, padMode, dilation, out);
}
int ngroups = inpCn / blobs[0].size[1];