mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Merge pull request #19474 from aryanshomray:darknet_tanh
This commit is contained in:
commit
8d21c84e7d
@ -241,6 +241,10 @@ namespace cv {
|
|||||||
{
|
{
|
||||||
activation_param.type = "Sigmoid";
|
activation_param.type = "Sigmoid";
|
||||||
}
|
}
|
||||||
|
else if (type == "tanh")
|
||||||
|
{
|
||||||
|
activation_param.type = "TanH";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CV_Error(cv::Error::StsParseError, "Unsupported activation: " + type);
|
CV_Error(cv::Error::StsParseError, "Unsupported activation: " + type);
|
||||||
|
@ -702,6 +702,11 @@ TEST_P(Test_Darknet_layers, mish)
|
|||||||
testDarknetLayer("mish", true);
|
testDarknetLayer("mish", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_P(Test_Darknet_layers, tanh)
|
||||||
|
{
|
||||||
|
testDarknetLayer("tanh");
|
||||||
|
}
|
||||||
|
|
||||||
TEST_P(Test_Darknet_layers, avgpool_softmax)
|
TEST_P(Test_Darknet_layers, avgpool_softmax)
|
||||||
{
|
{
|
||||||
testDarknetLayer("avgpool_softmax");
|
testDarknetLayer("avgpool_softmax");
|
||||||
|
Loading…
Reference in New Issue
Block a user