PromptGallery-stable-diffusion-webui: Error when selecting generated images for prompt-sets
Following the tutorial video with default files i get this when pressing “Select” after the generation:
Traceback (most recent call last):
File "D:\Repositories\Python\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 321, in run_predict
output = await app.blocks.process_api(
File "D:\Repositories\Python\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1015, in process_api
result = await self.call_function(fn_index, inputs, iterator, request)
File "D:\Repositories\Python\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 856, in call_function
prediction = await anyio.to_thread.run_sync(
File "D:\Repositories\Python\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "D:\Repositories\Python\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "D:\Repositories\Python\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
result = context.run(func, *args)
File "D:\Repositories\Python\stable-diffusion-webui\scripts\prompt_gallery.py", line 634, in <lambda>
fn=lambda x: image_url(x),
File "D:\Repositories\Python\stable-diffusion-webui\scripts\prompt_gallery.py", line 571, in image_url
if filedata.startswith("data:image/png;base64,"):
AttributeError: 'dict' object has no attribute 'startswith'
The window for selected preview displays error.
I found a comment on the tutorial video reporting the same problem.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 19 (6 by maintainers)
@Golgovskiy I could see the log and added a fix accordingly. thx