yolov5 nni剪枝
时间: 2023-07-31 16:03:36 浏览: 243
NNI剪枝是一种使用神经网络智能化(Neural Network Intelligence,NNI)工具进行剪枝的方法。在yolov5中,可以使用NNI工具进行剪枝操作。首先,需要下载yolov5s.pt模型文件和相应的配置文件,如coco_hand.yaml和yolov5s.yaml。\[1\]然后,将yolov5_prune项目中的pruned_common.py文件复制到官方yolov5项目的model目录下。\[2\]接下来,使用finetune_pruned.py文件进行微调模型。在终端中输入相应的指令,开始微调模型。微调后的模型将保存在yolov5-6.1-pruning/runs/train/yolov5s-finetuned路径下。\[3\]最后,可以对微调后的模型进行测试。
#### 引用[.reference_title]
- *1* [YOLOv5s 剪枝](https://blog.csdn.net/m0_53608998/article/details/117687416)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [yolov5s模型剪枝详细过程(v6.0)](https://blog.csdn.net/yjcccccc/article/details/128633226)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [YOLOv5剪枝✂️| 模型剪枝实战篇](https://blog.csdn.net/weixin_43694096/article/details/127576130)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文