Skip to content

Commit

Permalink
use samv2 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
capjamesg committed Jul 31, 2024
1 parent 0251e44 commit 8fc5014
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
13 changes: 0 additions & 13 deletions autodistill_grounded_sam_2/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,6 @@ def load_SAM():

os.chdir(SAM_CACHE_DIR)

if not os.path.isdir("~/.cache/autodistill/segment_anything_2/segment-anything-2"):
subprocess.run(
[
"git",
"clone",
"https://github.com/facebookresearch/segment-anything-2.git",
]
)

os.chdir("segment-anything-2")

subprocess.run(["pip", "install", "-e", "."])

sys.path.append("~/.cache/autodistill/segment_anything_2/segment-anything-2")

# Download the file if it doesn't exist
Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
torch
autodistill
numpy>=1.20.0
numpy==1.20.0
opencv-python>=4.6.0
supervision
roboflow
autodistill_florence_2
rf_groundingdino
rf_groundingdino
samv2

0 comments on commit 8fc5014

Please sign in to comment.