https://github.com/DeadSix27/waifu2x-converter-cpp/releases
- Windows x64
- Linux (ARM only tested via Raspberry Pi 3)
- MacOS
-DENABLE_OPENCV
- Build with OpenCV support? (Default: ON)
-DENABLE_UNICODE
- Build with Unicode support? (Default: ON)
-DENABLE_CUDA
- Build with CUDA support? (Default: ON)
-DINSTALL_MODELS
- Install models? (Default: ON on Linux, OFF on Windows)
-DENABLE_TESTS
- Build test binaries? (Default: OFF)
-DENABLE_GUI
(Windows only)- Build basic Windows GUI? (Default: ON)
- Windows 7 or newer (only tested on 10)
- AMD, Intel or nVidia GPU
- Visual Studio 2019 (Community Edition is enough)
- Make sure to Select these components:
Desktop development with C++
- Make sure to Select these components:
- CMake (latest version) [ cmake-..*-win64-x64.msi ]
- Select: Add CMake to the system PATH for the current user
- Git for Windows
- (Optional, for the git clones, you'll have to download it as zip otherwise)
- Khronos OpenCL Headers: https://github.com/KhronosGroup/OpenCL-Headers
- Git clone it anywhere, example:
K:\w2x\OpenCL-Headers
- Git clone it anywhere, example:
- OpenCV 4.1.0 [ opencv-4.1.0-vc14_vc15.exe ] (required for the main binary/program, not the library)
- Extract to, for example:
K:\w2x\opencv
- Extract to, for example:
- Download the CUDA SDK 10.1 [ cuda_10.1.105_418.96_win10.exe ]
- Install the CUDA SDK (you only need to select
CUDA->Development
andCUDA->Runtime
).
-
Open a Command prompt and run the following command:
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
-
Now run these commands in order, to build w2x:
- Make sure have
OpenCL_INCLUDE_DIR
andOPENCV_PREFIX
set to the correct pathcd "K:\w2x\" git clone "https://github.com/DeadSix27/waifu2x-converter-cpp" cd "waifu2x-converter-cpp" mkdir out && cd out cmake .. -DCMAKE_GENERATOR="Visual Studio 16 2019" -A x64 -DOPENCV_PREFIX="K:/w2x/opencv/build/" -DOpenCL_INCLUDE_DIR="K:/w2x/OpenCL-Headers" msbuild waifu2xcpp.sln /p:Configuration=Release /p:Platform=x64 -m copy K:\w2x\opencv\build\x64\vc15\bin\opencv_world410.dll Release\ mkdir Release\models_rgb\ && copy ..\models_rgb Release\models_rgb\ cd ..
- Make sure have
-
(Optional) Add to SendTo menu (right click on file in Windows Explorer).
- If you desire a GUI, try: https://github.com/YukihoAA/waifu2x_snowshell/releases
copy /y w32-apps\icon.ico out\Release\ copy /y w32-apps\install.js out\Release\ copy /y w32-apps\uninstall.js out\Release\ cd out\Release wscript install.js cd .. && cd .. && cd ..
- If you desire a GUI, try: https://github.com/YukihoAA/waifu2x_snowshell/releases
- 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.
- On Arch you probably also need:
- Arch:
beignet
- Ubuntu:
beignet-opencl-icd opencl-headers
- Arch:
opencl-mesa
- Ubuntu:
mesa-opencl-icd opencl-headers ocl-icd-opencl-dev
- Arch:
opencl-nvidia opencl-headers ocl-icd
- Ubuntu:
ocl-icd-opencl-dev
- Arch:
cuda
- Ubuntu:
nvidia-cuda-toolkit
Run these commands in order:
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.
You need Homebrew installed, as well as a newer llvm installed (since Xcode's llvm does not have filesystem library)
The following has been tested on macOS Mojave 10.14.3:
$ brew install llvm opencv
$ git clone https://github.com/DeadSix27/waifu2x-converter-cpp && cd waifu2x-converter-cpp
$ cmake -DOPENCV_PREFIX=/usr/local/Cellar/opencv/<your version here> .
$ make -j4
$ sudo make install