Skip to content

Commit

Permalink
change prompting advice
Browse files Browse the repository at this point in the history
  • Loading branch information
zack-anthropic committed Mar 4, 2024
1 parent 94836c2 commit 36fcead
Showing 1 changed file with 59 additions and 21 deletions.
80 changes: 59 additions & 21 deletions misc/illustrated_responses.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"id": "30cb3d6e",
"metadata": {},
"outputs": [],
Expand All @@ -46,7 +46,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 4,
"id": "4f9afec4",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -85,7 +85,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 5,
"id": "95de4574",
"metadata": {},
"outputs": [],
Expand All @@ -104,7 +104,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 6,
"id": "04815193",
"metadata": {},
"outputs": [],
Expand All @@ -120,23 +120,61 @@
"\n",
"Here is some guidance for getting the best possible images:\n",
"\n",
"1. Be specific, clear, and concise with details.\n",
"2. Mention styles, artists, or art movements.\n",
"3. Use descriptive adjectives for mood and tone.\n",
"4. Address lighting, composition, and perspective.\n",
"5. Include reference images, links, or color schemes.\n",
"6. Describe characters, objects, and their traits clearly.\n",
"7. Highlight desired art styles, textures, and materials.\n",
"8. Use figurative language and analogies cautiously.\n",
"9. Limit prompt length and complexity.\n",
"10. Specify the time period, era, genre, or theme.\n",
"11. Balance emotions, realism, and imagination.\n",
"12. Limit the number of subjects and focal points.\n",
"13. Proofread for grammar, spelling, and clarity.\n",
"14. Consider scale, size, orientation, and detail.\n",
"15. Choose the format and emphasize composition techniques.\n",
"16. Experiment with negative space, light/shadow interplay, and contrasts.\n",
"17. Apply the 9 Elements of Art: line, shape, form, space, color, value, texture, balance, and contrast.\n",
"<image_prompting_advice>\n",
"Rule 1. Make Your Stable Diffusion Prompts Clear, and Concise\n",
"Successful AI art generation in Stable Diffusion relies heavily on clear and precise prompts. It's essential to craft problem statements that are both straightforward and focused.\n",
"\n",
"Clearly written prompts acts like a guide, pointing the AI towards the intended outcome. Specifically, crafting prompts involves choosing words that eliminate ambiguity and concentrate the AI's attention on producing relevant and striking images.\n",
"Conciseness in prompt writing is about being brief yet rich in content. This approach not only fits within the technical limits of AI systems but ensures each part of the prompt contributes meaningfully to the final image. Effective prompt creation involves boiling down complex ideas into their essence.\n",
"Prompt Example:\n",
"\"Minimalist landscape, vast desert under a twilight sky.\"\n",
"This prompt exemplifies how a few well-chosen words can paint a vivid picture. The terms 'minimalist' and 'twilight sky' work together to set a specific mood and scene, demonstrating effective prompts creation with brevity.\n",
"\n",
"Another Example:\n",
"\"Futuristic cityscape, neon lights, and towering skyscrapers.\"\n",
"Here, the use of descriptive but concise language creates a detailed setting without overwhelming the AI. This example showcases the importance of balancing detail with succinctness in prompt structuring methods.\n",
"\n",
"Rule 2. Use Detailed Subjects and Scenes to Make Your Stable Diffusion Prompts More Specific\n",
"Moving into detailed subject and scene description, the focus is on precision. Here, the use of text weights in prompts becomes important, allowing for emphasis on certain elements within the scene.\n",
"\n",
"Detailing in a prompt should always serve a clear purpose, such as setting a mood, highlighting an aspect, or defining the setting. The difference between a vague and a detailed prompt can be stark, often leading to a much more impactful AI-generated image. Learning how to add layers of details without overwhelming the AI is crucial.\n",
"Scene setting is more than just describing physical attributes; it encompasses emotions and atmosphere as well. The aim is to provide prompts that are rich in context and imagery, resulting in more expressive AI art.\n",
"Prompt Example:\n",
"\"Quiet seaside at dawn, gentle waves, seagulls in the distance.\"\n",
"In this prompt, each element adds a layer of detail, painting a serene picture. The words 'quiet', 'dawn', and 'gentle waves' work cohesively to create an immersive scene, showcasing the power of specific prompts crafting.\n",
"\n",
"Another Example:\n",
"\"Ancient forest, moss-covered trees, dappled sunlight filtering through leaves.\"\n",
"This prompt is rich in imagery and detail, guiding the AI to generate an image with depth and character. It illustrates how detailed prompts can lead to more nuanced and aesthetically pleasing results.\n",
"\n",
"Rule 3. Contextualizing Your Prompts: Providing Rich Detail Without Confusion\n",
"In the intricate world of stable diffusion, the ability to contextualize prompts effectively sets apart the ordinary from the extraordinary. This part of the stable diffusion guide delves into the nuanced approach of incorporating rich details into prompts without leading to confusion, a pivotal aspect of the prompt engineering process.\n",
"\n",
"Contextualizing prompts is akin to painting a picture with words. Each detail added layers depth and texture, making AI-generated images more lifelike and resonant. The art of specific prompts crafting lies in weaving details that are vivid yet coherent.\n",
"For example, when describing a scene, instead of merely stating: \n",
"\"a forest.\"\n",
"one might say,\n",
"\n",
"\"a sunlit forest with towering pines and a carpet of fallen autumn leaves.\"\n",
"Other Prompt Examples:\n",
"\"Starry night, silhouette of mountains against a galaxy-filled sky.\"\n",
"This prompt offers a clear image while allowing room for the AI’s interpretation, a key aspect of prompt optimization. The mention of 'starry night' and 'galaxy-filled sky' gives just enough context without dictating every aspect of the scene.\n",
"\n",
"Rule 4. Do Not Overload Your Prompt Details\n",
"While detail is desirable, overloading prompts with excessive information can lead to ambiguous results. This section of the definitive prompt guide focuses on how to strike the perfect balance.\n",
"\n",
"Descriptive Yet Compact: The challenge lies in being descriptive enough to guide the AI accurately, yet compact enough to avoid overwhelming it. For instance, a prompt like, 'A serene lake, reflecting the fiery hues of sunset, bordered by shadowy hills' paints a vivid picture without unnecessary verbosity.\n",
"Precision in language is key in this segment of the stable diffusion styles. It's about choosing the right words that convey the most with the least, a skill that is essential in prompt optimization.\n",
"For example, instead of using:\n",
"\"a light wind that can barely be felt but heard\"\n",
"You can make it shorter:\n",
"\n",
"whispering breeze\n",
"More Prompt Examples:\n",
"Sample prompt: \"Bustling marketplace at sunset, vibrant stalls, lively crowds.\"\n",
"\n",
"By using descriptive yet straightforward language, this prompt sets a vivid scene of a marketplace without overcomplicating it. It's an example of how well-structured prompts can lead to dynamic and engaging AI art.\n",
"</image_prompting_advice>\n",
"\n",
"If you decide to make a function call:\n",
"- the call syntax will not be displayed to the user, but the image you create will be.\n",
Expand Down

0 comments on commit 36fcead

Please sign in to comment.