Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mix1009/model-keyword
Automatic1111 WEBUI extension to autofill keyword for custom stable diffusion models and LORA models.
https://github.com/mix1009/model-keyword
automatic1111 extension stable-diffusion-webui
Last synced: about 8 hours ago
JSON representation
Automatic1111 WEBUI extension to autofill keyword for custom stable diffusion models and LORA models.
- Host: GitHub
- URL: https://github.com/mix1009/model-keyword
- Owner: mix1009
- License: mit
- Created: 2022-12-01T03:07:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T00:05:28.000Z (14 days ago)
- Last Synced: 2024-10-30T02:44:42.307Z (14 days ago)
- Topics: automatic1111, extension, stable-diffusion-webui
- Language: Python
- Homepage:
- Size: 14.5 MB
- Stars: 247
- Watchers: 6
- Forks: 13
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# model-keyword
Automatic1111 WEBUI extension to autofill keyword(trigger words) for custom stable diffusion models and LORA models.[model-keyword-github.webm](https://user-images.githubusercontent.com/1288793/205525862-a8eaebfe-1860-41d1-bc66-335896b467dd.webm)
## Installation
Copy the url of the repository ( https://github.com/mix1009/model-keyword ) into the extension tab and press "Install"
From "Extensions/Installed" tab press "Apply and restart UI".
## Usage
From txt2img, img2img tab, "Model Keyword" section is added. Model keyword extension is enabled by default. Click Model Keyword or triangle to reveal options.![model-keyword-open](https://user-images.githubusercontent.com/1288793/212831258-0eea1dc8-9b67-4395-9368-fd69eebe4fb0.png)
When generating image, the extension will try to figure out which model is used and insert matching keyword to the prompt:
### Keyword placement
### Multiple keywords
1) keyword1, keyword2 - use all keywords separated by comma
2) random - choose one random keyword
3) iterate - iterate through each keyword for each image generation
* If sd-dynamic-prompts extension is installed, iterate will not work properly. Please disable Dynamic Prompts.
* Alternatively, you can rename model-keyword to sd-model-keyword in the extensions folder. It will change the order of the extension and fix the bug.
4) keyword1 - use first keyword
5) keyword2 - use second keyword (if it exists)### LORA model support
1) Select LORA model from the Model dropdown.
2) Keywords dropdown list should contain keywords for the selected model.
3) Limitation: You can only select one model, and select one keyword or all keywords.
4) If you are using multiple LORA models, please check https://lora-help.coolai.app/ .## Add Custom Mappings
* "Check" -> outputs model filename, hash, matching keyword(s), and source of match in result.
* "Save" -> save custom mapping with keyword. (Fill keyword)
* "Delete" -> deletes custom mapping for model if it's available.* Mappings are saved in custom-mappings.txt
* If previous mapping is found, save overwrites it.
* do NOT edit model-keyword.txt . It can be overwritten or cause conflict while upgrading.
* hash value for model has been changed in webui(2023-01-14), this extension uses old hash value. Old hash value is no longer displayed in webui.