Open lvilaca16 opened 2 weeks ago
Sams issue with Python 3.9.20
and numpy 2.0.2
. I solved it by use Conda to create a Python 3.11
env with pip installed numpy 2.1.2
, pip installed salesforce-lavis==1.0.2
and conda installed opencv
, which should be 4.10.0
without specifying version number
UPDATE
when run models still got runtime error due to numpy or opencv
Sams issue with Python
3.9.20
and numpy2.0.2
. I solved it by use Conda to create a Python3.11
env with pip installed numpy2.1.2
, pip installedsalesforce-lavis==1.0.2
and conda installedopencv
, which should be4.10.0
without specifying version number
I encountered the same issue. Following your method for installation:
conda create -n lavis python=3.11
conda activate lavis
pip install numpy==2.1.2
pip install salesforce-lavis==1.0.2
conda install opencv
Then, using from lavis.models import model_zoo
raises an error indicating that some packages are missing. I installed the following packages: pip install torchaudio moviepy peft easydict diffusers
However, when I continue using from lavis.models import model_zoo
, I still get the error:
RuntimeError: Failed to import diffusers.models.autoencoders.autoencoder_kl because of the following error (look up to see its traceback):
Failed to import diffusers.schedulers.scheduling_dpmsolver_multistep because of the following error (look up to see its traceback):
maximum recursion depth exceeded
Have you encountered such a problem? Thank you for your help!
When generates output still outputs runtime error due to incompatible numpy ver
Only installs, but sill have runtime error When generates output still outputs runtime error due to incompatible numpy ver
To resolve version compatibility issues between diffusers
and huggingface_hub
, as well as between numpy
and lavis
, I applied the following fixes, and now the demo runs successfully:
pip install diffusers==0.16.0
pip install huggingface_hub==0.24.6
pip install spacy==3.6.0
pip install numpy==1.24.0
Only installs, but sill have runtime error When generates output still outputs runtime error due to incompatible numpy ver
To resolve version compatibility issues between
diffusers
andhuggingface_hub
, as well as betweennumpy
andlavis
, I applied the following fixes, and now the demo runs successfully:pip install diffusers==0.16.0 pip install huggingface_hub==0.24.6 pip install spacy==3.6.0 pip install numpy==1.24.0
where mode zoo models can be downloaded?
You can try to install opencv-python! I solve this problem by doing this
pip install opencv-python
I am currently using
salesforce-lavis
to use BLIP-2. I am getting errors regarding incompatibilities between numpy and opencv. Despite multiple warnings, I updated both packages and it worked, thus I am listing this issue for registration purposes.Current environment:
It installs the following versions:
4.5.5.64
numpy:
2.0.2
Error traceback:
My solution: