Skip to content

Commit 6b7362a

Browse files
authored
Update pipeline_aura_flow.py
1 parent 0bcc6a1 commit 6b7362a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,14 @@ def upcast_vae(self):
399399
self.vae.decoder.conv_in.to(dtype)
400400
self.vae.decoder.mid_block.to(dtype)
401401

402+
@property
403+
def guidance_scale(self):
404+
return self._guidance_scale
405+
406+
@property
407+
def num_timesteps(self):
408+
return self._num_timesteps
409+
402410
@torch.no_grad()
403411
@replace_example_docstring(EXAMPLE_DOC_STRING)
404412
def __call__(
@@ -511,6 +519,8 @@ def __call__(
511519
callback_on_step_end_tensor_inputs=callback_on_step_end_tensor_inputs,
512520
)
513521

522+
self._guidance_scale = guidance_scale
523+
514524
# 2. Determine batch size.
515525
if prompt is not None and isinstance(prompt, str):
516526
batch_size = 1
@@ -567,6 +577,7 @@ def __call__(
567577

568578
# 6. Denoising loop
569579
num_warmup_steps = max(len(timesteps) - num_inference_steps * self.scheduler.order, 0)
580+
self._num_timesteps = len(timesteps)
570581
with self.progress_bar(total=num_inference_steps) as progress_bar:
571582
for i, t in enumerate(timesteps):
572583
# expand the latents if we are doing classifier free guidance

0 commit comments

Comments
 (0)