Merge pull request #20511 from wjj19950828:add_humanseg_support_0806
* support PPSeg model for dnn module * fixed README for CI * add test case * fixed bug * deal with comments * rm dnn_model_runner * update test case * fixed bug for testcase * update testcase
This commit is contained in:
parent
95c7f4a7f0
commit
edc442afdb
@ -2054,7 +2054,7 @@ void ONNXImporter::parseResize(LayerParams& layerParams, const opencv_onnx::Node
|
||||
layerParams.set("align_corners", interp_mode == "align_corners");
|
||||
if (layerParams.get<String>("mode") == "linear")
|
||||
{
|
||||
layerParams.set("mode", interp_mode == "pytorch_half_pixel" ?
|
||||
layerParams.set("mode", interp_mode == "pytorch_half_pixel" || interp_mode == "half_pixel" ?
|
||||
"opencv_linear" : "bilinear");
|
||||
}
|
||||
}
|
||||
|
||||
@ -552,6 +552,11 @@ TEST_P(Test_ONNX_layers, DynamicResize)
|
||||
testONNXModels("dynamic_resize_scale_11", npy, 0, 0, false, true, 2);
|
||||
}
|
||||
|
||||
TEST_P(Test_ONNX_layers, Resize_HumanSeg)
|
||||
{
|
||||
testONNXModels("resize_humanseg");
|
||||
}
|
||||
|
||||
TEST_P(Test_ONNX_layers, Div)
|
||||
{
|
||||
const String model = _tf("models/div.onnx");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user