nihui / waifu2x-ncnn-vulkan

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

Directory watch mode #41

Open char101 opened 5 years ago

char101 commented 5 years ago

The implementation of batch scaling in #21 is useful when resizing several images, but it is difficult to use when the scaling is part of a pipeline. I would like to suggest a directory watch mode. This could simply be a loop where it checks for new files in the input directory for every n-seconds. This way it can shave off the initialization time and can be easily integrated with external script.

GigaFyde commented 3 years ago

could we get this implemented?

Calinou commented 2 years ago

You should be able to use waifu2x-ncnn-vulkan in combination with watchexec already. However, it won't get rid of the initialization time.