[Bug]: the img2img dies after 1 or 2 generations of image
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
the ui just froze but txt2img works but not whole img2img
Steps to reproduce the problem
- Go to ....
- Press ....
- ... just try it on collab
What should have happened?
well, work normally
Commit where the problem happens
img2img tab
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
Microsoft Edge
Command Line Arguments
none
List of extensions
control net
Console logs
none
Additional information
No response
I've been getting this issue for the past few days as well. Img2img hangs after the first few generations.
I have also been getting this issue. on this collab. https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb#scrollTo=p4wj_txjP3TC. the issue seems to be different each time but usually after a few attempts of img to img it stops working. txt to img still works but img to img breaks in various ways. I have also gotten this error its not consistent:
ERROR: Exception in ASGI application Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/uvicorn/protocols/websockets/websockets_impl.py", line 225, in run_asgi result = await self.app(self.scope, self.asgi_receive, self.asgi_send) File "/usr/local/lib/python3.9/dist-packages/uvicorn/middleware/proxy_headers.py", line 78, in call return await self.app(scope, receive, send) File "/usr/local/lib/python3.9/dist-packages/fastapi/applications.py", line 270, in call await super().call(scope, receive, send) File "/usr/local/lib/python3.9/dist-packages/starlette/applications.py", line 124, in call await self.middleware_stack(scope, receive, send) File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/errors.py", line 149, in call await self.app(scope, receive, send) File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/base.py", line 24, in call await self.app(scope, receive, send) File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/gzip.py", line 26, in call await self.app(scope, receive, send) File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/exceptions.py", line 51, in call await self.app(scope, receive, send) File "/usr/local/lib/python3.9/dist-packages/fastapi/middleware/asyncexitstack.py", line 21, in call raise e File "/usr/local/lib/python3.9/dist-packages/fastapi/middleware/asyncexitstack.py", line 18, in call await self.app(scope, receive, send) File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 680, in call await route.handle(scope, receive, send) File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 334, in handle await self.app(scope, receive, send) File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 81, in app await func(session) File "/usr/local/lib/python3.9/dist-packages/fastapi/routing.py", line 283, in app await dependant.call(**values) File "/usr/local/lib/python3.9/dist-packages/gradio/routes.py", line 436, in join_queue session_info = await websocket.receive_json() File "/usr/local/lib/python3.9/dist-packages/starlette/websockets.py", line 133, in receive_json self._raise_on_disconnect(message) File "/usr/local/lib/python3.9/dist-packages/starlette/websockets.py", line 105, in _raise_on_disconnect raise WebSocketDisconnect(message["code"]) starlette.websockets.WebSocketDisconnect: 1006
Could be multiple issues here. I've had it hang/break at different points. Most of the time it seems to just hang, without error output.
Just got this actual error tho.
Traceback (most recent call last): File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict output = await app.get_blocks().process_api( File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1013, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 911, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1488, in preprocess assert isinstance(x, dict) AssertionError
I've made some environment updates for extensions so there could be a dependencies issue that I've introduced.
Also worth noting is that task manager still shows ~95% 3D usage on the GPU. Some kind of infinite loop?
(using a 4090 with the dreambooth + torch 2 dependency updates)
I recreated my environment from scratch without extensions. No more hangs. Must be an extension/dependency causing this.
I had these extensions installed: embedding-inspector, openOutpaint-webUI-extension, openpose-editor, sd_dreambooth_extension, and sd-webui-controlnet.
I recreated my environment from scratch without extensions. No more hangs. Must be an extension/dependency causing this.
I had these extensions installed: embedding-inspector, openOutpaint-webUI-extension, openpose-editor, sd_dreambooth_extension, and sd-webui-controlnet.
Can confirm, nixing only controlnet resolves this. It was causing the problem even when not enabled for the individual generation -- by removing the extension completely, I stopped seeing these errors.