[Bug]: for index, name in enumerate(sd_hijack.model_hijack.embedding_db.word_embeddings): RuntimeError: dictionary changed size during iteration #14092
Labels
bug-report
Report of a bug, yet to be confirmed
Is there an existing issue for this?
What happened?
Traceback (most recent call last):
File "J:\StableDiffusion\sdwebui\py310\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "J:\StableDiffusion\sdwebui\py310\lib\site-packages\gradio\blocks.py", line 1431, in process_api
result = await self.call_function(
File "J:\StableDiffusion\sdwebui\py310\lib\site-packages\gradio\blocks.py", line 1103, in call_function
prediction = await anyio.to_thread.run_sync(
File "J:\StableDiffusion\sdwebui\py310\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "J:\StableDiffusion\sdwebui\py310\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "J:\StableDiffusion\sdwebui\py310\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "J:\StableDiffusion\sdwebui\py310\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(*args, **kwargs)
File "J:\StableDiffusion\sdwebui\modules\ui_extra_networks.py", line 392, in pages_html
return refresh()
File "J:\StableDiffusion\sdwebui\modules\ui_extra_networks.py", line 400, in refresh
ui.pages_contents = [pg.create_html(ui.tabname) for pg in ui.stored_extra_pages]
File "J:\StableDiffusion\sdwebui\modules\ui_extra_networks.py", line 400, in
ui.pages_contents = [pg.create_html(ui.tabname) for pg in ui.stored_extra_pages]
File "J:\StableDiffusion\sdwebui\modules\ui_extra_networks.py", line 162, in create_html
self.items = {x["name"]: x for x in self.list_items()}
File "J:\StableDiffusion\sdwebui\modules\ui_extra_networks.py", line 162, in
self.items = {x["name"]: x for x in self.list_items()}
File "J:\StableDiffusion\sdwebui\modules\ui_extra_networks_textual_inversion.py", line 32, in list_items
for index, name in enumerate(sd_hijack.model_hijack.embedding_db.word_embeddings):
RuntimeError: dictionary changed size during iteration
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。
Steps to reproduce the problem
RuntimeError: dictionary changed size during iteration
What should have happened?
RuntimeError: dictionary changed size during iteration
Sysinfo
win11,sd1.6.0,py310.11,
What browsers do you use to access the UI ?
Google Chrome
Console logs
Additional information
No response
The text was updated successfully, but these errors were encountered: