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

Convert SlimSAM checkpoints #28379

Merged
merged 8 commits into from
Mar 4, 2024
Merged

Conversation

NielsRogge
Copy link
Contributor

@NielsRogge NielsRogge commented Jan 7, 2024

What does this PR do?

This PR extends the conversion script of SAM (Segment Anything) to also support SlimSAM checkpoints.

SlimSAM is a compressed (pruned) version of SAM, claims to outperform FastSAM and MobileSAM. Looks cool! Below are the SAM-vit-base (top) versus the SlimSAM-77-uniform (bottom) results.

Screenshot 2024-01-07 at 20 59 40

see czg1225/SlimSAM#4

Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few nits but LGTM otherwise

Copy link

github-actions bot commented Mar 1, 2024

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@NielsRogge NielsRogge merged commit 5e4b69d into huggingface:main Mar 4, 2024
8 checks passed
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

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

Successfully merging this pull request may close these issues.

3 participants