Torch-Pruning icon indicating copy to clipboard operation
Torch-Pruning copied to clipboard

Yolov10 Pruning

Open Pbatch opened this issue 1 year ago • 5 comments

Hello.

I have made good use of the pruning scripts for YOLOv8, and was wondering if there will be a new examples script for YOLOv10?

I am happy to collaborate (i.e. on Slack / this Issue) with anyone who wants to achieve this.

Thanks :)

Pbatch avatar Jun 08 '24 12:06 Pbatch

@Pbatch Hello! Can you please share your YOLOv8 pruning full script?

Ramzes30765 avatar Jul 09 '24 09:07 Ramzes30765

Hi All, I'm not a YOLO expert. So, it would be great if you have some ideas about YOLO-10 pruning.

VainF avatar Jul 09 '24 13:07 VainF

Hi All, I'm not a YOLO expert. So, it would be great if you have some ideas about YOLO-10 pruning.

Is it possible to update yolo8_pruning.py example?

Ramzes30765 avatar Jul 09 '24 15:07 Ramzes30765

There are two ways

  1. Ignore the Attention Layer

       '''
       if isinstance(m, (Detect, Attention)):
                       ignored_layers.append(m)
       '''
    
  2. Modify Attention Layer

         -> Remove all split Operation as it is in the yolo8_pruning.py
         -> Remove Group Convolution (which are used for depth wise Convolution)
    

happyiminjay1 avatar Oct 25 '24 08:10 happyiminjay1