generate a prompt from a small base prompt using distilgpt2. Adds a tab with additional control of the model.
 
 
Go to file
Imrayya 33683c21ea Doesn't run pip when already installed 2023-01-11 17:55:02 +01:00
scripts Slightly better error handling. Bit of formatting 2023-01-11 13:24:07 +01:00
.gitignore first commit 2022-12-29 01:40:34 +01:00
README.md Updated README.md to include blacklist 2023-01-07 19:35:15 +01:00
blacklist.txt Added ability to use a blacklist 2023-01-07 19:04:21 +01:00
install.py Doesn't run pip when already installed 2023-01-11 17:55:02 +01:00

README.md

Prompt Generator

Adds a tab to the webui that allows the user to generate a prompt from a small base prompt. Based on FredZhang7/distilgpt2-stable-diffusion-v2. I did nothing apart from porting it to AUTOMATIC1111 WebUI

image

Installation:

  1. Install AUTOMATIC1111's Stable Diffusion Webui
  2. Clone this repository into the extensions folder inside the webui

Usage:

  1. Write in the prompt in the Start of the prompt text box
  2. Click Generate and wait

Parameters Explanation

  • Start of the prompt: As the name, the start of the prompt that the generator should start with
  • Temperature: A higher temperature will produce more diverse results, but with a higher risk of less coherent text
  • Top K: The number of tokens to sample from at each step
  • Max Length: the maximum number of tokens for the output of the model
  • Repetition Penalty: The penalty value for each repetition of a token
  • How Many To Generate: The number of results to generate
  • Use blacklist? Using .\extensions\stable-diffusion-webui-Prompt_Generator\blacklist.txt. It will delete any matches to the generated result (case insensitive). Be aware that it simply deletes it and doesn't generate more to make up for the lost words