some links here: - https://arxiv.org/abs/2310.04378 - https://arxiv.org/abs/2311.05556
but first we want to make sure we can get this in the hands of a tight cohort of creatives and see how they use it.
The process can be viewed as a particle moving in the image space, one step at a time to its final position in the image space, which is the generated image.
consistency model tries to predict the movement trajectory by providing the current position in the image space. Hence, what used to be a step-by-step process becomes a one-step process.
and when that particle has moved to the right location, there is a decoder that converts it into an image. The decoder network knows how to interpret it.
I actually wrote a micro essay on Twitter the other day about the meaning of the classic encoder decoder network. It’s beautiful.
But yeah!
-
For reference: https://x.com/asciidiego/status/1722544108252836119
no that wasnt a sufficient explanation for me. what is the prediction method here? why was diffusion necessary in the past? what tradeoffs does this approach have?
From playing around with it a bit locally, LCM is much, much faster, but generally the detail is much lower using the latest SDXL model.
If your prompt is very simple, such as "a boy looking at the moon in a forest" it does pretty well. If your prompt is much more complex and asks for a lot more detail or uses other LoRas, it doesn't do nearly as well as other samplers and generates lower quality, worse matching images. These other samplers take 30-40 steps so it's several times slower.
From what I've seen though, if you use control net, or passing some guideline images in and rely on a simple prompt, like an existing video that you're trying to change the style of, LCM can generate images in near real time like the OP on an RTX4090 and maybe slower cards on smaller/older models
Another benefit is the decreased experimental time. So you can more quickly iterate over seeds to find output you like, and then maybe you can spend some time with other samplers/upscalers with that seed to make the result higher quality
https://arxiv.org/pdf/2303.01469.pdf
the exact neural network used for the prediction method is omitted. apparently many neural networks can be used for this prediction method as long as they fulfill certain requirements.
> why was diffusion necessary in the past?
in the paper, one way to train a consistency model is distilling an existing diffusion model. But it can be trained from scratch too.
"why was it necessary in the past " doesn't bother me that much. Before people know to use molding to make candles, they did it by dipping threads into wax. Why was thread dipping necessary? it's just a stepping stone of technology development.
While it can do 1-step the output quality looks a ton better with additional steps.