addons icon indicating copy to clipboard operation
addons copied to clipboard

TQDM Progress Bar does not work correctly when initial_epoch is nonzero

Open relaxation82 opened this issue 5 years ago • 3 comments

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): OS X 10.15.4
  • TensorFlow version and how it was installed (source or binary): 2.2.0-rc3, binary
  • TensorFlow-Addons version and how it was installed (source or binary): 0.9.1
  • Python version: 3.7.7
  • Is GPU used? (yes/no): no

Describe the bug

Progress bar of the whole training process over multiple epochs never reaches 100% when the training is restarted, and parameter initial_epoch is therefore nonzero.

Code to reproduce the issue

Essentially

model.fit(x=X, y=y, class_weight=None, batch_size=batchSize, verbose=0, callbacks=tfa.callbacks.TQDMProgressBar(), validation_split=0.2, shuffle=True, epochs=epochCount, initial_epoch=initialEpoch)

where initialEpoch > 0

Other info / logs

The issue should be rather clear with the provided info

relaxation82 avatar Apr 27 '20 17:04 relaxation82