LLaVA
LLaVA copied to clipboard
ERROR when running the CLI.
Discussion
Good afternoon everybody!
I'm Paulo Roberto, born in Rio de Janeiro - Brazil
I really need help.
https://github.com/haotian-liu/LLaVA?tab=readme-ov-file#Demo
python -m llava.serve.cli
--model-path liuhaotian/llava-v1.5-7b
--image-file "https://llava-vl.github.io/static/images/view.jpg"
--load-4bit
My environment is WSL2 (Windows 11)
The mistake
(llava) prsantos@LAPTOP-940KNJ7R:~/Desenvolvimentos/ProjetosPython/ProjetosITTech/LLaVA$ python -m llava.serve.cli
--model-path liuhaotian/llava-v1.5-7b
--image-file "https://llava-vl.github.io/static/images/view.jpg"
--load-4bit
Traceback (most recent call last):
File "self.legacy = False
)")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/prsantos/miniconda3/envs/llava/lib/python3.11/site-packages/transformers/convert_slow_tokenizer.py", line 43, in import_protobuf
raise ImportError(PROTOBUF_IMPORT_ERROR.format(error_message))
ImportError:
The new behavior of LlamaTokenizer (with self.legacy = False
) requires the protobuf library but it was not found in your environment. Checkout the instructions on the
installation page of its repo: https://github.com/protocolbuffers/protobuf/tree/master/python#installation and follow the ones
that matches your environment. Please note that you may need to restart your runtime after installation.
Can you help me please?
I need to use LLaVA to analyze several images using a Python script.
I'm having a lot of trouble getting this result.
Thank you in advance for the feedback.
Do you slove this bug? I also encounter this 🌧️ . Thanks for your kindly reply! 🌹
Have you try install protobuf
? Maybe try pip install protobuf
Yes, I already sloved it by pip install protobuf