DeadSix27 / waifu2x-converter-cpp

Improved fork of Waifu2X C++ using OpenCL and OpenCV
MIT License
792 stars 86 forks source link

Percentage progress #264

Closed Moebits closed 2 years ago

Moebits commented 3 years ago

Hi, it would be helpful if you could add percentage progress to the logs. The current logs just aren't clear on how much progress the program has made:

Step 01/02: Denoising
Proccessing [1/1] slices
Processing block, column (01/03), row (01/02) ... 
total : 1.882[sec], 0080.79[GFLOPS]
Processing block, column (02/03), row (01/02) ...

I would prefer it if the logs included percentage progress, or even better, a new logging format that just outputs percentage. A possible example:

[0%] Step 01/02: Denoising
[0%] Proccessing [1/1] slices
[0%] Processing block, column (01/03), row (01/02) ... 
[5%] total : 1.882[sec], 0080.79[GFLOPS]
[5%] Processing block, column (02/03), row (01/02) ...

My usage case is to make a progress bar in my app. Even if I could make sense of the current logs and calculate percentage myself, it will likely be inaccurate and break whenever the logging format changes.