nihui / waifu2x-ncnn-vulkan

waifu2x converter ncnn version, runs fast on intel / amd / nvidia / apple-silicon GPU with vulkan
MIT License
2.98k stars 205 forks source link

[Feature Request] Pipe support for input/output #206

Open Nekotekina opened 1 year ago

Nekotekina commented 1 year ago

Currently the following things (examples) fail (Ubuntu 22.04, bash): waifu2x-ncnn-vulkan -i <(djxl test.jxl png:-) -o test.pngdecode image /dev/fd/63 failed waifu2x-ncnn-vulkan -i test.png -f png -o >(ffprobe -)invalid outputpath extension type waifu2x-ncnn-vulkan -i test.png -f png -o /dev/stdout → same as before

It's not too convenient to rely on temporary files to workaround these limitations.