Grounded-Segment-Anything icon indicating copy to clipboard operation
Grounded-Segment-Anything copied to clipboard

When will cuda12.1 be supported for GroundingDINO

Open yumianhuli1 opened this issue 1 year ago • 5 comments

RT thanks!

yumianhuli1 avatar Jan 14 '24 12:01 yumianhuli1

Hello, when you're using cuda12.1, what type of error did you meet, to our knowledge, grounding-dino can be successfully worked under cuda12.1 with Torch 2.1.2 @yumianhuli1

rentainhe avatar Jan 14 '24 16:01 rentainhe

Hello, when you're using cuda12.1, what type of error did you meet, to our knowledge, grounding-dino can be successfully worked under cuda12.1 with Torch 2.1.2 @yumianhuli1

Hi! I have compiled Successfully installed groundingdino-0.1.0 But when I run the demo

  1. it shows:The Failed to load custom C++ ops. Running on CPU mode Only!
  2. Load the local model and say PermissionError: [Errno 13] Permission denied: ”model path“

I use cuda12.1 and pytorch2.1.1 gpu version

import torch print(torch.version) 2.1.1+cu121

yumianhuli1 avatar Jan 15 '24 01:01 yumianhuli1

Hello, when you're using cuda12.1, what type of error did you meet, to our knowledge, grounding-dino can be successfully worked under cuda12.1 with Torch 2.1.2 @yumianhuli1

Hi! I have compiled Successfully installed groundingdino-0.1.0 But when I run the demo

  1. it shows:The Failed to load custom C++ ops. Running on CPU mode Only!
  2. Load the local model and say PermissionError: [Errno 13] Permission denied: ”model path“

I use cuda12.1 and pytorch2.1.1 gpu version

import torch print(torch.version) 2.1.1+cu121

Hello, have u set the CUDA_HOME environment param to your cuda-12.1 Runtime, you should double-check this, in my env, after setting CUDA_HOME=/path/to/cuda-12.1 the custom Deformable-Attention operator can be successfully installed.

For the second question, could u give us more info? I'm not sure which part of the model can not be loaded well, in loading BERT weight or loading G-DINO weight. And this might be a system permission issue, it should not be an environmental problem, I guess

rentainhe avatar Jan 15 '24 02:01 rentainhe

Hello, when you're using cuda12.1, what type of error did you meet, to our knowledge, grounding-dino can be successfully worked under cuda12.1 with Torch 2.1.2 @yumianhuli1

Hi! I have compiled Successfully installed groundingdino-0.1.0 But when I run the demo

  1. it shows:The Failed to load custom C++ ops. Running on CPU mode Only!
  2. Load the local model and say PermissionError: [Errno 13] Permission denied: ”model path“

I use cuda12.1 and pytorch2.1.1 gpu version import torch print(torch.version) 2.1.1+cu121

Hello, have u set the CUDA_HOME environment param to your cuda-12.1 Runtime, you should double-check this, in my env, after setting CUDA_HOME=/path/to/cuda-12.1 the custom Deformable-Attention operator can be successfully installed.

For the second question, could u give us more info? I'm not sure which part of the model can not be loaded well, in loading BERT weight or loading G-DINO weight. And this might be a system permission issue, it should not be an environmental problem, I guess

Hello, I am using the win11 environment, and set system environment var of CUDA_HOME-- C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin ,But it didn't work.

yumianhuli1 avatar Jan 17 '24 09:01 yumianhuli1

UDA_HOME-- C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1 only, dont put bin in there

JohanHuynh0130 avatar Feb 13 '24 23:02 JohanHuynh0130