Spaces:
Runtime error
Runtime error
Update grounded_sam_inpainting_demo.py
Browse files
grounded_sam_inpainting_demo.py
CHANGED
@@ -7,11 +7,11 @@ import torch
|
|
7 |
from PIL import Image, ImageDraw, ImageFont
|
8 |
|
9 |
# Grounding DINO
|
10 |
-
import
|
11 |
-
from
|
12 |
-
from
|
13 |
-
from
|
14 |
-
from
|
15 |
|
16 |
# segment anything
|
17 |
from segment_anything import build_sam, SamPredictor
|
|
|
7 |
from PIL import Image, ImageDraw, ImageFont
|
8 |
|
9 |
# Grounding DINO
|
10 |
+
import groundingdino.datasets.transforms as T
|
11 |
+
from groundingdino.models import build_model
|
12 |
+
from groundingdino.util import box_ops
|
13 |
+
from groundingdino.util.slconfig import SLConfig
|
14 |
+
from groundingdino.util.utils import clean_state_dict, get_phrases_from_posmap
|
15 |
|
16 |
# segment anything
|
17 |
from segment_anything import build_sam, SamPredictor
|