Giter VIP home page Giter VIP logo

sdweb-easy-prompt-selector's Introduction

Easy Prompt Selector

Stable Diffusion Webui Extension Easy Prompt Selector.

Fork to translate this sd webui extension from Janpanese to English

How to use

After Installed and reloaded SD Webui, click "Pick Tag" button

It will open tag area

As you can see, it has 3 build-in templates, as examples. Click a tag, it will be added to prompt.

Tag name and value can be different.

Those tag templates are saved as .yml files in extension's folder.

Format is simple, each tag line is just key and value. If key is the same as value, you can skip it as screenshot shows.

Tag Folder

Normally, your own tag files should put in tags folder. If there is no .yml file in tags folder, extension will copy build-in example templates into tags folder.

Wildcard

In above screenshot, there are category buttons with orange color. Click one of these button, it will add wildcard to prompt. Which will pick 1 tag from this category randomly when generating.

Right Click To Remove Tag

You can right click a tag to remove it.

Works both on gradio 3.23.0 and 3.16.2

There is version checking in it, works for both version of gradio.

New Features in this Fork

"neg-" prefix

In this fork, I add a feature as "If a tag is start with neg-, then put this tag into negative prompt, and remove this neg- prefix. ". So you don't need to check "Add tag to Neg Prompt" manually.
For example, for tag value "neg-child loli", it will be put into negative prompt as "child loli".

Click again to remove tag

Click a tag again, it will search this tag in prompt and remove it. Works on prompt, neg-prompt and "neg-" prefixed tag.

Yes, there is already a right click to remove tag function. But you can not do right clicking on touch screen. So, this one is still needed.

BUg fixing

  • Tell python side after editing prompt, otherwise python won't know it.
  • Change Script function parameter from Script to scripts.Script, which has a name conflict issue hiding there.

Tip

  • Tag value doesn't need to be just 1 or 2 words. You can set a whole prompt to 1 tag, then use this tag as a template.

FYI

Credit goes to this extension's creator, who don't want to translate this good extension into English. So, I have to fork it to do this.

No feature request will be accepted, since it is a fork.

sdweb-easy-prompt-selector's People

Contributors

butaixianran avatar blue-pen5805 avatar dudcjs2779 avatar brakzalk avatar

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.