DeadSix27 – WAIFU2X SOURCE BUILDING GUIDES

UBUNTU 20.04 – RÉGI FILMEK FELÚJÍTÁSA (2.)

Requirements:

  • GCC 5+
  • CMake
  • OpenCL
  • OpenCV 3+ (required for the main binary/program, not the library)
    On Arch you probably also need: gtk3 hdf5 vtk glew because something seems broken in their CV package.

Packages:

  • Intel GPUs:
    • Arch: beignet
    • Ubuntu: beignet-opencl-icd opencl-headers
  • AMD GPUs:
    • Arch: opencl-mesa
    • Ubuntu: mesa-opencl-icd opencl-headers ocl-icd-opencl-dev
  • nVidia GPUs:
    • Arch: opencl-nvidia opencl-headers ocl-icd
    • Ubuntu: ocl-icd-opencl-dev​
  • nVidia GPUs (CUDA):
    • Arch: cuda
    • Ubuntu: nvidia-cuda-toolkit

Installing OpenCV from the Ubuntu Repository

sudo apt install libopencv-dev python3-opencv

# Optional Installing OpenCV from the Source
sudo apt install build-essential cmake git pkg-config libgtk-3-dev \
    libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \
    libxvidcore-dev libx264-dev libjpeg-dev libpng-dev libtiff-dev \
    gfortran openexr libatlas-base-dev python3-dev python3-numpy \
    libtbb2 libtbb-dev libdc1394-22-dev libopenexr-dev \
    libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev

 

Building:

git clone "https://github.com/DeadSix27/waifu2x-converter-cpp"
cd waifu2x-converter-cpp
mkdir out && cd out
cmake ..
make -j4
sudo make install

# If needed run sudo ldconfig after the install.

 

Qt Waifu 2x

A small frontend utility to make upscaling images easier. Requires waifu2x-converter-cpp (tanakamura or DeadSix27 versions).

sudo apt install qt5-image-formats-plugins imagemagick
git clone "https://github.com/cmdrkotori/qtwaifu2x.git"

# Start Qt Creator >=4.9.0-rc1 and open waifu2x-qtgui/waifu2x-qtgui.pro;
# missing? open terminal qtcreator
# Click on Configure Project;
# Wait a few seconds, then run the project (CTRL+R).

 

# Copy build-qtwaifu2x-Desktop-Debug/qtwaifu2x to /usr/local/bin
# Copy qtwaifu2x.desktop to /usr/share/applications
# Copy qtwaifu2x.png + svg to /usr/share/gnome/512x512/apps

Downloads only desktop file and icons.

 

Performance test:

Források:

Leave a reply

©2016 idStudio & SMThemes.com

Legjobb tárhely ajánlatok