Skip to content

Commit

Permalink
Merge pull request #223 from Haidra-Org/main
Browse files Browse the repository at this point in the history
fix: callback during each step of post-proc.
  • Loading branch information
tazlin authored Mar 21, 2024
2 parents a67579c + f0e2fc1 commit db81681
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hordelib/horde.py
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,17 @@ def _default_progress_callback(comfyui_progress: ComfyUIProgress, message: str)
final_image = ret.image
final_rawpng = ret.rawpng

if progress_callback is not None:
try:
progress_callback(
ProgressReport(
hordelib_progress_state=ProgressState.progress,
hordelib_message="Post Processing new image.",
),
)
except Exception as e:
logger.error(f"Progress callback failed ({type(e)}): {e}")

# Ensure facefixers always happen first
post_processing_requested = sorted(
post_processing_requested,
Expand Down

0 comments on commit db81681

Please sign in to comment.