Open tjasmin111 opened 1 week ago
Unstructured pruning doesn't change number of parameters.
I see thanks. So my snippet is correct and is the right way to do pruning? I need to fine tune it later too
@tjasmin111 yes, your snippet correctly applies unstructured pruning. After pruning, fine-tuning the model can help regain any lost accuracy.
Search before asking
Question
I was trying to prune a Yolov8 detection model, using this snippet. But when I load the model and try to detect, it still shows the same number of parameters (
3,006,038 parameters
). Is my pruning process correct? Anything missing here?Snippet to prune:
When I load the model, both models still show the same params numbers:
Additional
No response