Keras floods Jupyter cell output during fit (verbose=1)

后端 未结 3 1901
南旧
南旧 2021-01-05 11:34

When running keras model inside Jupyter notebook with \"verbose=1\" option, I started getting not single line progress status updates as before, but a flood of status lines

相关标签:
3条回答
  • 2021-01-05 12:10

    Two things I would recommend:

    • Try restarting Jupyter Notebook server.
    • Try different browser other than what you're using; perhaps your browser got some update and it's breaking stuff! (usually, chrome is bad with notebooks!)
    0 讨论(0)
  • 2021-01-05 12:22

    After a few tests I found that the error is related to tqdm import. Tqdm was used in a piece of code which was later rewritten withoout it. Even though I was not using tqdm in this notebook, just having it imported affected the keras output. To fix it I just commented out this line: from tqdm import tqdm and everything went fine, with nice keras progress bars. Not sure how exactly it conflicted with keras though...

    0 讨论(0)
  • 2021-01-05 12:22

    verbose=2 should be used for interactive outputs.

    0 讨论(0)
提交回复
热议问题