luca-medeiros / lang-segment-anything

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

lang-sam 0.1.0 depends on transformers<5.0.0 and >=4.27.4 #20

Closed WASasquatch closed 7 months ago

WASasquatch commented 1 year ago

What transformer version does lang sam work on exactly? It gives me this error:

    The user requested transformers
    lang-sam 0.1.0 depends on transformers<5.0.0 and >=4.27.4
The conflict is caused by:
    The user requested transformers<5.0.0>=4.27.4
    lang-sam 0.1.0 depends on transformers<5.0.0 and >=4.27.4
    The user requested transformers>=4.27.4<5.0.0
    lang-sam 0.1.0 depends on transformers<5.0.0 and >=4.27.4

This one is a little more explanatory, maybe?

The conflict is caused by:
    transformers 4.27.4 depends on huggingface-hub<1.0 and >=0.11.0
    lang-sam 0.1.0 depends on huggingface-hub<0.14.0 and >=0.13.4
    gradio 3.35.2 depends on huggingface-hub>=0.14.0
    transformers 4.27.4 depends on huggingface-hub<1.0 and >=0.11.0
    lang-sam 0.1.0 depends on huggingface-hub<0.14.0 and >=0.13.4
    gradio 3.35.1 depends on huggingface-hub>=0.14.0
    transformers 4.27.4 depends on huggingface-hub<1.0 and >=0.11.0
    lang-sam 0.1.0 depends on huggingface-hub<0.14.0 and >=0.13.4
    gradio 3.35.0 depends on huggingface-hub>=0.14.0
    transformers 4.27.4 depends on huggingface-hub<1.0 and >=0.11.0
    lang-sam 0.1.0 depends on huggingface-hub<0.14.0 and >=0.13.4
    gradio 3.34.0 depends on huggingface-hub>=0.14.0
    transformers 4.27.4 depends on huggingface-hub<1.0 and >=0.11.0
    lang-sam 0.1.0 depends on huggingface-hub<0.14.0 and >=0.13.4
    gradio 3.33.1 depends on huggingface-hub>=0.14.0
    transformers 4.27.4 depends on huggingface-hub<1.0 and >=0.11.0
    lang-sam 0.1.0 depends on huggingface-hub<0.14.0 and >=0.13.4
    gradio 3.33.0 depends on huggingface-hub>=0.14.0

But I can't get transformers to install for lang sam even when I don't specify a version or use the range it wants for versions.

I was having no issues with transformers==4.26.1 for BLIP and such with ComfyUI and all that uses it, but now stuck trying to add some SAM prompt based masking in.

luca-medeiros commented 1 year ago

Right now it uses a non-restrict version that can be found here https://github.com/luca-medeiros/lang-segment-anything/blob/32cfe0f8363168abb0b77b052e7e755c97306c23/pyproject.toml#L23

About your issue, guess there is an inconsistency with huggingface-hub and gradio. Mind changing and testing huggingface-hub>0.14.0 inside pyproject?