Spaces:
Sleeping
Sleeping
Update pipeline/GroundingDINO/groundingdino/util/inference.py
Browse files
pipeline/GroundingDINO/groundingdino/util/inference.py
CHANGED
|
@@ -8,11 +8,11 @@ from PIL import Image
|
|
| 8 |
from torchvision.ops import box_convert
|
| 9 |
import bisect
|
| 10 |
|
| 11 |
-
import groundingdino.datasets.transforms as T
|
| 12 |
-
from groundingdino.models import build_model
|
| 13 |
-
from groundingdino.util.misc import clean_state_dict
|
| 14 |
-
from groundingdino.util.slconfig import SLConfig
|
| 15 |
-
from groundingdino.util.utils import get_phrases_from_posmap
|
| 16 |
|
| 17 |
# ----------------------------------------------------------------------------------------------------------------------
|
| 18 |
# OLD API
|
|
|
|
| 8 |
from torchvision.ops import box_convert
|
| 9 |
import bisect
|
| 10 |
|
| 11 |
+
import pipeline.GroundingDINO.groundingdino.datasets.transforms as T
|
| 12 |
+
from pipeline.GroundingDINO.groundingdino.models import build_model
|
| 13 |
+
from pipeline.GroundingDINO.groundingdino.util.misc import clean_state_dict
|
| 14 |
+
from pipeline.GroundingDINO.groundingdino.util.slconfig import SLConfig
|
| 15 |
+
from pipeline.GroundingDINO.groundingdino.util.utils import get_phrases_from_posmap
|
| 16 |
|
| 17 |
# ----------------------------------------------------------------------------------------------------------------------
|
| 18 |
# OLD API
|