mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
parent
fee87c5fdb
commit
6dfe2ddc21
@ -530,6 +530,13 @@ void ONNXImporter::populateNet(Net dstNet)
|
||||
layerParams.type = "Power";
|
||||
}
|
||||
}
|
||||
else if (layer_type == "Clip")
|
||||
{
|
||||
layerParams.type = "ReLU6";
|
||||
replaceLayerParam(layerParams, "min", "min_value");
|
||||
replaceLayerParam(layerParams, "max", "max_value");
|
||||
|
||||
}
|
||||
else if (layer_type == "LeakyRelu")
|
||||
{
|
||||
layerParams.type = "ReLU";
|
||||
|
@ -136,6 +136,11 @@ TEST_P(Test_ONNX_layers, ReLU)
|
||||
testONNXModels("ReLU");
|
||||
}
|
||||
|
||||
TEST_P(Test_ONNX_layers, Clip)
|
||||
{
|
||||
testONNXModels("clip", npy);
|
||||
}
|
||||
|
||||
TEST_P(Test_ONNX_layers, MaxPooling_Sigmoid)
|
||||
{
|
||||
testONNXModels("maxpooling_sigmoid");
|
||||
|
Loading…
Reference in New Issue
Block a user