mix1009 / model-keyword

Automatic1111 WEBUI extension to autofill keyword for custom stable diffusion models and LORA models.
MIT License
248 stars 13 forks source link

LORA's broken #27

Closed medledan closed 1 year ago

medledan commented 1 year ago

LORAs selected by the dropdown menu; and attempting to use created custom keyword mapping results in 'ERROR" in the UI.

NameError: name 'model_ckpt' is not defined Traceback (most recent call last): File "G:\stable-diffusion-webui-current\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict output = await app.get_blocks().process_api( File "G:\stable-diffusion-webui-current\venv\lib\site-packages\gradio\blocks.py", line 1015, in process_api result = await self.call_function( File "G:\stable-diffusion-webui-current\venv\lib\site-packages\gradio\blocks.py", line 833, in call_function prediction = await anyio.to_thread.run_sync( File "G:\stable-diffusion-webui-current\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "G:\stable-diffusion-webui-current\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "G:\stable-diffusion-webui-current\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run result = context.run(func, *args) File "G:\stable-diffusion-webui-current\extensions\model-keyword\scripts\model_keyword.py", line 444, in add_lora_keyword lora_keywords = get_lora_keywords(lora_model) File "G:\stable-diffusion-webui-current\extensions\model-keyword\scripts\model_keyword.py", line 168, in get_lora_keywords kws = _get_keywords_for_lora(lora_model) File "G:\stable-diffusion-webui-current\extensions\model-keyword\scripts\model_keyword.py", line 157, in _get_keywords_for_lora sim = str_simularity(kw_ckpt[1], model_ckpt) NameError: name 'model_ckpt' is not defined

mix1009 commented 1 year ago

Please update to the latest version. The bug was fixed.

medledan commented 1 year ago

Please update to the latest version. The bug was fixed.

Yup, fixed. Thanks!