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

Fix SAM2 constant reinstall #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lukaboljevic
Copy link

@lukaboljevic lukaboljevic commented Feb 1, 2025

Closes #3, closes #4.

os.path.isdir("~/.cache/autodistill/segment_anything_2/segment-anything-2") will almost always return False, resulting in SAM2 being cloned and (re)installed every time a script or notebook is ran.

This is now fixed by reusing the SAM_CACHE_DIR variable, which contains the correct absolute path.

@Buckler89
Copy link

When this PR will be merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants