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