AlphaAtlas / VapourSynthColab

AI Video Processing/Upscaling With VapourSynth in Google Colab
MIT License
112 stars 14 forks source link

Error trying to install. #8

Open Jerchongkong opened 3 years ago

Jerchongkong commented 3 years ago

Two days ago this worked perfectly, but then I have this error:

Processing triggers for man-db (2.8.3-2ubuntu0.1) ... [youtube] I_8ZH1Ggjk0: Downloading webpage [download] Destination: /content/enhance.webm [download] 100% of 566.07KiB in 00:00 ldconfig: /usr/local/lib/python3.7/dist-packages/ideep4py/lib/libmkldnn.so.0 is not a symbolic link

VS plugin thread done. Building additional plugins / /src/VapourSynth-DCTFilter Cloning into 'VapourSynth-DCTFilter'... remote: Enumerating objects: 33, done. remote: Total 33 (delta 0), reused 0 (delta 0), pack-reused 33 Unpacking objects: 100% (33/33), done. /src/VapourSynth-DCTFilter/VapourSynth-DCTFilter /bin/bash: meson: command not found ninja: Entering directory build' ninja: fatal: chdir to 'build' - No such file or directory ninja: Entering directorybuild' ninja: fatal: chdir to 'build' - No such file or directory / /src/VapourSynth-TTempSmooth Cloning into 'VapourSynth-TTempSmooth'... remote: Enumerating objects: 43, done. remote: Total 43 (delta 0), reused 0 (delta 0), pack-reused 43 Unpacking objects: 100% (43/43), done. /src/VapourSynth-TTempSmooth/VapourSynth-TTempSmooth /bin/bash: meson: command not found ninja: Entering directory build' ninja: fatal: chdir to 'build' - No such file or directory ninja: Entering directorybuild' ninja: fatal: chdir to 'build' - No such file or directory /

I guess this project is abandoned.

Jerchongkong commented 3 years ago

I answer myself, it seems that google colab has deleted or modified some functions in terms of python 3.6, torch and cupy so you have to install all the above mentioned again.

Before installing Vapoursynth, in a new code cell you have to paste this and run it:

!apt-get install python3-distutils
!apt-get install python3-apt

!wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz
!tar -xvf Python-3.6.3.tgz
%cd Python-3.6.3
!sudo ./configure --enable-optimizations
%cd /content/
!rm -rfv "./Python-3.6.3"
!rm -rfv "./Python-3.6.3.tgz"

!wget https://bootstrap.pypa.io/get-pip.py
!sudo python3.6 get-pip.py
!!rm -rfv "./get-pip.py"

Now in another code cell install Cupy and Torch paste this and run it.

!pip install torch
!pip install cupy-cuda101

Now install VapourSynth normally and From now on, everything should work fine.

Fix ffmpeg In the latest versions of ffmpeg you cannot use nvenc under collaborative GPUs, so you must install a specific version of ffmpeg. In a new code cell you must paste this and run it:

%cd /content/
!wget http://lliurex.net/bionic/pool/universe/f/ffmpeg/ffmpeg_3.4.2-2_amd64.deb
!sudo apt install ./ffmpeg_3.4.2-2_amd64.deb
!rm ./ffmpeg_3.4.2-2_amd64.deb

With this all problems must be solved.