Code Monkey home page Code Monkey logo

test_my_prompt's Introduction

Made as a script for the AUTOMATIC1111/stable-diffusion-webui repository.

Test my prompt!

Have you ever used a very long prompt full of words that you are not sure have any actual impact on your image? Did you lose the courage to try to remove them one by one to test if their effects are worthy of your pwescious GPU?

WELL now you don't need any courage as this script has been MADE FOR YOU!

It generate as many images as there are words in your prompt (you can select the separator of course).

image

A most exquisite menu

πŸ’₯Note : the separator must be the same as the one you use. The default is ", " including the space. So make sure that each and every description in your prompt is separated the same way or they will be tested together. πŸ’₯

Installation

Copy the .py file in your /scripts folder or the folder of this repo in your extension folder.

Examples

Here the prompt is simply : "banana, on fire, snow" and so as you can see it has generated each image without each description in it.

grid-0020-2554476-Euler a-24-12-81761151-20221107152306 See how sad things are with no banana

Of course you can do it with more parameters.

"big titties goth gf, dress, swimsuit, beach, sunset, cloudy weather, iso100"

neg : "ugly, lowres, black and white, grascale, low quality, missing limbs, hands, painting, anime, 3d render, (wide angle:1.2), (naked:0.8)"

grid-0012-2847822-Euler a-32-7 5-ac3abe1d-20221106213735 It seems obvious that "dress" and "sunset" have a negative effect on that prompt.

You can also test your negative prompt :

grid-0013-2847822 0-Euler a-32-7 5-ac3abe1d-20221106213903

Another example :

grid-0023-3893916328 0-Euler a-32-7 5-ac3abe1d-20221106223202

Something very curious : removing "AUTOMATIC1111" simply removes the Gigachad from the picture. grid-0002-4184123397 0-Euler a-42-12 5-ac3abe1d-20221107150635 This may or may not have been edited.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.