mirror of
https://github.com/opencv/opencv.git
synced 2026-09-13 05:42:51 -05:00
TanH darknet and test
This commit is contained in:
@@ -241,6 +241,10 @@ namespace cv {
|
||||
{
|
||||
activation_param.type = "Sigmoid";
|
||||
}
|
||||
else if (type == "tanh")
|
||||
{
|
||||
activation_param.type = "TanH";
|
||||
}
|
||||
else
|
||||
{
|
||||
CV_Error(cv::Error::StsParseError, "Unsupported activation: " + type);
|
||||
|
||||
@@ -702,6 +702,11 @@ TEST_P(Test_Darknet_layers, mish)
|
||||
testDarknetLayer("mish", true);
|
||||
}
|
||||
|
||||
TEST_P(Test_Darknet_layers, tanh)
|
||||
{
|
||||
testDarknetLayer("tanh");
|
||||
}
|
||||
|
||||
TEST_P(Test_Darknet_layers, avgpool_softmax)
|
||||
{
|
||||
testDarknetLayer("avgpool_softmax");
|
||||
|
||||
Reference in New Issue
Block a user