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

Added support for MobileSAM for snappier Gradio experience #100

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

JunkyByte
Copy link

I have added support to MobileSAM which can be used to experience a snappier Gradio interface as it runs faster on cpu than the original SAM.

During tracking it does not impact much, especially on CUDA.

I have removed args.device = "cuda:3" in app.py as it prevents from correctly selecting devices when running the script.

This adds MobileSAM as a requirement.

@yclicc
Copy link

yclicc commented Sep 8, 2023

This is great, but there are two bugs. 1, in your requirement.txt the new line that installs MobileSAM shouldn't have "pip install" in it. 2. in app.py you haven't set the SAM_checkpoint_url_dict value for the new vit_t, so it doesn't know where to download it from (maybe solve by adding an instruction to manually download it).

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.

2 participants