TRI-ML / vlm-evaluation

VLM Evaluation: Benchmark for VLMs, spanning text generation tasks from VQA to Captioning
Other
89 stars 10 forks source link

conflict error: pip install - e . #11

Open WenjunHuang94 opened 6 months ago

WenjunHuang94 commented 6 months ago

How can I resolve an error message when using the pip install - e. command to install vlm-evaluation? image

The library I installed is currently as follows: image

Liuxueyi commented 5 months ago

Hi, I have met the same problem. Did you solve it?

benoriol commented 5 months ago

Did anyone solve this error?

tangwh20 commented 4 months ago

Same error, did anyone solve it?

Shinechaote commented 2 months ago

Hey, I solved this problem. If you look at the logs (the error is not in the picture of the original poster) you will see that pip cannot find a version that fits all the requirements. You need to add a version for a few of the packages specified in pyproject.toml. Also if you want to install a transformer version that is newer than 4.34.1 you need comment out.from .llava import LLaVa in vlm_eval/models/init.py

If someone has a better way of dealing with this please let me know.

I currently do not have time to make sure that the versions I specified but this is what the dependencies section in my pyproject.toml looks like:


dependencies = [
    "accelerate>=0.25.0",
    "ascii_magic",
    "draccus @ git+https://github.com/dlwh/draccus",
    "gradio==3.35.2",
    "gradio_client==0.2.9",
    "pydantic==1.10.14",
    "jsonlines",
    "jinja2==3.0.3",
    "llava @ git+https://github.com/suraj-nair-tri/LLaVA",
    "mosaicml-streaming>=0.5.0",
    "openai",
    "prismatic @ git+https://github.com/TRI-ML/prismatic-vlms",
    "pycocotools",
    "rich",
    "scikit-image",
    "salesforce-lavis @ git+https://github.com/siddk/LAVIS",
    "torch>=2.1.0",
    "torchvision",
    "torchaudio",
    "transformers>=4.34.1", ## Pinned to avoid namespace conflict with LLaVa models
    "webdataset",
    "pymongo",
    "spacy==3.7.3"
]