GithubHelp home page GithubHelp logo

Comments (12)

hiwgy avatar hiwgy commented on May 23, 2024 5

Mac, M1

I have met and solved this problem like this:
1、brew install cmake ffmpeg@4, (ffmpeg5 not work,cause decord need ffmpeg4)
2、install decord from source code
3、install lavis from source code

from lavis.

Nutlope avatar Nutlope commented on May 23, 2024 4

@dxli94 That didn't work for me. I even tried downgrading to python 3.8 and python 3.7, but kept getting the same issue. I'm on an M1 Mac. How can I fix this?

from lavis.

thoklei avatar thoklei commented on May 23, 2024 2

So I'm unable to use it for calling BLIP2

Obviously not a viable long-term solution, but if all you (or anyone else coming here) want to do is just calling BLIP to do e.g. image captioning, you can clone the repo, comment out the decord imports in lavis/datasets/data_utils.py as well as commenting out / removing decord in requirements.txt, and then running pip install -e ., that worked for me.

from lavis.

Marco75116 avatar Marco75116 commented on May 23, 2024 1

ERROR: Could not find a version that satisfies the requirement decord (from versions: none)
ERROR: No matching distribution found for decord

from lavis.

prithvi-srinivasan avatar prithvi-srinivasan commented on May 23, 2024 1

Hi, from the other closed issue #122 , I tried removing decord from requirements. txt but it's still required by load_model_and_preprocess function. Check screenshot attached. So I'm unable to use it for calling BLIP2 @dxli94
Screen Shot 2023-02-15 at 4 57 11 PM

from lavis.

dxli94 avatar dxli94 commented on May 23, 2024

Hi @jhwang7628 ,

Thanks for your interest.

Can you install decord if removing the requirement on its versions? E.g. decord>=0.6.0 into decord in requirement-dev.txt.

Thanks.

from lavis.

dxli94 avatar dxli94 commented on May 23, 2024

@dxli94 That didn't work for me. I even tried downgrading to python 3.8 and python 3.7, but kept getting the same issue. I'm on an M1 Mac. How can I fix this?

Hi @Nutlope , what is the error message you get?

from lavis.

taki0112 avatar taki0112 commented on May 23, 2024

is it solved ?

from lavis.

itissid avatar itissid commented on May 23, 2024

So I'm unable to use it for calling BLIP2

Obviously not a viable long-term solution, but if all you (or anyone else coming here) want to do is just calling BLIP to do e.g. image captioning, you can clone the repo, comment out the decord imports in lavis/datasets/data_utils.py as well as commenting out / removing decord in requirements.txt, and then running pip install -e ., that worked for me.

This worked for getting past the decord error. Especially for running the colab notebook example in LAVIS's Homepage on github

from lavis.

omar404ahmed avatar omar404ahmed commented on May 23, 2024

Mac, M1

I have met and solved this problem like this: 1、brew install cmake ffmpeg@4, (ffmpeg5 not work,cause decord need ffmpeg4) 2、install decord from source code 3、install lavis from source code

This worked wonders, Thanks @hiwgy

from lavis.

thatrandomfrenchdude avatar thatrandomfrenchdude commented on May 23, 2024

Mac, M1

I have met and solved this problem like this: 1、brew install cmake ffmpeg@4, (ffmpeg5 not work,cause decord need ffmpeg4) 2、install decord from source code 3、install lavis from source code

I tried this and it worked successfully until I hit a dependency issue with LAVIS. LAVIS requires open3d==0.13.0 which is only supported by python 3.6, 3.7, and 3.8 (see docs).

I tried to downgrade to python 3.8, but decode requires >= python 3.9. Thus, stuck in a dependency loop. Will keep exploring and update if I find anything.

For reference, I am running python 3.11.2 on an M1 Pro Mac.

PS - if you have ffmpeg@5 installed, you need to overwrite the homebrew symlink.
brew link --overwrite ffmpeg@4

from lavis.

thatrandomfrenchdude avatar thatrandomfrenchdude commented on May 23, 2024

Mac, M1
I have met and solved this problem like this: 1、brew install cmake ffmpeg@4, (ffmpeg5 not work,cause decord need ffmpeg4) 2、install decord from source code 3、install lavis from source code

I tried this and it worked successfully until I hit a dependency issue with LAVIS. LAVIS requires open3d==0.13.0 which is only supported by python 3.6, 3.7, and 3.8 (see docs).

I tried to downgrade to python 3.8, but decode requires >= python 3.9. Thus, stuck in a dependency loop. Will keep exploring and update if I find anything.

For reference, I am running python 3.11.2 on an M1 Pro Mac.

PS - if you have ffmpeg@5 installed, you need to overwrite the homebrew symlink. brew link --overwrite ffmpeg@4

Just to update on this, I finally got lavis to install. What worked for me was this:

  1. install ffmpeg@4 using brew install ffmpeg@4
  2. update the link since I had ffmpeg5 using brew link --overwrite ffmpeg@4
  3. install decode from source using instructions here
  4. install lavis from PyPi using pip install salesforce-lavis

from lavis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.