ikuinen99 commited on
Commit
0655679
1 Parent(s): 9a31057
Dockerfile DELETED
@@ -1,2 +0,0 @@
1
- ENV CUDA_HOME /usr/local/cuda-11.3/
2
- RUN pip install git+https://github.com/IDEA-Research/GroundingDINO.git
 
 
 
app.py CHANGED
@@ -67,7 +67,7 @@ args = parse_args()
67
 
68
  assert args.dummy or (args.cfg_path is not None), "Invalid Config! Set --dummy or configurate the cfg_path!"
69
 
70
- device = 'cuda:{}'.format(args.gpu_id) if torch.cuda.is_available() else 'cpu'
71
 
72
  if not args.dummy:
73
  cfg = Config(args)
 
67
 
68
  assert args.dummy or (args.cfg_path is not None), "Invalid Config! Set --dummy or configurate the cfg_path!"
69
 
70
+ device = 'cuda'.format(args.gpu_id) if torch.cuda.is_available() else 'cpu'
71
 
72
  if not args.dummy:
73
  cfg = Config(args)
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
 
pre-requirements.txt CHANGED
@@ -1,4 +1,3 @@
1
- --extra-index-url https://download.pytorch.org/whl/cu113
2
- torch==1.12.1
3
- torchvision==0.13.1
4
- torchaudio==0.12.1
 
1
+ torch
2
+ torchvision
3
+ torchaudio
 
requirements.txt CHANGED
@@ -68,5 +68,5 @@ omegaconf
68
  git+https://github.com/facebookresearch/segment-anything.git
69
  git+https://github.com/IDEA-Research/GroundingDINO.git
70
  fairscale
71
- --extra-index-url https://download.openmmlab.com/mmcv/dist/cu113/torch1.12/index.html
72
- mmcv==2.0.0rc4
 
68
  git+https://github.com/facebookresearch/segment-anything.git
69
  git+https://github.com/IDEA-Research/GroundingDINO.git
70
  fairscale
71
+ --extra-index-url https://download.openmmlab.com/mmcv/dist/cu117/torch2.0/index.html
72
+ mmcv==2.0.0