mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-28 10:18:25 -05:00
setup: add installer for waifu2x-converter-cpp
This commit is contained in:
parent
ffdb51e5b1
commit
c56cd923d3
@ -4,27 +4,19 @@
|
|||||||
# Need cmake, libopencv4-devel, ocl-icd-devel, libgomp-devel
|
# Need cmake, libopencv4-devel, ocl-icd-devel, libgomp-devel
|
||||||
git clone https://github.com/TianZerl/Anime4KCPP.git
|
git clone https://github.com/TianZerl/Anime4KCPP.git
|
||||||
cd Anime4KCPP || exit 1
|
cd Anime4KCPP || exit 1
|
||||||
|
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
make
|
make -j4
|
||||||
|
|
||||||
cp -f bin/Anime4KCPP_CLI ~/.local/bin/
|
cp -f bin/Anime4KCPP_CLI ~/.local/bin/
|
||||||
|
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
echo "
|
|
||||||
"
|
|
||||||
|
|
||||||
# ----------------- Anime4K shaders ---------------------- #
|
# ----------------- Anime4K shaders ---------------------- #
|
||||||
echo "Version of Anime4K shaders: " | tr -d '\n' # 3.1
|
echo "Version of Anime4K shaders: " | tr -d '\n' # 3.1
|
||||||
read -r version
|
read -r version
|
||||||
|
|
||||||
mkdir shaders && cd shaders
|
mkdir shaders && cd shaders
|
||||||
curl -fLo Anime4K.zip https://github.com/bloc97/Anime4K/releases/download/${version}/Anime4K_v${version}.zip
|
curl -fLo Anime4K.zip https://github.com/bloc97/Anime4K/releases/download/${version}/Anime4K_v${version}.zip
|
||||||
unzip Anime4K.zip && rm Anime4K.zip
|
unzip Anime4K.zip && rm Anime4K.zip
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
cp -rfv shaders ~/.config/mpv/
|
cp -rfv shaders ~/.config/mpv/
|
||||||
|
|
||||||
# ------------------- PyWrapper -------------------------- #
|
# ------------------- PyWrapper -------------------------- #
|
||||||
@ -32,6 +24,16 @@ cp -rfv shaders ~/.config/mpv/
|
|||||||
git clone https://github.com/ThoughtfulDev/Anime4K.git ~/.local/bin/Anime4K-PyWrapper
|
git clone https://github.com/ThoughtfulDev/Anime4K.git ~/.local/bin/Anime4K-PyWrapper
|
||||||
cp -rfv shaders ~/.local/bin/Anime4K-PyWrapper/
|
cp -rfv shaders ~/.local/bin/Anime4K-PyWrapper/
|
||||||
|
|
||||||
|
# ----------------- waifu2x-converter-cpp ---------------- #
|
||||||
|
# Need opencv4 (binary), ocl-icd-devel, cmake (and cuda if using Nvidia)
|
||||||
|
git clone https://github.com/DeadSix27/waifu2x-converter-cpp
|
||||||
|
cd waifu2x-converter-cpp || exit 1
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake ..
|
||||||
|
make -j4
|
||||||
|
cp -f waifu2x-converter-cpp ~/.local/bin/
|
||||||
|
cd ../..
|
||||||
|
|
||||||
# ------------------ Video2X ----------------------------- #
|
# ------------------ Video2X ----------------------------- #
|
||||||
# Read the `requirements.txt`.
|
# Read the `requirements.txt`.
|
||||||
# Change the config file video2x.yaml (we don't use Windows)
|
# Change the config file video2x.yaml (we don't use Windows)
|
||||||
|
Loading…
Reference in New Issue
Block a user