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