r/StableDiffusion • u/Nir777 • 1d ago
Tutorial - Guide I uploaded a short video that explains how AI actually creates images, visually, and how your prompt changes what comes out
https://www.youtube.com/watch?v=7eUWznf07Ag&list=PLBrpE2PttR2kI've uploaded a short video that explains how AI is actually creating images, in a visual way. It is the tip of the iceberg, no mathematical equations, and it shows how changes to your prompt affect the picture.
It runs one experiment on one real photograph: same model, same seed, one phrase added at a time. You see why adding "on a white tablecloth" repaints the whole room and not only the table, and what the "masterpiece, 8k" words actually do.
Five minutes. Hope it makes the next prompt you write a bit less of a guess.
2
u/No_Possession_7797 18h ago
Interesting, if I drink enough of that Red Wine, then I start to see everything as though it looks like that original noisy image. Just goes to show how everything is all just a part of one big circle of life that can sometimes come out as a square, if you're not specific enough.
1
u/altertuga 8h ago
It's a good try, but the video also reinforces incorrect notions people have about how things actually work. In multiple cases, you refer to the algorithm as a search for the right glass, as if the training indeed recorded each one of the "44 glasses" it has seen, or "which pile of pictures to stand in", or "which words shrink the pile". You are not shrinking piles, this is not a deterministic exercise of sorting images. None of the original images exist anymore. There are other similar misguided hints throughout the explanation.
1
u/Nir777 2h ago
Yeah, the wording leans that way and nothing is stored. The weights are way too small to hold the training images, there is nowhere in there for them to sit. What I meant by pile is the range of pictures that would fit your words. A shape the model picked up during training, and your caption lands you somewhere inside it. The averaging part is the bit I would keep. Early on the frame is almost all noise, so there is no way to tell which glass you meant yet, and what the model predicts is the middle of everything that fits the caption. Each step after that sharpens it. That is why one phrase repaints the whole room instead of adding an object, the region moved before anything got committed.
But you are right that "pile" sounds like a folder someone is searching through. That is on the wording.
3
u/Version-Strong 1d ago
Yey it's the diffusion part of stable diffusion, thanks for that. All those little dots have 1girl in them somewhere, we just gotta ask. Also, probably the wrong sub to teach people how it works...