ThereforeGames / unprompted

Templating language written for Stable Diffusion workflows. Available as an extension for the Automatic1111 WebUI.
771 stars 65 forks source link
a1111-stable-diffusion-webui ai-art deep-learning gpt gradio img2img python shortcode stable-diffusion template-engine text2image txt2img wildcards

Links: πŸ“£ Announcements | πŸ“˜ Manual | ⏱ Changelog | πŸŽ“ Starter Guide

πŸ‘‹ Introduction

Unprompted is a powerful templating language and Swiss Army knife for the Stable Diffusion WebUI.

Built around [shortcodes], Unprompted is uniquely designed for maximum readibility with natural language. This makes it easy to learn and use, even for those with no prior programming experience.

Now also available as a ComfyUI node.

πŸ“¦ Features

πŸ”§ Installation

We provide three 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)
(NEW) How to install via pip for standalone use... (click to expand) 1. In your terminal, run `pip install unprompted@git+https://github.com/ThereforeGames/unprompted` 2. Refer to [unprompted_dry.py](https://github.com/ThereforeGames/unprompted/blob/main/unprompted_dry.py) for details on implementing Unprompted in your own Python projects

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

πŸ“š Usage

First, let's verify that your installation was successful by trying out an included template. Add this to your prompt:

[call common/examples/human/main]

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

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

Example output:

image

πŸš€ Next Steps

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

  1. Visit the πŸŽ“ Guides page and follow our walkthrough on creating your own templates
  2. Explore the comprehensive πŸ“˜ Manual and figure things out at your own pace

πŸ›’ Premium Templates

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

Beautiful Soul Template

A highly expressive character generator for the A1111 WebUI. With thousands of wildcards and direct ControlNet integration, this is by far our most powerful Unprompted template to date.





DemonCrawl Avatar Generator

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!





Fantasy Card Template

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 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

We would like to thank the authors of the following libraries, which are used by Unprompted:


πŸ› Found a bug? Open an Issue.

πŸ’¬ For discussion and template sharing, use the Discussion Board.

⭐ Like my work? Please consider giving the repo a "star" for visibility.