NandiniLokeshReddy commited on
Commit
7a00437
·
verified ·
1 Parent(s): 4023190

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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