From 5e92bf8e411f538b45c80aac842a9c1ff50f8150 Mon Sep 17 00:00:00 2001 From: Zihao Mu Date: Mon, 22 Aug 2022 10:51:29 +0800 Subject: [PATCH] support silu activation in darknet --- modules/dnn/src/darknet/darknet_io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dnn/src/darknet/darknet_io.cpp b/modules/dnn/src/darknet/darknet_io.cpp index 520f3c94be..54140f8dc0 100644 --- a/modules/dnn/src/darknet/darknet_io.cpp +++ b/modules/dnn/src/darknet/darknet_io.cpp @@ -229,7 +229,7 @@ namespace cv { activation_param.set("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"; }