{
public:
int coords, classes, anchors, classfix;
- float thresh, nmsThreshold, scale_x_y;
+ float thresh, scale_x_y;
+ int new_coords;
bool useSoftmax, useLogistic;
#ifdef HAVE_OPENCL
UMat blob_umat;
{
#ifdef HAVE_DNN_NGRAPH
if (backendId == DNN_BACKEND_INFERENCE_ENGINE_NGRAPH)
- return INF_ENGINE_VER_MAJOR_GE(INF_ENGINE_RELEASE_2020_2) && preferableTarget != DNN_TARGET_MYRIAD;
+ return INF_ENGINE_VER_MAJOR_GE(INF_ENGINE_RELEASE_2020_2) && preferableTarget != DNN_TARGET_MYRIAD && new_coords == 0;
#endif
- return true;
+#ifdef HAVE_CUDA
+ if (backendId == DNN_BACKEND_CUDA)
++ return new_coords == 0;
+#endif
return backendId == DNN_BACKEND_OPENCV;
}