NowComment
2-Pane Combined
Comments:
Full Summaries Sorted

Prompt Guide by Dream Studio (Hugging Face)

Author: Graverman @dailystablediff

https://beta.dreamstudio.ai/prompt-guide

Basics of Prompt Engineering

A guide by Graverman

Today I propose a simple formula for beginners to use and create better generations with text to image AI. This was tested on stable diffusion but it should work on any model if it was trained on enough art data.

After reading this document and applying these simple steps, you’ll be able to generate better images with the same amount of effort.

1. Raw prompt

Raw prompt is the simplest way of describing what you want to generate, for instance;

  1. Panda
  2. A warrior with a sword
  3. Skeleton

This is the basic building block of any prompt. Most new people start by only using raw prompts, this is usually a mistake as the images you generate like this tend to get random and chaotic. Here are some examples that I generated with running the earlier prompts

As you can see, these images have random scenery and don’t look very aesthetically pleasing, I definitely wouldn’t consider them art. This brings me to my next point;

2. Style

Style is a crucial part of the prompt. The AI, when missing a specified style, usually chooses the one it has seen the most in related images, for example, if I generated landscape, it would probably generate realistic or oil painting looking images. Having a well chosen style + raw prompt is sometimes enough, as the style influences the image the most right after the raw prompt.

The most commonly used styles include:

  1. Realistic
  2. Oil painting
  3. Pencil drawing
  4. Concept art

I’ll examine them one by one to give an overview on how you might use these styles.

In the case of a realistic image, there are various ways of making it the style, most resulting in similar images. Here are some commonly used techniques of making the image realistic:

  1. a photo of + raw prompt
  2. a photograph of + raw prompt
  3. raw prompt, hyperrealistic
  4. raw prompt, realistic

You can of course combine these to get more and more realistic images.

To get oil painting you can just simply add “an oil painting of” to your prompt. This sometimes results in the image showing an oil painting in a frame, to fix this you can just re-run the prompt or use raw prompt + “oil painting”

To make a pencil drawing just simply add “a pencil drawing of” to your raw prompt or make your prompt raw prompt + “pencil drawing”.

The same applies to landscape art.

3. Artist

To make your style more specific, or the image more coherent, you can use artists’ names in your prompt. For instance, if you want a very abstract image, you can add “made by Pablo Picasso” or just simply, “Picasso”.

Below are lists of artists in different styles that you can use, but I always encourage you to search for different artists as it is a cool way of discovering new art.

Portrait

  1. John Singer Sargent
  2. Edgar Degas
  3. Paul Cézanne
  4. Jan van Eyck

Oil painting

  1. Leonardo DaVinci
  2. Vincent Van Gogh
  3. Johannes Vermeer
  4. Rembrandt

Pencil/Pen drawing

  1. Albrecht Dürer
  2. Leonardo da Vinci
  3. Michelangelo
  4. Jean-Auguste-Dominique Ingres

Landscape art

  1. Thomas Moran
  2. Claude Monet
  3. Alfred Bierstadt
  4. Frederic Edwin Church

Mixing the artists is highly encouraged, as it can lead to interesting-looking art.

4. Finishing touches

This is the part that some people take to extremes, leading to longer prompts than this article. Finishing touches are the final things that you add to your prompt to make it look like you want. For instance, if you want to make your image more artistic, add “trending on artstation”. If you want to add more realistic lighting add “Unreal Engine.” You can add anything you want, but here are some examples:

Highly detailed, surrealism, trending on art station, triadic color scheme, smooth, sharp focus, matte, elegant, the most beautiful image ever seen, illustration, digital paint, dark, gloomy, octane render, 8k, 4k, washed colors, sharp, dramatic lighting, beautiful, post processing, picture of the day, ambient lighting, epic composition

5. Conclusion

Prompt engineering allows you to have better control of what the image will look like. It (if done right) improves the image quality by a lot in every aspect. If you enjoyed this “article”, well, I’m glad I didn’t waste my time. If you see any ways that I can improve this, definitely let me know on discord (Graverman#0804)

From the DreamStudio team: “Thanks Graverman!”

DMU Timestamp: December 07, 2022 10:22





Image
0 comments, 0 areas
add area
add comment
change display
Video
add comment

Quickstart: Commenting and Sharing

How to Comment
  • Click icons on the left to see existing comments.
  • Desktop/Laptop: double-click any text, highlight a section of an image, or add a comment while a video is playing to start a new conversation.
    Tablet/Phone: single click then click on the "Start One" link (look right or below).
  • Click "Reply" on a comment to join the conversation.
How to Share Documents
  1. "Upload" a new document.
  2. "Invite" others to it.

Logging in, please wait... Blue_on_grey_spinner