Open freedom9393 opened 5 months ago
您的邮件已接收!
Yes please!
您的邮件已接收!
@freedom9393 the only thing that worked for me is to surpress everything those methods output...
@contextmanager
def suppress_stdout_stderr():
with open(os.devnull, "w") as devnull:
old_stdout = sys.stdout
old_stderr = sys.stderr
sys.stdout = devnull
sys.stderr = devnull
try:
yield
finally:
sys.stdout = old_stdout
sys.stderr = old_stderr
And use like
with suppress_stdout_stderr():
results = detector.detect_faces(rgb_frame)
is it originating from the mtcnn library or any other supporting library? I tried to dig in but didn't find it in the mtcnn library.
您的邮件已接收!
is it originating from the mtcnn library or any other supporting library? I tried to dig in but didn't find it in the mtcnn library.
I think it's from an underlying library. I found no output whatsoever from this one.
is it originating from the mtcnn library or any other supporting library? I tried to dig in but didn't find it in the mtcnn library.
I think it's from an underlying library. I found no output whatsoever from this one.
Yes. The issue can be solved manually here. However, verbose flag should be added in the MTCNN library too.
When I test mtcnn with huge number of images, it shows long logs:
and I think this process consumes more time. So, is there any way to prevent showing logs and testing faster?