You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-74Lines changed: 2 additions & 74 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,83 +56,11 @@ Another way to convert models:
56
56
57
57

58
58
59
-
## How to build RealSR-NCNN-Android-CLI
60
-
### step1
61
-
https://github.com/Tencent/ncnn/releases
62
-
download ncnn-yyyymmdd-android-vulkan-shared.zip.
63
-
https://github.com/webmproject/libwebp
64
-
download the source of libwebp.
65
-
https://opencv.org/releases/
66
-
download opencv-android-sdk.
67
-
68
-
### step2
69
-
extract `ncnn-yyyymmdd-android-vulkan-shared.zip` into `../3rdparty/ncnn-android-vulkan-shared`
70
-
extract the source of libwebp into `../3rdparty/libwebp`
71
-
extract `opencv-version-android-sdk` into `../3rdparty/opencv-android-sdk`
72
-
```
73
-
RealSR-NCNN-Android
74
-
├─3rdparty
75
-
│ ├─opencv-android-sdk
76
-
│ │ └─sdk
77
-
│ ├─libwebp
78
-
│ └─ncnn-android-vulkan-shared
79
-
│ └─arm64-v8a
80
-
├─RealSR-NCNN-Android-CLI
81
-
│ ├─Anime4k
82
-
│ ├─RealCUGAN
83
-
│ ├─Waifu2x
84
-
│ ├─RealSR
85
-
│ ├─SRMD
86
-
│ └─ReSize
87
-
└─RealSR-NCNN-Android-GUI
88
-
```
89
-
90
-
### step3
91
-
Open this project with Android Studio, rebuild it and the build result in `RealSR-NCNN-Android-CLI\*\build\intermediates\cmake\release\obj\arm64-v8a` or `RealSR-NCNN-Android-CLI\*\build\intermediates\cmake\debug\obj\arm64-v8a` could copy to the GUI project automatilly.
92
-
Click `3rdparty/copy_cli_build_result.bat` and it could copy the other files to GUI project.
93
-
94
-
95
-
## How to use RealSR-NCNN-Android-CLI
96
-
### Download models
97
-
You could download `assets.zip` from github release page and unzip it to get models, or download models from https://github.com/tumuyan/realsr-models .
98
-
99
-
### Example Command
100
-
Make sure the elf file has execute permission. Then input command
101
-
102
-
```shell
103
-
./realsr-ncnn -i input.jpg -o output.jpg
104
-
```
105
-
106
-
### Full Usages
107
-
The usage of others program is same as realsr-ncnn.
-i input-path input image path (jpg/png/webp) or directory
114
-
-o output-path output image path (jpg/png/webp) or directory
115
-
-s scale upscale ratio (4, default=4)
116
-
-t tile-size tile size (>=32/0=auto, default=0) can be 0,0,0 for multi-gpu
117
-
-m model-path realsr model path (default=models-DF2K_JPEG)
118
-
-g gpu-id gpu device to use (default=0) can be 0,1,2 for multi-gpu, -1 use cpu
119
-
-j load:proc:save thread count for load/proc/save (default=1:2:2) can be 1:2,2,2:2 for multi-gpu
120
-
-x enable tta mode
121
-
-f format output image format (jpg/png/webp, default=ext/png)
122
-
```
123
-
124
-
-`input-path` and `output-path` accept either file path or directory path
125
-
-`scale` = scale level, 4 = upscale 4x
126
-
-`tile-size` = tile size, use smaller value to reduce GPU memory usage, default selects automatically
127
-
-`load:proc:save` = thread count for the three stages (image decoding + realsr upscaling + image encoding), using larger values may increase GPU usage and consume more GPU memory. You can tune this configuration with "4:4:4" for many small-size images, and "2:2:2" for large-size images. The default setting usually works fine for most situations. If you find that your GPU is hungry, try increasing thread count to achieve faster processing.
128
-
-`format` = the format of the image to be output, png is better supported, however webp generally yields smaller file sizes, both are losslessly encoded
129
-
130
-
If you encounter crash or error, try to upgrade your derive
131
-
132
59
## How to build RealSR-NCNN-Android-GUI
133
-
Download`assets.zip` from github release page, the zip file contains models & elf files. Unzip and put them to this folder, then build it with Android Studio.
60
+
Build `RealSR-NCNN-Android-CLI` by yourself or download`assets.zip` from github release page, the zip file contains models & elf files. Unzip and put them to this folder, then build it with Android Studio.
134
61
The direct download link for current version: https://github.com/tumuyan/RealSR-NCNN-Android/releases/download/1.10.0/assets.zip
0 commit comments