Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TQDMProgressBar(leave_overall_progress=False) in consort with the EarlyStoppingCallback() dosn't leave progress bar #2774

Open
PhorstenkampFuzzy opened this issue Oct 26, 2022 · 0 comments · May be fixed by #2776

Comments

@PhorstenkampFuzzy
Copy link

System information

  • Widnwos10:
  • TensorFlow version and how it was installed (source or binary): 2.9.1 binary
  • TensorFlow-Addons version and how it was installed (source or binary): 0.17.1
  • Python version: 3.10.3
  • Is GPU used? (yes/no): yes

Describe the bug
When using the TQDMProgressBar(leave_overall_progress=False) in consort with the EarlyStoppingCallback() the overall progress bar does not disappear. I assume this is not a feature but a bug.

Solution
If lines 5 to 7 from the following code snippet are inserted the behavior changes and the progressbar disappears after training.

       # line 143 of tensorflow_addons.callbacks.tqdm_progress_bar.py
        def _clean_up_progbar(self, hook, logs):
            if hook == "train_overall":
                if self.show_overall_progress:
                    self.overall_progress_tqdm.update(
                        self.num_epochs - self.overall_progress_tqdm.n
                    )
                    self.overall_progress_tqdm.close()
@PhorstenkampFuzzy PhorstenkampFuzzy mentioned this issue Oct 26, 2022
21 tasks
PhorstenkampFuzzy added a commit to PhorstenkampFuzzy/tf-addons that referenced this issue Oct 26, 2022
…hen stopping the progress bar now disappears.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant