question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add options to disable/hide progress bar

See original GitHub issue

Is your feature request related to a problem? Please describe.

This is a minor thing, but I find the progress bar annoying when I run inference with pipeline successively.

See this screenshot for example. In this case, I generated 10 images using DDIMPipeline and used tqdm myself, but the progress bars coming from __call__ of the pipeline are stacking up and annoying.

Describe the solution you’d like

It would be nice if disable and leave options of tqdm were available with pipelines. Keyword arguments (say, disable_tqdm and leave_tqdm?) could be added to __call__ methods and passed to tqdm. These are the relevant lines in case of DDPMPipeline: https://github.com/huggingface/diffusers/blob/92b6dbba1a25ed27b0bae38b089715132c7e6bcc/src/diffusers/pipelines/ddpm/pipeline_ddpm.py#L31 https://github.com/huggingface/diffusers/blob/92b6dbba1a25ed27b0bae38b089715132c7e6bcc/src/diffusers/pipelines/ddpm/pipeline_ddpm.py#L47

I found something that might be relevant in the logging module, but it’s not used in the pipeline modules. Maybe this can be used.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
hystscommented, Aug 23, 2022

Sure. I’ll look into it and make a PR.

0reactions
anton-lcommented, Aug 24, 2022

Let’s also make sure that we can handle additional arguments to tqdm (like total=) with **kwargs like so:

def progress_bar(self, iterable, **kwargs):
     if self._is_progress_bar_enabled:
         return tqdm(iterable, **kwargs)
     else:
         return iterable
for i, t in tqdm(enumerate(self.scheduler.timesteps), total=self.scheduler.num_inference_steps):
Read more comments on GitHub >

github_iconTop Results From Across the Web

Hide or disable progress bar · Issue #44 - GitHub
Hello, how can I hide the progress bar, since I'm streaming live video and dont need it. ... Added options for live and...
Read more >
Card Forms: option to disable/hide the progress bar ... - Jotform
Hi How do you remove the form progress on the mobile view on of an embedded form.
Read more >
How to hide/disable buttons controls in videojs? - Stack Overflow
Try those in the options: ... and make the ProgressControl disable: ... .disable() > shows the button but is not active to iterate...
Read more >
jQuery UI Progressbar disable() Method - GeeksforGeeks
The jQuery UI progressbar disable() method is used to disable the progressbar widget. This method does not accept any parameters. Syntax: $(".
Read more >
How to Hide the YouTube Bar/Controls when a Video Is ...
For some reason, you may want to remove it. Do you know how to ... You can hide the YouTube bar by adding...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found