Spaces:
Running
on
T4
Running
on
T4
liuyizhang
commited on
Commit
•
88b6248
1
Parent(s):
73dbfbb
update app.py
Browse files
app.py
CHANGED
@@ -23,11 +23,11 @@ import torch
|
|
23 |
from PIL import Image, ImageDraw, ImageFont
|
24 |
|
25 |
# Grounding DINO
|
26 |
-
import
|
27 |
-
from groundingdino.models import build_model
|
28 |
-
from groundingdino.util import box_ops
|
29 |
-
from groundingdino.util.slconfig import SLConfig
|
30 |
-
from groundingdino.util.utils import clean_state_dict, get_phrases_from_posmap
|
31 |
|
32 |
# segment anything
|
33 |
from segment_anything import build_sam, SamPredictor
|
|
|
23 |
from PIL import Image, ImageDraw, ImageFont
|
24 |
|
25 |
# Grounding DINO
|
26 |
+
import GroundingDINO.groundingdino.datasets.transforms as T
|
27 |
+
from GroundingDINO.groundingdino.models import build_model
|
28 |
+
from GroundingDINO.groundingdino.util import box_ops
|
29 |
+
from GroundingDINO.groundingdino.util.slconfig import SLConfig
|
30 |
+
from GroundingDINO.groundingdino.util.utils import clean_state_dict, get_phrases_from_posmap
|
31 |
|
32 |
# segment anything
|
33 |
from segment_anything import build_sam, SamPredictor
|