Git Product home page Git Product logo

unprompted's Introduction

Links: ๐Ÿ“ฃ Announcements | ๐Ÿ“˜ Manual | โฑ Changelog | ๐ŸŽ“ Starter Guide

Introduction

Unprompted is a powerful templating language written in Python.

Unlike most templating languages, Unprompted was designed for maximum readibility with natural language. It is built around [shortcodes] and inspired by the likes of BBCode.

You can use Unprompted as a standalone library (e.g. unprompted_dry.py) or as a superextension for AUTOMATIC1111's Stable Diffusion Web UI. The extension allows you to create expressive, re-usable prompt templates that are both versatile and easy on the eyes.

Additionally, it gives you access to exclusive Stable Diffusion features such as txt2mask, txt2img2img, zoom_enhance, and more.

Features

  • Dozens of shortcodes provided out of the box - there are [if] conditionals, powerful [file] imports, [for] loops and everything else the prompting enthusiast could possibly want
  • Yes, you can use it for wildcards, e.g. [choose]red|blue|yellow[/choose] or [choose][file somefile][/choose] to pick a line at random
  • Easily extendable with custom shortcodes
  • Simple creation of .txt templates that can be organized according to your preferences
  • Supports recursion, nested shortcodes, advanced logic operators, custom configs, pretty much all the good stuff one might expect from a modern language
  • Supports numerous Stable Diffusion variables such as negative_prompt and cfg_scale
  • Supports natural language processing features such as auto-pluralization, finding synonyms, and even verb conjugation
  • Includes a growing list of examples that demonstrate advanced functionality, such as customizing the weight of a choice list and applying emphasis to a random part of your prompt
  • Comprehensive documentation that is always up-to-date
  • Free
  • Developed by a human

Installation

We provide two methods of installation:

How to install directly... (click to expand)
  1. Visit the Extensions tab of Automatic's WebUI.
  2. Visit the Install from URL subtab.
  3. Paste this repo's URL into the first field: https://github.com/ThereforeGames/unprompted
  4. Click Install.
How to install through extensions index... (click to expand)
  1. Visit the Extensions tab of Automatic's WebUI.
  2. Visit the Available subtab.
  3. Uncheck the "ads" filter and press the Load from button.
  4. Scroll down to Unprompted and press the Install button. (Or use CTRL+F for convenience)

With either method, please be sure to restart your WebUI after installing. This allows Unprompted to download its Python dependencies.

Usage

First, try the included demo template by entering the following as your prompt - this will verify that Unprompted was installed correctly:

[file common/examples/human/main]

This is a simple "person generator" that automatically chooses characteristics like hair color, race, and posture.

The [file] shortcode will look in unprompted/templates for the specified text file (in this case unprompted/templates/common/examples/human/main.txt.) You do not need to enter the file extension.

Example output:

image

Next Steps

Once you have verified that Unprompted is installed and running correctly, you have a couple options:

  1. You can visit the ๐ŸŽ“ Starter Guide for a crash course on creating your own templates
  2. Or dive into the deep end by exploring the comprehensive ๐Ÿ“˜ Manual

Premium Templates

While Unprompted is completely free to use, we do offer Premium Template add-ons that demonstrate some of the software's more advanced functionality.

Generate pixel art in the style of DemonCrawl with this custom Stable Diffusion model! Trained on more than 50 avatars from the game. Create your very own character portraits even if you're not an artist!





Generate a wide variety of creatures and characters in the style of a fantasy card game. Perfect for heroes, animals, monsters, and even crazy hybrids.






Note: For context, I am a solo developer who is not associated with any commercial entities (beyond my own LLC), nor have I received any research grants for this project. Unprompted was funded completely out-of-pocket. Your generosity helps justify the 100s of hours I spent developing this software! โค๏ธ


Acknowledgements

A big "thank you" to the authors of the following libraries that Unprompted depends on:


๐Ÿ”ง Found a problem? Open an Issue.

๐Ÿ’ฌ For discussion and template sharing, use the Discussion Board.

โญ Like my work? Please consider giving the repo a "star" for visibility.

unprompted's People

Contributors

thereforegames avatar webersamuel avatar o0oradaro0o avatar bsweezy avatar kylechallis avatar maikotan avatar vanhall 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.