Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: for index, name in enumerate(sd_hijack.model_hijack.embedding_db.word_embeddings): RuntimeError: dictionary changed size during iteration #14092

Closed
1 task done
swumagic opened this issue Nov 25, 2023 · 1 comment
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@swumagic
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

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

for index, name in enumerate(sd_hijack.model_hijack.embedding_db.word_embeddings):

RuntimeError: dictionary changed size during iteration

What should have happened?

for index, name in enumerate(sd_hijack.model_hijack.embedding_db.word_embeddings):

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

for index, name in enumerate(sd_hijack.model_hijack.embedding_db.word_embeddings):
RuntimeError: dictionary changed size during iteration

Additional information

No response

@swumagic swumagic added the bug-report Report of a bug, yet to be confirmed label Nov 25, 2023
@w-e-w
Copy link
Collaborator

w-e-w commented Nov 25, 2023

#13014

@w-e-w w-e-w closed this as completed Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

2 participants