insightface
insightface copied to clipboard
Remove print in model zoo
https://github.com/deepinsight/insightface/blob/c2db41402c627cab8ea32d55da591940f2258276/python-package/insightface/model_zoo/model_zoo.py#L41
there are many prints in the code, can we cleanup all, changing to log maybe ?
Actually this print is informative, this way is clear if you use GPU or CPU or etc...
no problem with prints, im talking about change to log instead print to stdout directly
@jslsolucoes Try this https://docs.python.org/zh-tw/3.8/library/contextlib.html#contextlib.redirect_stdout
@jslsolucoes Try this https://docs.python.org/zh-tw/3.8/library/contextlib.html#contextlib.redirect_stdout
no thanks, i dont want redirect stoud as workaround, best way is for sure using log library, makes no sense deal this way with the problem
@jslsolucoes
- Fork this repo and edit by yourself
- Redirect only the stdout output specifically from
insightface
(https://loguru.readthedocs.io/en/stable/resources/recipes.html#capturing-standard-stdout-stderr-and-warnings)
why not to use logging
? that way give us to output desired logging level.