{"id":13493306,"url":"https://github.com/mix1009/model-keyword","last_synced_at":"2025-04-04T08:08:14.589Z","repository":{"id":65262732,"uuid":"572790314","full_name":"mix1009/model-keyword","owner":"mix1009","description":"Automatic1111 WEBUI extension to autofill keyword for custom stable diffusion models and LORA models.","archived":false,"fork":false,"pushed_at":"2024-10-30T00:05:28.000Z","size":15192,"stargazers_count":247,"open_issues_count":15,"forks_count":13,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-30T02:44:42.307Z","etag":null,"topics":["automatic1111","extension","stable-diffusion-webui"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mix1009.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-01T03:07:53.000Z","updated_at":"2024-10-30T00:05:32.000Z","dependencies_parsed_at":"2023-09-25T23:34:47.126Z","dependency_job_id":"e440a0c7-7f24-4ff4-9493-dc6de478d8e7","html_url":"https://github.com/mix1009/model-keyword","commit_stats":{"total_commits":3245,"total_committers":1,"mean_commits":3245.0,"dds":0.0,"last_synced_commit":"1babc30e8ed9b51c84c83ab431fd31992a63927d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix1009%2Fmodel-keyword","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix1009%2Fmodel-keyword/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix1009%2Fmodel-keyword/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix1009%2Fmodel-keyword/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mix1009","download_url":"https://codeload.github.com/mix1009/model-keyword/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142066,"owners_count":20890652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automatic1111","extension","stable-diffusion-webui"],"created_at":"2024-07-31T19:01:14.056Z","updated_at":"2025-04-04T08:08:14.572Z","avatar_url":"https://github.com/mix1009.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# model-keyword\nAutomatic1111 WEBUI extension to autofill keyword(trigger words) for custom stable diffusion models and LORA models.\n\n[model-keyword-github.webm](https://user-images.githubusercontent.com/1288793/205525862-a8eaebfe-1860-41d1-bc66-335896b467dd.webm)\n\n## Installation\n\nCopy the url of the repository ( https://github.com/mix1009/model-keyword ) into the extension tab and press \"Install\"\n\n\u003cimg width=\"936\" alt=\"Screenshot 2022-12-01 at 12 14 25 PM\" src=\"https://user-images.githubusercontent.com/1288793/204957471-63712085-783b-437b-9925-ee8f935093f7.png\"\u003e\n\nFrom \"Extensions/Installed\" tab press \"Apply and restart UI\".\n\u003cimg width=\"925\" alt=\"Screenshot 2022-12-01 at 12 18 43 PM\" src=\"https://user-images.githubusercontent.com/1288793/204958071-357d1c9b-22aa-47fc-98b4-582349b1b0cd.png\"\u003e\n\n## Usage\nFrom txt2img, img2img tab, \"Model Keyword\" section is added. Model keyword extension is enabled by default. Click Model Keyword or triangle to reveal options.\n\n![model-keyword-open](https://user-images.githubusercontent.com/1288793/212831258-0eea1dc8-9b67-4395-9368-fd69eebe4fb0.png)\n\nWhen generating image, the extension will try to figure out which model is used and insert matching keyword to the prompt:\n\u003cimg width=\"1246\" alt=\"model-keyword-usage\" src=\"https://user-images.githubusercontent.com/1288793/205525854-9a4f90a7-6547-4fab-b49b-ab31b37707d6.png\"\u003e\n\n\n\n### Keyword placement\n\u003cimg width=\"569\" alt=\"Screenshot 2022-12-01 at 12 26 41 PM\" src=\"https://user-images.githubusercontent.com/1288793/204959180-8d2b509c-722e-44c3-84d6-e7dfd24f40ae.png\"\u003e\n\n\n### Multiple keywords \n\u003cimg width=\"577\" alt=\"Screenshot 2022-12-01 at 12 27 00 PM\" src=\"https://user-images.githubusercontent.com/1288793/204959221-66ae2e7f-5fd0-4896-9dc3-402f0db60dba.png\"\u003e\n\n1) keyword1, keyword2 - use all keywords separated by comma\n2) random - choose one random keyword \n3) iterate - iterate through each keyword for each image generation\n   * If sd-dynamic-prompts extension is installed, iterate will not work properly. Please disable Dynamic Prompts.\n   * 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.\n4) keyword1 - use first keyword\n5) keyword2 - use second keyword (if it exists)\n\n### LORA model support\n\u003cimg width=\"579\" alt=\"LORA\" src=\"https://user-images.githubusercontent.com/1288793/222634648-7f02fce3-6854-4ea9-8550-362a4ce98f8e.png\"\u003e\n\n1) Select LORA model from the Model dropdown.\n2) Keywords dropdown list should contain keywords for the selected model.\n3) Limitation: You can only select one model, and select one keyword or all keywords.\n4) If you are using multiple LORA models, please check https://lora-help.coolai.app/ .\n\n## Add Custom Mappings\n\u003cimg width=\"795\" alt=\"custom_mappings\" src=\"https://user-images.githubusercontent.com/1288793/212851582-8c3c39a2-0f18-44d4-bbb5-3a31cb61e339.png\"\u003e\n\n* \"Check\" -\u003e outputs model filename, hash, matching keyword(s), and source of match in result.\n* \"Save\" -\u003e save custom mapping with keyword. (Fill keyword)\n* \"Delete\" -\u003e deletes custom mapping for model if it's available.\n\n* Mappings are saved in custom-mappings.txt\n* If previous mapping is found, save overwrites it.\n* do NOT edit model-keyword.txt . It can be overwritten or cause conflict while upgrading.\n* 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.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmix1009%2Fmodel-keyword","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmix1009%2Fmodel-keyword","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmix1009%2Fmodel-keyword/lists"}