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

prune #2

Open
loganwu0526 opened this issue Sep 12, 2024 · 1 comment
Open

prune #2

loganwu0526 opened this issue Sep 12, 2024 · 1 comment

Comments

@loganwu0526
Copy link

hi, when I run prune.py, then it just print the model summary, threshold and got stuck, nothing happen.

"YOLOv8-samt_multi3 summary: 321 layers, 9792692 parameters, 0 gradients
tensor(1.0654)"

do you know what happen and how to figure out the bug?

thanks

@jasonDasuantou
Copy link
Owner

if not error, the model should be saved at res_dir = "./runs/detect/prune/weights/prune.pt"
do you change the dir in the code:
`# Load a model
yolo = YOLO("./runs/detect/yolov8s/weights/last.pt")

Save model address

res_dir = "./runs/detect/prune/weights/prune.pt"

Pruning rate

factor = 0.75`

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

2 participants