generate

Generates one image from params as a cold Flow of DiffusionEvents. Each collection runs one generation on the engine thread (collections on the same engine are serialized).

Events, in order:

Cancelling the collector aborts the running generation at its next step boundary and throws CancellationException as usual.

Throws

immediately if the engine is closed.