From f90ccdc7fb5ee3bd9f09890a91088495bb2eaf09 Mon Sep 17 00:00:00 2001 From: tumuyan Date: Fri, 19 Aug 2022 00:03:07 +0800 Subject: [PATCH] print progress --- src/realcugan.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/realcugan.cpp b/src/realcugan.cpp index 2243c51..5127f8f 100644 --- a/src/realcugan.cpp +++ b/src/realcugan.cpp @@ -704,6 +704,8 @@ int RealCUGAN::process(const ncnn::Mat& inimage, ncnn::Mat& outimage) const cmd.submit_and_wait(); cmd.reset(); } + + fprintf(stderr, "%.2f%%\n", (float)(yi * xtiles + xi) / (ytiles * xtiles) * 100); } // download @@ -1158,6 +1160,8 @@ int RealCUGAN::process_cpu(const ncnn::Mat& inimage, ncnn::Mat& outimage) const #endif } } + + fprintf(stderr, "%.2f%%\n", (float)(yi * xtiles + xi) / (ytiles * xtiles) * 100); } } @@ -2071,6 +2075,9 @@ int RealCUGAN::process_se_stage2(const ncnn::Mat& inimage, const std::vector