3

I am having issues on Windows 10, Python 3 in Jupyter Notebook properly displaying the Keras progress bar. As you can see from the image attached, the output is all being concatenated as a long string with verbose=1 instead of properly backspacing and resetting. I'm guessing that the issue is that somehow the notebook is not properly interpreting the \b character, but I can't seem to find a way around this. Has anybody encountered a similar issue? I can train with verbose=2, but I would really like to be able to see the estimated time remaining. Other posts on here suggest issues where the progress bar is simply putting each batch on a new line, and the resulting diagnosis was that "It seems as if the info makes the bar too long for the terminal and so it breaks to a new line." so the solution was to make the terminal wider. However, this is (to my knowledge) not possible in a jupyter notebook. Can anybody suggest any alternatives to dealing with this?

enter image description here

reese0106
  • 2,011
  • 2
  • 16
  • 46

1 Answers1

1

reese0106,

I just had a similar issue, with long string output from Keras with verbose=1 option.

It turned out that such behavior was caused by some conflict with imported tqdm library. To identify this I removed recent additional imports until keras started behave normally. Then I re-wrote my code to avid using tqdm. See my case described here.

Poe Dator
  • 4,535
  • 2
  • 14
  • 35