- grounded_sam_osx_demo.py +1 -1
- handler.py +1 -1
grounded_sam_osx_demo.py
CHANGED
|
@@ -22,7 +22,7 @@ from segment_anything import build_sam, SamPredictor
|
|
| 22 |
|
| 23 |
# OSX
|
| 24 |
import sys
|
| 25 |
-
sys.path.insert(0, 'grounded-sam-
|
| 26 |
from osx import get_model
|
| 27 |
from config import cfg
|
| 28 |
from utils.preprocessing import load_img, process_bbox, generate_patch_image
|
|
|
|
| 22 |
|
| 23 |
# OSX
|
| 24 |
import sys
|
| 25 |
+
sys.path.insert(0, 'grounded-sam-xxx')
|
| 26 |
from osx import get_model
|
| 27 |
from config import cfg
|
| 28 |
from utils.preprocessing import load_img, process_bbox, generate_patch_image
|
handler.py
CHANGED
|
@@ -26,7 +26,7 @@ class EndpointHandler():
|
|
| 26 |
|
| 27 |
# Install osx
|
| 28 |
subprocess.run(["git", "submodule", "update", "--init", "--recursive"])
|
| 29 |
-
subprocess.run(["bash", "grounded-sam-
|
| 30 |
|
| 31 |
# Install RAM & Tag2Text
|
| 32 |
subprocess.run(["git", "clone", "https://github.com/xinyu1205/recognize-anything.git"])
|
|
|
|
| 26 |
|
| 27 |
# Install osx
|
| 28 |
subprocess.run(["git", "submodule", "update", "--init", "--recursive"])
|
| 29 |
+
subprocess.run(["bash", "grounded-sam-xxx/install.sh"], cwd="grounded-sam-xxx")
|
| 30 |
|
| 31 |
# Install RAM & Tag2Text
|
| 32 |
subprocess.run(["git", "clone", "https://github.com/xinyu1205/recognize-anything.git"])
|