File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/diffusers/pipelines/aura_flow Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments