Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Errors when trying to pruning a YOLOv5 model, and use ModelSpeedup.speedup_model() to export to one model pt. #3790

Answered by ping-Huang
ichejun asked this question in Q&A
Discussion options

You must be logged in to vote

@ichejun
Q1:
In yolov5, you should add Concat, upsample and SiLU to infer_from_inshape and replace_module.

In Cancat node, you should modify the graph_utils.py and compressor.py

Q2:
I recommend that you pruning the yolov5 without "Detect layer".
After you producing the speedup model, you should add Detect layer after the speedup model.

Replies: 9 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by scarlett2018
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mvpzhangqiu
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hygxy
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
6 participants
Converted from issue

This discussion was converted from issue #3548 on June 10, 2021 01:39.