dnn: improve debugging of ONNX parsing errors

This commit is contained in:
Alexander Alekhin 2020-09-24 05:08:35 +00:00
parent 236ad4aeda
commit e59793cc75
2 changed files with 283 additions and 179 deletions

View File

@ -39,7 +39,7 @@ public:
CV_Assert(params.has("zoom_factor_x") && params.has("zoom_factor_y"));
}
interpolation = params.get<String>("interpolation");
CV_Assert(interpolation == "nearest" || interpolation == "opencv_linear" || interpolation == "bilinear");
CV_Check(interpolation, interpolation == "nearest" || interpolation == "opencv_linear" || interpolation == "bilinear", "");
alignCorners = params.get<bool>("align_corners", false);
}

File diff suppressed because it is too large Load Diff