Skip to content

Commit

Permalink
fix tqdm disable condition
Browse files Browse the repository at this point in the history
  • Loading branch information
eagarvey-amd committed Jul 12, 2024
1 parent 6bc8cb4 commit 6f0f7c7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,10 @@ def _produce_latents_sdxl(
[guidance_scale],
dtype=self.map["unet"]["np_dtype"],
)
for i, t in tqdm(enumerate(timesteps), disable=(self.benchmark and self.verbose)):
for i, t in tqdm(
enumerate(timesteps),
disable=(self.map["unet"].get("benchmark") and self.verbose),
):
if self.cpu_scheduling:
latent_model_input, t = self.scheduler.scale_model_input(
latents,
Expand Down

0 comments on commit 6f0f7c7

Please sign in to comment.