https://cms.cogniwerk.ai/assets//ae3c11b8-2264-456c-9578-7a0602b9bed6.jpg

Prompt Editing: Tips and Tricks for Concept Bleeding

Author: 

CogniWerk Editor

Date: 17.10.2023

In the fascinating world of AI image generation with the Stable Diffusion Automatic1111’s webui, prompting plays a crucial role in guiding the models to create the desired outputs. However, the process isn't always straightforward, and one of the challenges faced by creators is concept bleeding, where a word or concept indirectly affects the results in unexpected ways. Here I will show you a few tips on how to use it to your advantage.

 

Understanding Concept Bleeding

Concept bleeding is a phenomenon that arises when certain words or concepts in the prompt indirectly influence the final output, even if they seem unrelated at first glance. The AI model may pick up on patterns and associations from its training data, leading it to make assumptions and connections between concepts that may not align with human understanding. This can result in surprising and sometimes undesired outcomes in the generated images.

For instance, consider the word "running" in the prompt. While a human may understand that "running" refers to an action and has nothing to do with the distance from the camera, the AI model may have learned from its training data that images labeled as "running" often feature full-body shots of people in motion. This learned bias can cause the AI to lean towards generating full-body shots whenever it encounters the word "running" in the prompt, even if the intention is to create close-up shots.

The tendency of the AI to generate full-body shots is influenced by the prevalence of such images in its training data. If there are more training images of people running in full-body shots than close-ups, the AI will exhibit a bias towards associating "running" with full-body compositions. This concept bleeding can be both intriguing and challenging for creators, as they strive to achieve their desired image outputs.

 

Blog Editing1    Blog Editing2

 

 

Tip 1: Combatting Concept Bleeding

To combat concept bleeding effectively, prompt editing becomes an invaluable tool. By strategically adjusting the prompt and timing of certain words, you can regain control over the image generation process. For example, instead of adding the word "forest" early in the prompt, you can introduce it later in the process, ensuring the image's composition reflects their intentions. Put the word into box brackets and set the number of the step you want it to start, for example: [forest:8]. This ensures, that the forest-concept doesn’t take over the overall theme and colors of the desired output.

Blog Editing3   Blog Editing4

 

 

Tip 2: Using BREAK to control the output

BREAK is an intriguing command that can significantly impact the outcome of AI image generation. By adding the command in all caps ("BREAK"), creators signal the model to pause and take a breath before continuing with the prompt. This can result in better color positioning and improved understanding of complex prompts. Utilizing BREAK wisely can lead to more consistent and accurate outputs. This work especially well for colors. Here’s an example of how I wanted to create orange sneakers on a grey ground in front of a blue wall. The colors bleed into each other and don’t translate well into the right place. So here I used “orange sneakers BREAK on a grey ground BREAK in front of a blue wall”.

Blog Editing9  Blog Editing10

 

Tip 3: Balancing Prompt Editing

Prompt editing presents endless creative possibilities. Creators can experiment with various prompt arrangements, adding or removing elements to fine-tune the generated images. For instance, by creating two entirely different prompts and blending them at a specific step, you can achieve imaginative and hard-to-describe images that showcase the model's versatility. This is really helpful with hard to describe visual intentions. Start by generating a basic composition or shape and then introduce a new concept that overwrites the first but keeps the general composition intact. For example: “[a blue bag : a fashion show with a walking woman : 7]” or “[a medieval castle : made out of ice cream cones and cake : 8]”. The number describes the step in which you introduce the new concept.

Blog Editing5  Blog Editing6

Blog Editing7  Blog Editing8

 

Tip 4: Utilizing Seed Variations

Seed variations offer a unique way to explore different aspects of image generation. Activate the “Extra”-option next to the seed. By adjusting noise strength and seed parameters, you can create multiple variations of a single image that you liked the most by freezing the seed and then adding diversity and depth to their artwork. This technique proves especially useful when searching for the perfect image or trying to generate consistent results with slight variations.

Blog Editing11

 

Conclusion: Prompt Crafting with Editing

Prompt editing is a skill that empowers creators to unleash the full potential of AI image generation. By understanding and addressing concept bleeding, strategically using BREAK, and mastering prompt editing techniques, creators can produce exceptional and awe-inspiring images. The dynamic interplay between offers an exciting journey of experimentation and discovery, paving the way for groundbreaking art and innovation in the realm of AI-generated visuals. So, embrace the power of prompt editing, and let your imagination run wild as you craft breathtaking AI-generated masterpieces.