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

YOLO11 got stuck during pruning while generating pruner #454

Open
TenMinutes209 opened this issue Feb 2, 2025 · 1 comment
Open

YOLO11 got stuck during pruning while generating pruner #454

TenMinutes209 opened this issue Feb 2, 2025 · 1 comment

Comments

@TenMinutes209
Copy link

When I tried to prune an YOLO11 model with Backbone replaced with ShuffleNetV2, I got problems below:

The code stuck in the sentence
pruner = tp.pruner.GroupNormPruner(
model.model,
example_inputs,
importance=tp.importance.GroupNormImportance(), # L2 norm pruning,
iterative_steps=1,
pruning_ratio=pruning_ratio,
ignored_layers=ignored_layers,
unwrapped_parameters=unwrapped_parameters
)

How can I solve this problem? Thank you

@TenMinutes209
Copy link
Author

I tried that when I keep the param.requires_grad = False, the code could run but the model wasn't pruned. When I turned param.requires_grad = True, the code stuck.

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