AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.75k stars 7.96k forks source link

How to implement slice layer in darknet #3132

Open beHappy666 opened 5 years ago

AlexeyAB commented 5 years ago

Do you mean Caffe slice layer (something like Reverse-Concat layer)? https://caffe.berkeleyvision.org/tutorial/layers/slice.html

Or do you mean something like Slice-RNN SRNN layers https://aclweb.org/anthology/C18-1250 and https://arxiv.org/abs/1802.04402 ?

beHappy666 commented 5 years ago

Yes. I just want to divide filters to groups(operation just like slice layer in caffe) and do diverse conv, and then concat. Do you have any ideas? Thanks

AlexeyAB commented 5 years ago

slice_layer: https://github.com/gmayday1997/darknet.CG/blob/master/src/channel_slice.c Is implemented for ShuffleNetv2: https://github.com/AlexeyAB/darknet/issues/3750

beHappy666 commented 5 years ago

@AlexeyAB thk you