Skip to content

fix progress callback #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions diffsynth_engine/models/wan/wan_vae.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,8 @@ def tiled_decode(self, hidden_states, device, tile_size, tile_stride, progress_c
] += mask
if progress_callback is not None and not hide_progress_bar:
progress_callback(i + 1, len(tasks), "VAE DECODING")
if progress_callback is not None and not hide_progress_bar:
progress_callback(len(tasks), len(tasks), "VAE DECODING")
if self.parallelism > 1:
dist.all_reduce(values)
dist.all_reduce(weight)
Expand Down Expand Up @@ -728,6 +730,8 @@ def tiled_encode(self, video, device, tile_size, tile_stride, progress_callback=
] += mask
if progress_callback is not None and not hide_progress_bar:
progress_callback(i + 1, len(tasks), "VAE ENCODING")
if progress_callback is not None and not hide_progress_bar:
progress_callback(len(tasks), len(tasks), "VAE ENCODING")
if self.parallelism > 1:
dist.all_reduce(values)
dist.all_reduce(weight)
Expand Down