ikuinen99 commited on
Commit
b0359a0
·
1 Parent(s): 523354c
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
- # 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
 
 
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