@@ -274,6 +274,10 @@ private async Task<Tensor<float>> RunInferenceAsync(IPipelineOptions options, IS
274274 // Result
275275 latents = stepResult . Sample ;
276276
277+ // Progress
278+ if ( scheduler . IsFinalOrder )
279+ progressCallback . Notify ( scheduler . CurrentStep , scheduler . TotalSteps , latents , steptime ) ;
280+
277281 Logger . LogEnd ( LogLevel . Debug , steptime , $ "[RunInferenceAsync] Step: { i + 1 } /{ timesteps . Count } ") ;
278282 }
279283
@@ -346,6 +350,10 @@ private async Task<Tensor<float>> RunInferenceAsync(IPipelineOptions options, Co
346350 // Result
347351 latents = stepResult . Sample ;
348352
353+ // Progress
354+ if ( scheduler . IsFinalOrder )
355+ progressCallback . Notify ( scheduler . CurrentStep , scheduler . TotalSteps , latents , steptime ) ;
356+
349357 Logger . LogEnd ( LogLevel . Debug , steptime , $ "[RunInferenceAsync] Step: { i + 1 } /{ timesteps . Count } ") ;
350358 }
351359
@@ -463,7 +471,17 @@ protected override async Task CheckPipelineState(IPipelineOptions options)
463471 /// </summary>
464472 protected override IReadOnlyList < SchedulerType > ConfigureSchedulers ( )
465473 {
466- return [ SchedulerType . LMS , SchedulerType . Euler , SchedulerType . EulerAncestral , SchedulerType . LCM ] ;
474+ return
475+ [
476+ SchedulerType . LMS ,
477+ SchedulerType . Euler ,
478+ SchedulerType . EulerAncestral ,
479+ SchedulerType . DDPM ,
480+ SchedulerType . DDIM ,
481+ SchedulerType . KDPM2 ,
482+ SchedulerType . KDPM2Ancestral ,
483+ SchedulerType . LCM
484+ ] ;
467485 }
468486
469487
@@ -478,7 +496,7 @@ protected override GenerateOptions ConfigureDefaultOptions()
478496 Width = 512 ,
479497 Height = 512 ,
480498 GuidanceScale = 7.5f ,
481- Scheduler = SchedulerType . Euler ,
499+ Scheduler = SchedulerType . EulerAncestral ,
482500 TimestepSpacing = TimestepSpacingType . Trailing
483501 } ;
484502 }
0 commit comments