cvlab-columbia / viper

Code for the paper "ViperGPT: Visual Inference via Python Execution for Reasoning"
Other
1.63k stars 117 forks source link

Not working on Apple Silicon #14

Closed mberman84 closed 1 year ago

mberman84 commented 1 year ago

I'm trying to get this working on my Mac M2. However, Decord doesn't seem to have a version for Apple Silicon. Alternatively, I've been trying to get it to work with Google Colab, but Conda + Colab has been difficult. Any suggestions for what to do?

surisdi commented 1 year ago

Hi,

decord is only used to load videos, so if you want to try ViperGPT on images, you can just comment out the lines that import decord (this line and the next one).

If you want to load videos, you can replace the get_video function with one that uses another library (here are some alternatives).

We have not tried the code on macOS, so you may encounter other issues.