WL-Amigo / waifu2x-converter-cpp

waifu2x(original : https://github.com/nagadomi/waifu2x) re-implementation in C++ using OpenCV [NO LONGER UPDATED]
Other
397 stars 197 forks source link

Multiple Files Through CLI #14

Open leogoro opened 7 years ago

leogoro commented 7 years ago

How on earth do a pass an entire directory worth of images to be done in batch?

I would just use w2xcr but I want to specify output options.

gnattu commented 7 years ago

If you are using windows cmd, you can use a .bat file with this line:

FOR /f %%a IN ('dir /b $Your image input folder path$') DO call waifu2x-converter_x64  -i $Your image input folder path$%%a -o $Your image output folder path$%%a

Place this .bat with the waifu2x executable Also make sure that your input folder contains and only contains image files and nothing else.