diff --git a/Writing-prompts.md b/Writing-prompts.md new file mode 100644 index 0000000..08280bc --- /dev/null +++ b/Writing-prompts.md @@ -0,0 +1,49 @@ +* Keep your prompts short. Don't write full sentences. Separate different aspects by commas: + + `girl on a swing, green grass, pink trousers` + +* Stable Diffusion only takes 75 "tokens" into account. A token can be a single word, or a common combination of words. Some very long words can also count as two tokens. + +* Due to the way Stable Diffusion was trained, there are a few words that often improve the quality of images, e.g. `highly detailed` or `trending on artstation`: + + ![image](https://user-images.githubusercontent.com/5852422/196815094-2a3d075e-a641-43b2-a773-26ebbd249fb7.png) + +* You can use the names of art styles, artists or computer programs to influence the look of the rendered images. A wide choice of modifiers can be found in the _Image Modifiers_ section: + + ![image](https://user-images.githubusercontent.com/5852422/196817139-fe7f6aa2-b658-4170-be79-e02af7ec604b.png) + + You can also put the modifiers directly into your prompt to get many different styles: + + ![image](https://user-images.githubusercontent.com/5852422/196818870-c44ca641-bc3e-45a9-91a5-c66a7b671d1f.png) + +* You can mark parts of the prompt as more or less important. When you put a part of the prompt in round brackets, it becomes more important. If you use square brackets, the enclosed part becomes less important. You can use multiple brackets for something `(((very important)))` or `[[[less important]]]`: + + ![image](https://user-images.githubusercontent.com/5852422/196799015-7cfa13db-dffb-4c3e-82e8-786c8cd7b2af.png) + +* Instead of using brackets, you can also provide the importance ("weight") as numbers: `girl on a swing:1.2 green grass:1.0 pink trousers:0.8` + + The first weight impacts the entire beginning of the prompt. In the above example, `girl on a swing` has a weight of 1.2, `green grass` has a + weight of 1.0 and `pink trousers` has a weight of 0.8. + + The weight is a separator. You shouldn't use a comma after the weight. + +* Use curly brackets in prompts to try different words, e.g. the prompt `man riding a {horse,motorcycle}` creates two rendering jobs: One for `man riding a horse` and one for `man riding a motorcycle`: + + ![image](https://user-images.githubusercontent.com/5852422/196795838-88dec248-dbbc-4681-b00f-c16444e80a73.png) + +* The negative prompt can be used to describe what you don't want to see in the image. The AI sometimes ignores parts of the negative prompt, especially if the prompt and negative prompt contain very similar terms. In other cases, the negative prompt has big impact on the composition of the image. For example, if you put "shoes" into the negative prompt, you might get a barefoot person - or you get an image where the feet are out of frame. + + A useful negative prompt is: + + `Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ((((mutated hands and fingers)))), (((out of frame)))` + +## Further reading +* [Stable Diffusion Modifier Studies](https://proximacentaurib.notion.site/2b07d3195d5948c6a7e5836f9d535592?v=b5b75a67cc52483c9965cfc141f6f582) + + This is a list of hundreds of different style modifiers + +* [lexica.art](https://lexica.art/) + + This site is a search engine for prompt and image ideas. **Warning:** Some of the images on this website can be NSFW (adult-rated), please use it at your own discretion. + +* [Prompt Examples and Experiments](https://strikingloo.github.io/stable-diffusion-vs-dalle-2#prompt-examples-and-experiments) \ No newline at end of file