Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

import torch

from tqdm.auto import tqdm
from tqdm.contrib import tenumerate

from transformers import CLIPFeatureExtractor, CLIPTextModel, CLIPTokenizer

from ...models import AutoencoderKL, UNet2DConditionModel
Expand Down Expand Up @@ -126,7 +127,7 @@ def __call__(
if accepts_eta:
extra_step_kwargs["eta"] = eta

for i, t in tqdm(enumerate(self.scheduler.timesteps)):
for i, t in tenumerate(self.scheduler.timesteps):
# expand the latents if we are doing classifier free guidance
latent_model_input = torch.cat([latents] * 2) if do_classifier_free_guidance else latents
if isinstance(self.scheduler, LMSDiscreteScheduler):
Expand Down