File size: 2,231 Bytes
56fa58d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# Prompt generator
An extension for [webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui) that lets you generate prompts.
![](screenshot.png)
## Getting more models online
You can add models from huggingface to the selection of models in setting. The setting field
is `Hugginface model names for promptgen, separated by comma`, and its default value is
just:
```
AUTOMATIC/promptgen-lexart, AUTOMATIC/promptgen-majinai-safe, AUTOMATIC/promptgen-majinai-unsafe
```
Those are GPT2 finetunes I did on various datasets:
- [AUTOMATIC/promptgen-lexart](https://huggingface.co/AUTOMATIC/promptgen-lexart): Finetuned distilgpt2 for 100 epochs on prompts scraped from lexica.art
- [AUTOMATIC/promptgen-majinai-safe](https://huggingface.co/AUTOMATIC/promptgen-majinai-safe): Finetuned distilgpt2 for 40 epochs on safe prompts scraped from majinai.art.
- [AUTOMATIC/promptgen-majinai-unsafe](https://huggingface.co/AUTOMATIC/promptgen-majinai-unsafe): Finetuned distilgpt2 for 40 epochs on unsafe prompts scraped from majinai.art.
To add more models, add more items to the setting, for example like this:
```
AUTOMATIC/promptgen-lexart, AUTOMATIC/promptgen-majinai-safe, AUTOMATIC/promptgen-majinai-unsafe, succinctly/text2image-prompt-generator, microsoft/Promptist
```
Reloading UI is required to apply this setting.
## Getting more models offline
Put your models into the `models` directort inside the extension. For example, my model can be
made fully offline by placing fines from https://huggingface.co/AUTOMATIC/promptgen-lexart/tree/main into
those directories:
```
π webui root directory
βββ π extensions
βββ π stable-diffusion-webui-promptgen
βββ π models
βββ π promptgen-lexart <----- any name can be used
β£ββ π config.json <----- each model has its own set of required files;
β£ββ π merges.txt mine requires all those
β£ββ π pytorch_model.bin
β£ββ π tokenizer_config.json
βββ π vocab.json
```
Reloading UI is required to see new models.
|