File tree Expand file tree Collapse file tree 2 files changed +39
-5
lines changed Expand file tree Collapse file tree 2 files changed +39
-5
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,40 @@ jobs:
139
139
name : waifu2x-ncnn-vulkan-artifact-ubuntu-18.04
140
140
path : waifu2x-ncnn-vulkan-artifact
141
141
142
+ ubuntu-2004 :
143
+ runs-on : ubuntu-20.04
144
+ steps :
145
+ - uses : actions/checkout@v2
146
+ with :
147
+ submodules : ' recursive'
148
+ - name : cache-vulkansdk
149
+ id : cache-vulkansdk
150
+ uses : actions/cache@v1
151
+ with :
152
+ path : " 1.2.135.0"
153
+ key : vulkansdk-linux-x86_64-1.2.135.0
154
+ - name : vulkansdk
155
+ if : steps.cache-vulkansdk.outputs.cache-hit != 'true'
156
+ run : |
157
+ wget https://sdk.lunarg.com/sdk/download/1.2.135.0/linux/vulkansdk-linux-x86_64-1.2.135.0.tar.gz?Human=true -O vulkansdk-linux-x86_64-1.2.135.0.tar.gz
158
+ tar -xf vulkansdk-linux-x86_64-1.2.135.0.tar.gz
159
+ rm -rf 1.2.135.0/source 1.2.135.0/samples
160
+ find 1.2.135.0 -type f | grep -v -E 'vulkan|glslang' | xargs rm
161
+ - name : configure
162
+ run : export VULKAN_SDK=`pwd`/1.2.135.0/x86_64 && mkdir build && cd build && cmake ../src
163
+ - name : build
164
+ run : cmake --build build -j 2
165
+ - name : deploy
166
+ run : |
167
+ mkdir waifu2x-ncnn-vulkan-artifact
168
+ strip build/waifu2x-ncnn-vulkan
169
+ cp -v build/waifu2x-ncnn-vulkan waifu2x-ncnn-vulkan-artifact
170
+ cp -v -r models/* waifu2x-ncnn-vulkan-artifact
171
+ - uses : actions/upload-artifact@v2
172
+ with :
173
+ name : waifu2x-ncnn-vulkan-artifact-ubuntu-20.04
174
+ path : waifu2x-ncnn-vulkan-artifact
175
+
142
176
macos-1015 :
143
177
runs-on : macos-10.15
144
178
steps :
Original file line number Diff line number Diff line change @@ -30,15 +30,15 @@ Usage: waifu2x-ncnn-vulkan -i infile -o outfile [options]...
30
30
-h show this help
31
31
-v verbose output
32
32
-i input-path input image path (jpg/png/webp) or directory
33
- -o output-path output image path (png/webp) or directory
33
+ -o output-path output image path (jpg/ png/webp) or directory
34
34
-n noise-level denoise level (-1/0/1/2/3, default=0)
35
35
-s scale upscale ratio (1/2, default=2)
36
- -t tile-size tile size (>=32/0=auto, default=0)
36
+ -t tile-size tile size (>=32/0=auto, default=0) can be 0,0,0 for multi-gpu
37
37
-m model-path waifu2x model path (default=models-cunet)
38
- -g gpu-id gpu device to use (default=0)
39
- -j load:proc:save thread count for load/proc/save (default=1:2:2)
38
+ -g gpu-id gpu device to use (default=0) can be 0,1,2 for multi-gpu
39
+ -j load:proc:save thread count for load/proc/save (default=1:2:2) can be 1:2,2,2:2 for multi-gpu
40
40
-x enable tta mode
41
- -f format output image format (png/webp, default=ext/png)
41
+ -f format output image format (jpg/ png/webp, default=ext/png)
42
42
```
43
43
44
44
- ` input-path ` and ` output-path ` accept either file path or directory path
You can’t perform that action at this time.
0 commit comments