File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ Implementation of Batch Normalization layer.
14
14
#include " op_halide.hpp"
15
15
#include < opencv2/dnn/shape_utils.hpp>
16
16
17
+ #include < iostream>
18
+
17
19
namespace cv
18
20
{
19
21
namespace dnn
@@ -94,7 +96,20 @@ class MaxUnpoolLayerImpl : public MaxUnpoolLayer
94
96
for (int i_wh = 0 ; i_wh < wh_area; i_wh++)
95
97
{
96
98
int index = idxptr[i_wh];
97
- CV_Assert (0 <= index && index < outPlaneTotal);
99
+ if (!(0 <= index && index < outPlaneTotal))
100
+ {
101
+ std::cerr
102
+ << " i_n=" << i_n << std::endl
103
+ << " i_c=" << i_c << std::endl
104
+ << " i_wh=" << i_wh << std::endl
105
+ << " index=" << index << std::endl
106
+ << " outPlaneTotal=" << outPlaneTotal << std::endl
107
+ << " input.size=" << input.size << std::endl
108
+ << " indices.size=" << indices.size << std::endl
109
+ << " outBlob=" << outBlob.size << std::endl
110
+ ;
111
+ CV_Assert (0 <= index && index < outPlaneTotal);
112
+ }
98
113
outptr[index] = inptr[i_wh];
99
114
}
100
115
}
You can’t perform that action at this time.
0 commit comments