mirror of
https://github.com/opencv/opencv.git
synced 2025-07-31 01:47:12 +08:00
fix darknet-relu bug in darknet_io.cpp
This commit is contained in:
parent
969b55036f
commit
a968eadbf1
@ -984,8 +984,8 @@ namespace cv {
|
||||
}
|
||||
|
||||
std::string activation = getParam<std::string>(layer_params, "activation", "linear");
|
||||
if(activation == "leaky" || activation == "swish" || activation == "mish" || activation == "logistic")
|
||||
++cv_layers_counter; // For ReLU, Swish, Mish, Sigmoid
|
||||
if (activation != "linear")
|
||||
++cv_layers_counter; // For ReLU, Swish, Mish, Sigmoid, etc
|
||||
|
||||
if(!darknet_layers_counter)
|
||||
tensor_shape.resize(1);
|
||||
|
Loading…
Reference in New Issue
Block a user