sunnychenxiwang commited on
Commit
f07c545
·
verified ·
1 Parent(s): 09efc91

Update pipeline/tool/object_detetction_model.py

Browse files
pipeline/tool/object_detetction_model.py CHANGED
@@ -14,10 +14,10 @@ from PIL import Image
14
  import numpy as np
15
  from torchvision.ops import box_convert
16
  from pipeline.tool.scene_text_model import *
17
- import sys
18
- sys.path.append("pipeline/GroundingDINO")
19
- from groundingdino.util.inference import load_model, load_image, predict, annotate
20
- # from pipeline.GroundingDINO.groundingdino.util.inference import load_model, load_image, predict, annotate
21
 
22
 
23
 
 
14
  import numpy as np
15
  from torchvision.ops import box_convert
16
  from pipeline.tool.scene_text_model import *
17
+ # import sys
18
+ # sys.path.append("pipeline/GroundingDINO")
19
+ # from groundingdino.util.inference import load_model, load_image, predict, annotate
20
+ from pipeline.GroundingDINO.groundingdino.util.inference import load_model, load_image, predict, annotate
21
 
22
 
23