Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,8 @@ def __call__(

if callback is not None and i % callback_steps == 0:
step_idx = i // getattr(self.scheduler, "order", 1)
callback(step_idx, t, latents)
r = callback(step_idx, t, latents)
yield r

# Offload all models
self.maybe_free_model_hooks()
Expand All @@ -626,4 +627,4 @@ def __call__(
if not return_dict:
return (latents,)

return WuerstchenPriorPipelineOutput(latents)
yield WuerstchenPriorPipelineOutput(latents)