luca-medeiros / lang-segment-anything

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

software conflict #69

Closed xuyanging closed 1 week ago

xuyanging commented 1 month ago

Instructions To Reproduce the 🐛 Bug:

I try to run pip install -e . ,but it seems some conflicts. please help me

image

SridhanyaG commented 1 month ago

yes i am also facing same please help

darshanhegde commented 1 month ago

yes, I also have the same problem.

EwertzJN commented 1 month ago

I had the same problem and was able to resolve it with the help of this pull request: #68

MistyDragon7 commented 1 month ago

I believe I have fixed this issue, if yes then please close it.

mudomau commented 1 month ago

These were the ones causing the issue for me:

supervision >= 0.22.0 (current 0.6.0) pillow == 9.4.0 (current 9.3.0) huggingface-hub == 0.23.5 (current 0.13.4) lightning >= 2.3.3 <3.0.0 (current 2.0.5) transformers<5.0.0 and >=4.42.4 (current 4.2.4) lightning-utilities>=0.10.0 (current 0.9.0) safetensors>=0.4.1 (current 0.3.1) tokenizers<0.20 and >=0.19 (current 0.13.3)

After changing them I was able to complete the install, but I still had a different issue - Grounding DINO is not loading.

File ~/.conda/envs/lsa/lib/python3.8/site-packages/packaging/version.py:196, in Version.__init__(self, version)
    185 """Initialize a Version object.
    186 
    187 :param version:
   (...)
    192     exception will be raised.
    193 """
    195 # Validate the version and parse it into pieces
--> 196 match = self._regex.search(version)
    197 if not match:
    198     raise InvalidVersion(f"Invalid version: '{version}'")

TypeError: expected string or bytes-like object`

I tried the solution proposed here but it's not working for me - https://github.com/luca-medeiros/lang-segment-anything/issues/66#issuecomment-2230817571