2021-05-02 21:09:07 -04:00
|
|
|
#!/bin/sh -e
|
2021-04-07 09:37:12 -04:00
|
|
|
|
2021-04-27 11:18:18 -04:00
|
|
|
echo "Number of make jobs: " | tr -d '\n' # 4
|
|
|
|
read -r mj
|
|
|
|
|
2021-04-07 09:37:12 -04:00
|
|
|
# ------------------ Anime4KCPP -------------------------- #
|
|
|
|
# Need cmake, libopencv4-devel, ocl-icd-devel, libgomp-devel
|
|
|
|
git clone https://github.com/TianZerl/Anime4KCPP.git
|
2021-05-02 21:09:07 -04:00
|
|
|
cd Anime4KCPP
|
2021-04-07 09:37:12 -04:00
|
|
|
mkdir build && cd build
|
|
|
|
cmake ..
|
2021-04-27 11:18:18 -04:00
|
|
|
make -j${mj}
|
2021-04-07 09:37:12 -04:00
|
|
|
cp -f bin/Anime4KCPP_CLI ~/.local/bin/
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
# ----------------- Anime4K shaders ---------------------- #
|
2021-09-26 16:37:04 -04:00
|
|
|
echo "Version of Anime4K shaders: " | tr -d '\n' # 4.0.1
|
2021-04-07 09:37:12 -04:00
|
|
|
read -r version
|
2021-09-26 16:37:04 -04:00
|
|
|
if [ -d "$HOME/.config/mpv/shaders" ]; then
|
|
|
|
rm -rf ~/.config/mpv/shaders
|
|
|
|
fi
|
|
|
|
curl -fLo Anime4K.zip https://github.com/bloc97/Anime4K/releases/download/${version}/Anime4K_v4.0.zip
|
|
|
|
unzip Anime4K.zip -d ~/.config/mpv/shaders && rm Anime4K.zip
|
2021-04-20 20:18:47 -04:00
|
|
|
|
|
|
|
# ------------------- PyWrapper -------------------------- #
|
|
|
|
# Need pymkv, pymediainfo, simple-term-menu (use pip inside a virtualenv)
|
|
|
|
git clone https://github.com/ThoughtfulDev/Anime4K.git ~/.local/bin/Anime4K-PyWrapper
|
|
|
|
cp -rfv shaders ~/.local/bin/Anime4K-PyWrapper/
|
|
|
|
|
2021-04-26 21:46:52 -04:00
|
|
|
# ----------------- waifu2x-converter-cpp ---------------- #
|
|
|
|
# Need opencv4 (binary), ocl-icd-devel, cmake (and cuda if using Nvidia)
|
|
|
|
git clone https://github.com/DeadSix27/waifu2x-converter-cpp
|
2021-05-02 21:09:07 -04:00
|
|
|
cd waifu2x-converter-cpp
|
2021-04-26 21:46:52 -04:00
|
|
|
mkdir build && cd build
|
|
|
|
cmake ..
|
2021-04-27 11:18:18 -04:00
|
|
|
make -j${mj}
|
2021-04-26 21:46:52 -04:00
|
|
|
cp -f waifu2x-converter-cpp ~/.local/bin/
|
|
|
|
cd ../..
|
|
|
|
|
2021-04-20 20:18:47 -04:00
|
|
|
# ------------------ Video2X ----------------------------- #
|
|
|
|
# Read the `requirements.txt`.
|
|
|
|
# Change the config file video2x.yaml (we don't use Windows)
|
|
|
|
#git clone https://github.com/k4yt3x/video2x.git
|
|
|
|
#cp -rfv video2x/src ~/.local/bin/video2x
|
|
|
|
|
2021-09-26 16:37:04 -04:00
|
|
|
# -- Dandere2x, waifu2x, waifu2x-ncnn-vulkan -- #
|