Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YOLOv5剪枝后推理无结果 #419

Open
hhitdata opened this issue Aug 29, 2024 · 0 comments
Open

YOLOv5剪枝后推理无结果 #419

hhitdata opened this issue Aug 29, 2024 · 0 comments

Comments

@hhitdata
Copy link

from models.yolo import Detect, SPPF, Concat, C3, Conv
for m in model.model.modules():
if isinstance(m, Detect) or isinstance(m, Conv):
ignored_layers.append(m)

经过尝试后发现如果将Conv结构进行剪枝后推理就无结果,如何控制剪枝的过程?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant