How to get intermeidate output images

I think the same method can be used for the Diffusers pipeline.

Pipeline callbacks

Explanation of the 0.18215 factor in textual_inversion?