support silu activation in darknet
authorZihao Mu <zihaomu@outlook.com>
Mon, 22 Aug 2022 02:51:29 +0000 (10:51 +0800)
committerZihao Mu <zihaomu@outlook.com>
Mon, 22 Aug 2022 02:51:29 +0000 (10:51 +0800)
modules/dnn/src/darknet/darknet_io.cpp

index 520f3c94bed18f0ac71ab4dd7505759909a78178..54140f8dc0c23129c169182612424b50bcf673e1 100644 (file)
@@ -229,7 +229,7 @@ namespace cv {
                         activation_param.set<float>("negative_slope", 0.1f);
                         activation_param.type = "ReLU";
                     }
-                    else if (type == "swish")
+                    else if (type == "swish" || type == "silu") // swish is an extension of silu.
                     {
                         activation_param.type = "Swish";
                     }