File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
src/diffusers/pipelines/flux Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -898,6 +898,8 @@ def __call__(
898
898
)
899
899
900
900
# 6. Denoising loop
901
+ # We set the index here to remove DtoH sync, helpful especially during compilation.
902
+ # Check out more details here: https://github.com/huggingface/diffusers/pull/11696
901
903
self .scheduler .set_begin_index (0 )
902
904
with self .progress_bar (total = num_inference_steps ) as progress_bar :
903
905
for i , t in enumerate (timesteps ):
Original file line number Diff line number Diff line change @@ -1043,6 +1043,9 @@ def __call__(
1043
1043
)
1044
1044
1045
1045
# 6. Denoising loop
1046
+ # We set the index here to remove DtoH sync, helpful especially during compilation.
1047
+ # Check out more details here: https://github.com/huggingface/diffusers/pull/11696
1048
+ self .scheduler .set_begin_index (0 )
1046
1049
with self .progress_bar (total = num_inference_steps ) as progress_bar :
1047
1050
for i , t in enumerate (timesteps ):
1048
1051
if self .interrupt :
You can’t perform that action at this time.
0 commit comments