nihui / rife-ncnn-vulkan

RIFE, Real-Time Intermediate Flow Estimation for Video Frame Interpolation implemented with ncnn library
MIT License
821 stars 68 forks source link

set up rife-ncnn-vulkan on google colab #46

Open mikebilly opened 2 years ago

mikebilly commented 2 years ago

It would be awesome if anyone could build on google colab for me! Because I've been getting this error:

/content/rife-ncnn-vulkan-20220330-ubuntu/rife-ncnn-vulkan: error while loading shared libraries: libvulkan.so.1: cannot open shared object file: No such file or directory
Mar2ck commented 2 years ago

Try:

!apt install libvulkan1
tjthejuggler commented 2 years ago

go to the place you want to install it either just in colab /content or your gdrive and run these !apt-get install libvulkan-dev !git clone https://github.com/nihui/rife-ncnn-vulkan.git %cd rife-ncnn-vulkan !git submodule update --init --recursive !apt update !apt install -y cmake !pip install dlib !mkdir build %cd build !cmake ../src !cmake --build . -j 4 ((move rife-v2.3 from models folder to build folder)) !/content/drive/MyDrive/AI/rife-ncnn-vulkan/build/rife-ncnn-vulkan -0 /content/image1.png -1 /content/image2.png -o /content/output.png

if you do it in your gdrive, then all you need to run in a fresh runtime is this

!apt-get install libvulkan-dev !chmod 755 /content/drive/MyDrive/AI/rife-ncnn-vulkan/build/rife-ncnn-vulkan !/content/drive/MyDrive/AI/rife-ncnn-vulkan/build/rife-ncnn-vulkan -0 /content/image1.png -1 /content/image2.png -o /content/output.png