Skip to content

Add options to disable/hide progress bar #172

@hysts

Description

@hysts

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:

def __call__(self, batch_size=1, generator=None, torch_device=None, output_type="pil"):

for t in tqdm(self.scheduler.timesteps):

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions