Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,13 +6,14 @@ import sys
|
|
| 6 |
import random
|
| 7 |
import warnings
|
| 8 |
|
| 9 |
-
|
|
|
|
|
|
|
| 10 |
os.system("python -m pip install -e segment-anything")
|
| 11 |
os.system("python -m pip install -e GroundingDINO")
|
| 12 |
os.system("pip install --upgrade diffusers[torch]")
|
| 13 |
#os.system("pip install opencv-python pycocotools matplotlib")
|
| 14 |
-
|
| 15 |
-
sys.path.insert(0, './segment-anything')
|
| 16 |
warnings.filterwarnings("ignore")
|
| 17 |
|
| 18 |
import cv2
|
|
|
|
| 6 |
import random
|
| 7 |
import warnings
|
| 8 |
|
| 9 |
+
sys.path.insert(0, './GroundingDINO')
|
| 10 |
+
sys.path.insert(0, './segment-anything')
|
| 11 |
+
os.system("export BUILD_WITH_CUDA=True")
|
| 12 |
os.system("python -m pip install -e segment-anything")
|
| 13 |
os.system("python -m pip install -e GroundingDINO")
|
| 14 |
os.system("pip install --upgrade diffusers[torch]")
|
| 15 |
#os.system("pip install opencv-python pycocotools matplotlib")
|
| 16 |
+
|
|
|
|
| 17 |
warnings.filterwarnings("ignore")
|
| 18 |
|
| 19 |
import cv2
|