fffiloni commited on
Commit
5fcfb63
·
verified ·
1 Parent(s): f64e85a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -6,13 +6,14 @@ import sys
6
  import random
7
  import warnings
8
 
9
- os.system("export BUILD_WITH_CUDA=False")
 
 
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
- sys.path.insert(0, './GroundingDINO')
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