luca-medeiros / lang-segment-anything

SAM with text prompt
Apache License 2.0
1.53k stars 167 forks source link

ERROR: No matching distribution found for groundingdinoPlease read & provide the following #51

Open SiyuYan02 opened 6 months ago

SiyuYan02 commented 6 months ago

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

s183898 commented 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']

s183898 commented 6 months ago

My problem turned out to be mentioned on installation guide for groundingdino.

CatDroid commented 6 months ago

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 ?

CatDroid commented 6 months ago

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 ?

liuwenxin0410 commented 4 months ago

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 .

liuwenxin0410 commented 4 months ago

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

TimeChloe commented 2 months ago

You can try pip install nw-groundingdino, this works for me.