ikuinen99 commited on
Commit
c7c0ab8
·
1 Parent(s): c8abe05
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,7 +7,8 @@ import random
7
  #
8
  # BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
9
  # sys.path.append(BASE_DIR)
10
- os.system("CUDA_HOME=/usr/local/cuda python -m pip install git+https://github.com/IDEA-Research/GroundingDINO.git")
 
11
 
12
  import numpy as np
13
  import torch
 
7
  #
8
  # BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
9
  # sys.path.append(BASE_DIR)
10
+ # os.system("CUDA_HOME=/usr/local/cuda python -m pip uninstall groundingdino")
11
+ os.system("git clone https://github.com/IDEA-Research/GroundingDINO.git && cd GroundingDINO && CUDA_HOME=/usr/local/cuda pip install -e .")
12
 
13
  import numpy as np
14
  import torch