Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 2.09 KB

README.md

File metadata and controls

50 lines (35 loc) · 2.09 KB

waifu2x-ncnn-vulkan-android

中文版

Introduction

This project is the first working version of Waifu2x ncnn Android app, which was initially developed from ncnn-android-deeplabv3plus as a template and reference the build method from ncnn-android-yolov5. And it has been updated with the latest JNI binding and build methods which is currently used by Waifu2x ncnn Android.

I hope that this project can be used as a reference by other developers to build more Android AI apps on Waifu2x ncnn Vulkan, or even more ncnn projects.

How to build

Just like other ncnn android demo projects, the only preparation is just about putting the approperiate ncnn lib into app/src/main/jni . However, in Waifu2x ncnn Android, there are mainly two options to choose from, and these result in different ncnn lib requirements. These two options are CMake flags: "USE_PREBUILT_NCNN" and "USE_SHARED_NCNN".

\ USE_PREBUILT_NCNN=ON (Default) USE_PREBUILT_NCNN=OFF
USE_SHARED_NCNN=ON ncnn-android-vulkan-shared ncnn (git repo)
USE_SHARED_NCNN=OFF (Default) ncnn-android-vulkan ncnn (git repo)

To choose the ncnn build type, modify the corresponding section in the app: build.gradle

Known issues

  • Sometimes, build may not be successful. (.etc, waifu2x.h cannot found VkVulkan syntex).

Screenshots

img

Aknowledgement

I feel very appreciated to the following people and projects.