corochann / SeRanet

Super Resolution of picture images using deep learning
MIT License
84 stars 10 forks source link

batch process? #6

Closed kenkroft closed 5 years ago

kenkroft commented 7 years ago

Hello ! everything is working, CUDA on GTX1080, I'd just really love to know how to process an entire folder of images ? Sorry this is maybe a noob question. That would be amazing !

Many thanks

edit : nevermind, I found a way to do with shell. If anyone is interested, just create a .sh file in the folder , and put this inside :

" for file in images/*.png do python src/inference.py -g 0 $file
done "

also create a folder called "images" with your pictures in it

corochann commented 5 years ago

thank you for sharing! and let me close the issue.