Yolov-4 icon indicating copy to clipboard operation
Yolov-4 copied to clipboard

Wrong ! Shortcut layer in CSPdarknet-53

Open NguyenThaiHoc1 opened this issue 4 years ago • 1 comments

Hi Author

I had read your code but i realize shortcut layer don't have performs in your code I read common config of author who create at https://github.com/AlexeyAB/darknet/blob/master/cfg/yolov4.cfg

and shortcut layer is a layer Adding previous layer with layers specified in from= parameter

you can see https://github.com/AlexeyAB/darknet/wiki/CFG-Parameters-in-the-different-layers

That so Sorry if I have wrong but i confuse when i read your code although is perfect Thai Hoc

NguyenThaiHoc1 avatar Sep 01 '20 08:09 NguyenThaiHoc1

Hello Thai Hoc,

Sorry for my late answer.

Shortcut are managed with the boolean skip as parameter of the function _conv_block if skip is true, then this function generates an add of the last layer and the layer -3. this is equivalent to

[shortcut] from=-3 activation=linear

Hope it is clear.

thanks for reading my code

Eric

RobotEdh avatar Sep 23 '20 22:09 RobotEdh