Spaces:
Runtime error
Runtime error
liuyizhang
commited on
Commit
·
c7f215e
1
Parent(s):
5e2a122
update transforms.py
Browse files
GroundingDINO/groundingdino/datasets/transforms.py
CHANGED
|
@@ -10,8 +10,8 @@ import torch
|
|
| 10 |
import torchvision.transforms as T
|
| 11 |
import torchvision.transforms.functional as F
|
| 12 |
|
| 13 |
-
from groundingdino.util.box_ops import box_xyxy_to_cxcywh
|
| 14 |
-
from groundingdino.util.misc import interpolate
|
| 15 |
|
| 16 |
|
| 17 |
def crop(image, target, region):
|
|
|
|
| 10 |
import torchvision.transforms as T
|
| 11 |
import torchvision.transforms.functional as F
|
| 12 |
|
| 13 |
+
from GroundingDINO.groundingdino.util.box_ops import box_xyxy_to_cxcywh
|
| 14 |
+
from GroundingDINO.groundingdino.util.misc import interpolate
|
| 15 |
|
| 16 |
|
| 17 |
def crop(image, target, region):
|