Skip to content

Commit b272807

Browse files
authored
Avoid DtoH sync from access of nonzero() item in scheduler (#11696)
1 parent 447ccd0 commit b272807

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/diffusers/pipelines/flux/pipeline_flux.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,7 @@ def __call__(
898898
)
899899

900900
# 6. Denoising loop
901+
self.scheduler.set_begin_index(0)
901902
with self.progress_bar(total=num_inference_steps) as progress_bar:
902903
for i, t in enumerate(timesteps):
903904
if self.interrupt:

0 commit comments

Comments
 (0)