mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 20:42:53 +08:00
Replace CV_Assert_N
This commit is contained in:
parent
6909fffde1
commit
924c01dbec
@ -2779,7 +2779,7 @@ void ONNXImporter::parseResize(LayerParams& layerParams, const opencv_onnx::Node
|
|||||||
if (layerParams.has("coordinate_transformation_mode"))
|
if (layerParams.has("coordinate_transformation_mode"))
|
||||||
{
|
{
|
||||||
String interp_mode = layerParams.get<String>("coordinate_transformation_mode");
|
String interp_mode = layerParams.get<String>("coordinate_transformation_mode");
|
||||||
CV_Assert_N(interp_mode != "tf_crop_and_resize");
|
CV_Assert(interp_mode != "tf_crop_and_resize");
|
||||||
|
|
||||||
bool halfPixel = interp_mode == "tf_half_pixel_for_nn" || interp_mode == "half_pixel" || interp_mode == "pytorch_half_pixel";
|
bool halfPixel = interp_mode == "tf_half_pixel_for_nn" || interp_mode == "half_pixel" || interp_mode == "pytorch_half_pixel";
|
||||||
|
|
||||||
@ -2840,7 +2840,7 @@ void ONNXImporter::parseUpsample(LayerParams& layerParams, const opencv_onnx::No
|
|||||||
if (layerParams.has("coordinate_transformation_mode"))
|
if (layerParams.has("coordinate_transformation_mode"))
|
||||||
{
|
{
|
||||||
String interp_mode = layerParams.get<String>("coordinate_transformation_mode");
|
String interp_mode = layerParams.get<String>("coordinate_transformation_mode");
|
||||||
CV_Assert_N(interp_mode != "tf_crop_and_resize");
|
CV_Assert(interp_mode != "tf_crop_and_resize");
|
||||||
|
|
||||||
bool halfPixel = interp_mode == "tf_half_pixel_for_nn" || interp_mode == "half_pixel" || interp_mode == "pytorch_half_pixel";
|
bool halfPixel = interp_mode == "tf_half_pixel_for_nn" || interp_mode == "half_pixel" || interp_mode == "pytorch_half_pixel";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user