mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
Merge pull request #11649 from rockzhan:dnn_dw_prelu
dnn: Fix output mismatch when forward dnn model contain [depthwise conv(group=1) + bn + prelu] (#11649) * this can make sure [depthwise conv(group=1) + bn + prelu] output not shift * add TEST to show the output mismatch in [DWconv+Prelu] * fix typo * change loading image to init cvMat directly * build runtime model, without loading external model * remove whitespace * change way to create a cvmat * add bias_term, add target output * fix [dwconv + prelu] value mismatch when no optimizations * fix Test error when change output channels * add parametric test * change num_output to group value * change conv code and change test back
This commit is contained in:
committed by
Alexander Alekhin
parent
7175f257b5
commit
1187a7fa34
@@ -737,8 +737,9 @@ public:
|
||||
|
||||
if( relu )
|
||||
{
|
||||
r0 = relu[i];
|
||||
r1 = relu[i+1];
|
||||
r0 = relu[i]; r1 = relu[i+1];
|
||||
if( i+1 >= outCn )
|
||||
r1 = r0;
|
||||
}
|
||||
|
||||
int j = 0;
|
||||
|
||||
Reference in New Issue
Block a user