NandiniLokeshReddy
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -25,6 +25,8 @@ if not os.path.exists("weights/sam_vit_h_4b8939.pth"):
|
|
25 |
sys.path.append(os.path.abspath("EfficientSAM-main"))
|
26 |
|
27 |
# Import SAM and EfficientSAM modules
|
|
|
|
|
28 |
from segment_anything import sam_model_registry, SamAutomaticMaskGenerator
|
29 |
from efficient_sam.build_efficient_sam import build_efficient_sam_vits
|
30 |
|
|
|
25 |
sys.path.append(os.path.abspath("EfficientSAM-main"))
|
26 |
|
27 |
# Import SAM and EfficientSAM modules
|
28 |
+
subprocess.run(["pip", "install", "git+https://github.com/facebookresearch/segment-anything.git"])
|
29 |
+
subprocess.run(["git", "clone", "https://github.com/yformer/EfficientSAM.git"])
|
30 |
from segment_anything import sam_model_registry, SamAutomaticMaskGenerator
|
31 |
from efficient_sam.build_efficient_sam import build_efficient_sam_vits
|
32 |
|