Open xeb opened 2 years ago
您的邮件已接收!
太感谢了!
Hello, I'm experiencing the same problem. How did you fix it?
您的邮件已接收!
Have the same issue, let me know if anyone finds a solution!
@amykweon @xeb @equ1
Those loggings are from mtcnn
package.
You can suppress the logging by editting the mtcnn.py
file in ~/miniconda3/envs/<env_name>/lib/<python3.x>/site-packages/mtcnn/mtcnn.py
(depends on your package management) or fork this repo: https://github.com/ipazc/mtcnn
Then add verbose=0
to these linse:
Line 410: out = self._pnet.predict(img_y, verbose=0)
Line 410: out = self._rnet.predict(tempimg1, verbose=0)
Line 466: out = self._onet.predict(tempimg1, verbose=0)
您的邮件已接收!
Line 410: out = self._pnet.predict(img_y, verbose=0)
is on Line 342
您的邮件已接收!
您的邮件已接收!
I add verbose=0 in lines,but it does not work then I remove tqdm module,it is worked~
您的邮件已接收!
With newer versions of keras, this has worked for me:
import keras
keras.utils.disable_interactive_logging()
not sure exactly which version added this
您的邮件已接收!
Apologies if this is a Keras or TF issue, but how do I disable the stdout and stderr logging with mtcnn?
Example Class:
Results in:
Logging is disabled but the (tqdm?) progress bars remain. This prevents my own tqdm progress bars from working.
Any ideas?