support silu activation in darknet

This commit is contained in:
Zihao Mu 2022-08-22 10:51:29 +08:00
parent 925ff6241f
commit 5e92bf8e41

View 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";
}