@@ -158,43 +158,36 @@ jobs:
158158 run : dumpbin /dependents artifact\vsort.dll
159159
160160 - name : Setup Python portable
161- if : false
162161 run : |
163162 curl -s -o python.zip -LJO https://www.python.org/ftp/python/3.9.10/python-3.9.10-embed-amd64.zip
164163 7z x python.zip -ovs_portable
165164
166165 - name : Install VapourSynth portable
167- if : false
168166 run : |
169167 curl -s -o vs.7z -LJO https://github.com/vapoursynth/vapoursynth/releases/download/R54/VapourSynth64-Portable-R54.7z
170168 7z x vs.7z -ovs_portable -y
171169
172170 - name : Copy plugin
173- if : false
174171 run : |
175172 copy artifact\*.dll vs_portable\vapoursynth64\plugins
176173 mkdir vs_portable\vapoursynth64\plugins\vsort\
177174 copy artifact\vsort\*.dll vs_portable\vapoursynth64\plugins\vsort\
178175
179176 - name : Install waifu2x model
180- if : false
181177 run : |
182178 curl -s -o waifu2x.7z -LJO https://github.com/AmusementClub/vs-mlrt/releases/download/model-20211209/waifu2x_v3.7z
183179 7z x waifu2x.7z -ovs_portable\vapoursynth64\plugins\models
184180
185181 - name : Download x265
186- if : false
187182 run : |
188183 curl -s -o x265.7z -LJO https://github.com/AmusementClub/x265/releases/download/Yuuki-3.5-AC3/x265-win64-x86-64-clang.Yuuki-3.5-AC3.7z
189184 7z x x265.7z -ovs_portable\
190185
191186 - name : Create script
192- if : false
193187 shell : bash
194- run : echo "import vapoursynth as vs;from vapoursynth import core;import sys;print(core.ort, file=sys.stderr);print(core.ort.Version(),file=sys.stderr);core.std.BlankClip(format=vs.RGBS).ort.Model(r\"waifu2x\\upconv_7_anime_style_art_rgb\\scale2.0x_model.onnx\", builtin=True).resize.Bicubic(format=vs.YUV420P10, matrix_s='709').set_output()" > test.vpy
188+ run : echo "import vapoursynth as vs;from vapoursynth import core;import sys;print(core.ort, file=sys.stderr);print(core.ort.Version(),file=sys.stderr);core.std.BlankClip(format=vs.RGBS).ort.Model(r\"waifu2x\\upconv_7_anime_style_art_rgb\\scale2.0x_model.onnx\", builtin=True, verbosity=4 ).resize.Bicubic(format=vs.YUV420P10, matrix_s='709').set_output()" > test.vpy
195189
196190 - name : Run vspipe
197- if : false
198191 shell : bash
199192 run : |
200193 set -ex
@@ -207,12 +200,10 @@ jobs:
207200 exit 0
208201
209202 - name : Create script (fp16)
210- if : false
211203 shell : bash
212204 run : echo "import vapoursynth as vs;from vapoursynth import core;import sys;print(core.ort, file=sys.stderr);core.std.BlankClip(format=vs.RGBS).ort.Model(r\"waifu2x\\upconv_7_anime_style_art_rgb\\scale2.0x_model.onnx\", builtin=True, fp16=True).resize.Bicubic(format=vs.YUV420P10, matrix_s='709').set_output()" > test_fp16.vpy
213205
214206 - name : Run vspipe (fp16)
215- if : false
216207 shell : bash
217208 run : |
218209 set -ex
@@ -225,12 +216,10 @@ jobs:
225216 exit 0
226217
227218 - name : Create script (fp16 input)
228- if : false
229219 shell : bash
230220 run : echo "import vapoursynth as vs;from vapoursynth import core;import sys;print(core.ort, file=sys.stderr);flt=core.std.BlankClip(format=vs.RGBH).ort.Model(r\"waifu2x\\upconv_7_anime_style_art_rgb\\scale2.0x_model.onnx\", builtin=True, fp16=True);print(flt,file=sys.stderr);flt.resize.Bicubic(format=vs.YUV420P10, matrix_s='709').set_output()" > test_fp16_input.vpy
231221
232222 - name : Run vspipe (fp16 input)
233- if : false
234223 shell : bash
235224 run : |
236225 set -ex
@@ -243,12 +232,10 @@ jobs:
243232 exit 0
244233
245234 - name : Create script (fp16 output)
246- if : false
247235 shell : bash
248236 run : echo "import vapoursynth as vs;from vapoursynth import core;import sys;print(core.ort, file=sys.stderr);flt=core.std.BlankClip(format=vs.RGBS).ort.Model(r\"waifu2x\\upconv_7_anime_style_art_rgb\\scale2.0x_model.onnx\", builtin=True, fp16=True, output_format=1);print(flt,file=sys.stderr);flt.resize.Bicubic(format=vs.YUV420P10, matrix_s='709').set_output()" > test_fp16_output.vpy
249237
250238 - name : Run vspipe (fp16 output)
251- if : false
252239 shell : bash
253240 run : |
254241 set -ex
@@ -261,12 +248,10 @@ jobs:
261248 exit 0
262249
263250 - name : Create script (flexible output)
264- if : false
265251 shell : bash
266252 run : echo "import vapoursynth as vs;from vapoursynth import core;import sys;print(core.ort, file=sys.stderr);print(core.ort.Version(),file=sys.stderr);prop='test';output=core.std.BlankClip(format=vs.RGBS).ort.Model(r\"waifu2x\\upconv_7_anime_style_art_rgb\\scale2.0x_model.onnx\", builtin=True, flexible_output_prop=prop);core.std.ShufflePlanes([output['clip'].std.PropToClip(prop=f'{prop}{i}') for i in range(output['num_planes'])], [0, 0, 0], vs.RGB).resize.Bicubic(format=vs.YUV420P10, matrix_s='709').set_output()" > test_flexible_output.vpy
267253
268254 - name : Run vspipe (flexible output)
269- if : false
270255 shell : bash
271256 run : |
272257 set -ex
0 commit comments