Giter Club home page Giter Club logo

sd-webui-prompt-format's Introduction

SD Webui Prompt Format

[English|δΈ­ζ–‡]

This is an Extension for the Automatic1111 Webui, which helps formatting prompts.

Also supports SD.Next and Forge out of the box!

Sometimes, when you type too fast or copy prompts from all over the places, you end up with duplicated spaces or commas. This simple Extension helps removing them whenever you click Generate.

Features

  • Works in both txt2img and img2img
  • Remove duplicated spaces and commas
  • Fix misplaced brackets and commas
  • Toggle Remove Duplicates to remove identical tags found in the prompts
    • Note: Only works for tag-based prompt, not sentence-based prompt
      • eg. 1girl, solo, smile, 1girl will become 1girl, solo, smile
      • eg. a girl smiling, a girl standing will not be changed
  • Toggle Remove Underscores to replace _ with space
    • Some newer anime checkpoints claim to eliminate the need of using underscores
  • Respect line breaks
    • Remove Duplicates only checks within the same line
  • Toggle between auto formatting and manual formatting
    • In Auto: The process is ran whenever you press Generate
    • In Manual: The process is only ran when you press the Format button
  • Toggle which above features is enabled/disabled by default in System section of the Settings tab
  • Pressing Alt + Shift + F can also trigger formatting

Note

  1. Since the formatting in Auto mode is triggered at the same time as the generation, the immediate image will not have its metadata updated (unless you already did manual formatting beforehand).

  2. Some Extensions (eg. tagcomplete) listen to the text editing event, meaning the formatting will cause them to trigger. You can disable updating the actual prompts in the System section of the Settings tab.

sd-webui-prompt-format's People

Contributors

em411 avatar haoming02 avatar s-del avatar younyokel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sd-webui-prompt-format's Issues

Add aliases for tags

Could you add a way to specify tag aliases to remove redundant tags so we can do stuff like "1girl, female, woman, girl, solo" -> "1girl, solo"? And maybe also just plain aliasing to replace tags (e.g. "female, woman, girl, solo" -> "1girl, solo") Thanks

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.