Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 915775
Collapse All | Expand All

(-)a/modules/dnn/src/cuda4dnn/primitives/normalize_bbox.hpp (-1 / +1 lines)
Lines 111-117 namespace cv { namespace dnn { namespace cuda4dnn { Link Here
111
             * or there might be several weights
111
             * or there might be several weights
112
             * or we don't have to scale
112
             * or we don't have to scale
113
             */
113
             */
114
            if (weight != 1.0)
114
            if (weight != static_cast<T>(1.0f))
115
            {
115
            {
116
                kernels::scale1_with_bias1<T>(stream, output, input, weight, 1.0);
116
                kernels::scale1_with_bias1<T>(stream, output, input, weight, 1.0);
117
            }
117
            }
(-)a/modules/dnn/src/cuda4dnn/primitives/region.hpp (-1 / +1 lines)
Lines 121-127 namespace cv { namespace dnn { namespace cuda4dnn { Link Here
121
                new_coords
121
                new_coords
122
            );
122
            );
123
            if (nms_iou_threshold > 0) {
123
            if (nms_iou_threshold > static_cast<T>(0.0f)) {
124
                auto output_mat = output_wrapper->getMutableHostMat();
124
                auto output_mat = output_wrapper->getMutableHostMat();
125
                CV_Assert(output_mat.type() == CV_32F);
125
                CV_Assert(output_mat.type() == CV_32F);
126
                for (int i = 0; i < input.get_axis_size(0); i++) {
126
                for (int i = 0; i < input.get_axis_size(0); i++) {

Return to bug 915775