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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user