mirror of
https://github.com/opencv/opencv.git
synced 2025-08-04 21:36:35 +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");
|
std::string activation = getParam<std::string>(layer_params, "activation", "linear");
|
||||||
if(activation == "leaky" || activation == "swish" || activation == "mish" || activation == "logistic")
|
if (activation != "linear")
|
||||||
++cv_layers_counter; // For ReLU, Swish, Mish, Sigmoid
|
++cv_layers_counter; // For ReLU, Swish, Mish, Sigmoid, etc
|
||||||
|
|
||||||
if(!darknet_layers_counter)
|
if(!darknet_layers_counter)
|
||||||
tensor_shape.resize(1);
|
tensor_shape.resize(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user