Spaces:
Runtime error
Runtime error
update
Browse files
groundingdino/models/GroundingDINO/ms_deform_attn.py
CHANGED
@@ -26,11 +26,11 @@ from torch.autograd.function import once_differentiable
|
|
26 |
from torch.nn.init import constant_, xavier_uniform_
|
27 |
|
28 |
try:
|
29 |
-
|
30 |
-
from mmcv.utils import ext_loader
|
31 |
|
32 |
-
_C = ext_loader.load_ext(
|
33 |
-
|
34 |
except:
|
35 |
print("Failed to load custom C++ ops. Running on CPU mode Only!")
|
36 |
|
|
|
26 |
from torch.nn.init import constant_, xavier_uniform_
|
27 |
|
28 |
try:
|
29 |
+
from groundingdino import _C
|
30 |
+
# from mmcv.utils import ext_loader
|
31 |
|
32 |
+
# _C = ext_loader.load_ext(
|
33 |
+
# '_ext', ['ms_deform_attn_backward', 'ms_deform_attn_forward'])
|
34 |
except:
|
35 |
print("Failed to load custom C++ ops. Running on CPU mode Only!")
|
36 |
|