stable-diffusion-webui-forge
stable-diffusion-webui-forge copied to clipboard
Bug : Extra Networks directory view style [Tree] Edit Metadata button won't display model card
Hi there.
if you try to open a model card in the Extra Networks / Checkpoints window from the "Edit Metadata button" (the red tool icon) in the tree view (the column on the left) Forge won't and displays an error.
Like this :
Relevant setting :
Result :
What should be displayed (works if you click on the red tool icon of card in the right part of the view) :
Relevant log :
reading info for : KeyError
Traceback (most recent call last):
File "/whatever/stable-diffusion-webui-forge/modules/ui_extra_networks_user_metadata.py", line 102, in get_metadata_table
filename = item["filename"]
KeyError: 'filename'
Traceback (most recent call last):
File "/whatever/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/gradio/queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
File "/whatever/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/gradio/route_utils.py", line 285, in call_process_api
output = await app.get_blocks().process_api(
File "/whatever/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1923, in process_api
result = await self.call_function(
File "/whatever/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1508, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "/whatever/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/whatever/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/whatever/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/whatever/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/gradio/utils.py", line 818, in wrapper
response = f(*args, **kwargs)
File "/whatever/stable-diffusion-webui-forge/modules/ui_extra_networks_checkpoints_user_metadata.py", line 27, in put_values_into_components
values = super().put_values_into_components(name)
File "/whatever/stable-diffusion-webui-forge/modules/ui_extra_networks_user_metadata.py", line 129, in put_values_into_components
return html.escape(name), user_metadata.get('description', ''), table, self.get_card_html(name), user_metadata.get('notes', '')
File "/whatever/stable-diffusion-webui-forge/modules/ui_extra_networks_user_metadata.py", line 77, in get_card_html
filename, _ = os.path.splitext(item["filename"])
KeyError: 'filename'