rootglitch commited on
Commit
4190676
·
verified ·
1 Parent(s): 1137f60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -1,6 +1,16 @@
1
  import os
2
  from huggingface_hub import hf_hub_download
3
 
 
 
 
 
 
 
 
 
 
 
4
  # Fetch code from a private repo
5
  code_path = hf_hub_download(
6
  repo_id="rootglitch/CarVizGradioDemo01",
 
1
  import os
2
  from huggingface_hub import hf_hub_download
3
 
4
+ os.system("wget https://github.com/IDEA-Research/GroundingDINO.git")
5
+ os.system("wget https://github.com/SysCV/sam-hq.git")
6
+ os.system("python -m pip install -e sam-hq")
7
+ os.system("python -m pip install -e GroundingDINO")
8
+ # os.system("pip install opencv-python pycocotools matplotlib onnxruntime onnx ipykernel")
9
+ # os.system("wget https://huggingface.co/ShilongLiu/GroundingDINO/resolve/main/groundingdino_swint_ogc.pth")
10
+ # os.system("wget https://huggingface.co/lkeab/hq-sam/resolve/main/sam_hq_vit_l.pth")
11
+ sys.path.append(os.path.join(os.getcwd(), "GroundingDINO"))
12
+ sys.path.append(os.path.join(os.getcwd(), "sam-hq"))
13
+
14
  # Fetch code from a private repo
15
  code_path = hf_hub_download(
16
  repo_id="rootglitch/CarVizGradioDemo01",