Skip to content

Commit

Permalink
Fix repeated reinstallation SAM2 every time it's loaded
Browse files Browse the repository at this point in the history
Fix issue: autodistill#4
  • Loading branch information
aam-at committed Oct 10, 2024
1 parent d6eebed commit 6e0a4c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autodistill_grounded_sam_2/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def load_SAM():

os.chdir(SAM_CACHE_DIR)

if not os.path.isdir("~/.cache/autodistill/segment_anything_2/segment-anything-2"):
if not os.path.isdir(os.path.expanduser("~/.cache/autodistill/segment_anything_2/segment-anything-2")):
subprocess.run(
[
"git",
Expand Down

0 comments on commit 6e0a4c0

Please sign in to comment.