d8ahazard / sd_smartprocess

Smart Pre-processing extension for Stable Diffusion
194 stars 19 forks source link

Cannot process all to save caption files, manual save one by one only #47

Open revolvedai opened 7 months ago

revolvedai commented 7 months ago

I was not able to batch save all captions, I could only save them manually one by one by hitting "save caption".

I also noticed that despite it appearing like you can edit the text and save the edited caption, you cannot do so. Not sure if bug or what, but that feature would be nice.

When completing a "Process All" on a directory, got a traceback, maybe related?

Traceback (most recent call last): File "E:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict output = await app.get_blocks().process_api( File "E:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api result = await self.call_function( File "E:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function prediction = await anyio.to_thread.run_sync( File "E:\SD\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "E:\SD\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "E:\SD\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run result = context.run(func, args) File "E:\SD\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper response = f(args, **kwargs) File "E:\SD\stable-diffusion-webui\modules\call_queue.py", line 114, in f res[-1] += f"

Time taken: {elapsed_text}

{vram_html}
" TypeError: unsupported operand type(s) for +=: 'dict' and 'str'