How StableDiffusion works
Stable Diffusion is a txt2img and img2img AI, based on the principle of noise diffusion.
Textual Encoding (Tokenizing)
When inputting a prompt, a part of SD called the Textual Encoder tokenizes the prompt, meaning it cuts words into 1-4 letter sized chunks which the actual working model can understand. The popular version 1.5 of Stable Diffusion can take 75 such tokens as input, however, modern UIs like Automatic1111 can combine tokens to drastically increase the amount of tokens which can be used.
How StableDiffusion works
Stable Diffusion is a txt2img and img2img AI, based on the principle of noise diffusion.
Textual Encoding (Tokenizing)
When inputting a prompt, a part of SD called the Textual Encoder tokenizes the prompt, meaning it cuts words into 1-4 letter sized chunks which the actual working model can understand. The popular version 1.5 of Stable Diffusion can take 75 such tokens as input, however, modern UIs like Automatic1111 can combine tokens to drastically increase the amount of tokens which can be used.