Open SiyuYan02 opened 6 months ago
I am also having problems with groundingdino. I am on an ssh connection to a server. In my case I get:
File "(...)/.local/lib/python3.10/site-packages/groundingdino/models/GroundingDINO/ms_deform_attn.py", line 53, in forward
output = _C.ms_deform_attn_forward(NameError: name '_C' is not defined)
The full output:
`(...)/.local/lib/python3.10/site-packages/groundingdino/models/GroundingDINO/ms_deform_attn.py:31: UserWarning: Failed to load custom C++ ops. Running on CPU mode Only! warnings.warn("Failed to load custom C++ ops. Running on CPU mode Only!") (...)/.local/lib/python3.10/site-packages/torch/functional.py:507: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3549.) return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined] Some weights of the model checkpoint at bert-base-uncased were not used when initializing BertModel: ['cls.seq_relationship.weight', 'cls.seq_relationship.bias', 'cls.predictions.transform.LayerNorm.bias', 'cls.predictions.transform.dense.bias', 'cls.predictions.bias', 'cls.predictions.transform.dense.weight', 'cls.predictions.transform.LayerNorm.weight']
device
argument is deprecated and will be removed in v5 of Transformers.
warnings.warn(
(...)/.local/lib/python3.10/site-packages/torch/utils/checkpoint.py:460: UserWarning: torch.utils.checkpoint: please pass in use_reentrant=True or use_reentrant=False explicitly. The default value of use_reentrant will be updated to be False in the future. To maintain current behavior, pass use_reentrant=True. It is recommended that you use use_reentrant=False. Refer to docs for more details on the differences between the two variants.
warnings.warn(
(...)/.local/lib/python3.10/site-packages/torch/utils/checkpoint.py:90: UserWarning: None of the inputs have requires_grad=True. Gradients will be None
warnings.warn(
Traceback (most recent call last):
File "(...).py", line 19, in My problem turned out to be mentioned on installation guide for groundingdino.
Pip subprocess error: ERROR: Ignored the following versions that require a different python version: 1.2.0 Requires-Python >=3.9 ERROR: Could not find a version that satisfies the requirement groundingdino==0.1.0 (from versions: none) ERROR: No matching distribution found for groundingdino==0.1.0
I meet the same problem . it seems groundingdino version 0.1.0 not exists ? and groundingdino version 1.2.0 require python 3.9 ?
Branch: main
Commit: f4ca2960a97cb73aff2c459a9d0f06c7674452e4
ERROR: Ignored the following versions that require a different python version: 1.2.0 Requires-Python >=3.9 ERROR: Could not find a version that satisfies the requirement lang-sam==0.1.0 (from versions: none) ERROR: No matching distribution found for lang-sam==0.1.0
package lang-sam==0.1.0 not in pipy or conda-forge source ?
I successfully installed it with the following command. Installation:
1.Clone the GroundingDINO repository from GitHub.
git clone https://github.com/IDEA-Research/GroundingDINO.git
Change the current directory to the GroundingDINO folder.
cd GroundingDINO/
Install the required dependencies in the current directory. pip install -e .
But In lang_sam.py file, I detect that the model = build_model(args) command of the load_model_hf function cannot be executed. why?thank you
You can try pip install nw-groundingdino, this works for me.
Instructions To Reproduce the 🐛 Bug:
When I want to get the environment installed, I meet the error: ERROR: Could not find a version that satisfies the requirement groundingdino (from versions: none) ERROR: No matching distribution found for groundingdino
how can I fix this