liuyizhang commited on
Commit
d1309f0
1 Parent(s): 3d82317

update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -1,10 +1,11 @@
1
 
2
  import subprocess
3
 
4
- result = subprocess.run(['pip', 'install', '-e', 'segment_anything'], check=True)
5
- print(f'liuyz_install segment_anything result = {result}')
6
- result = subprocess.run(['pip', 'install', '-e', 'Grounding_DINO'], check=True)
7
- print(f'liuyz_install Grounding_DINO result = {result}')
 
8
 
9
  result = subprocess.run(['pip', 'list'], check=True)
10
  print(f'liuyz_pip list result = {result}')
@@ -183,7 +184,7 @@ def show_box(box, ax, label):
183
  ax.text(x0, y0, label)
184
 
185
 
186
- config_file = 'GroundingDINO/groundingdino/config/GroundingDINO_SwinT_OGC.py'
187
  ckpt_repo_id = "ShilongLiu/GroundingDINO"
188
  ckpt_filenmae = "groundingdino_swint_ogc.pth"
189
  sam_checkpoint = './sam_vit_h_4b8939.pth'
 
1
 
2
  import subprocess
3
 
4
+ is 0==1:
5
+ result = subprocess.run(['pip', 'install', '-e', 'segment_anything'], check=True)
6
+ print(f'liuyz_install segment_anything result = {result}')
7
+ result = subprocess.run(['pip', 'install', '-e', 'Grounding_DINO'], check=True)
8
+ print(f'liuyz_install Grounding_DINO result = {result}')
9
 
10
  result = subprocess.run(['pip', 'list'], check=True)
11
  print(f'liuyz_pip list result = {result}')
 
184
  ax.text(x0, y0, label)
185
 
186
 
187
+ config_file = 'Grounding_DINO/groundingdino/config/GroundingDINO_SwinT_OGC.py'
188
  ckpt_repo_id = "ShilongLiu/GroundingDINO"
189
  ckpt_filenmae = "groundingdino_swint_ogc.pth"
190
  sam_checkpoint = './sam_vit_h_4b8939.pth'