fast-stable-diffusion icon indicating copy to clipboard operation
fast-stable-diffusion copied to clipboard

img2img and inpaint don't work

Open Sooty001 opened this issue 1 year ago • 12 comments

Img2img and inpaint work with 1 or 2 images, and that's it. Stops working. I am using the latest version of notepad, I also deleted the sd folder. Doesn't help, please tell me what to do?

Sooty001 avatar Mar 12 '23 16:03 Sooty001

Me, too:

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

KatyaKlein avatar Mar 12 '23 16:03 KatyaKlein

I'll check it out

TheLastBen avatar Mar 12 '23 17:03 TheLastBen

problems with upscaling too. just not doing anything

bayoumedic avatar Mar 12 '23 17:03 bayoumedic

are you using localtunnel or gradio server ?

TheLastBen avatar Mar 12 '23 19:03 TheLastBen

are you using localtunnel or gradio server ?

Gradio server

Sooty001 avatar Mar 12 '23 19:03 Sooty001

can you generate a batch size of 4 images in txt2img ?

TheLastBen avatar Mar 12 '23 19:03 TheLastBen

can you generate a batch size of 4 images in txt2img ?

I'm not the guy you were talking to but we seem to have the same issue, and yeah I can generate a 4 image batch in txt2img, that works normally

materosx avatar Mar 12 '23 19:03 materosx

can you generate a batch size of 4 images in txt2img ?

Yes, I can create 4 images in txt2img

Sooty001 avatar Mar 12 '23 19:03 Sooty001

I'm having the same problems. Txt2img works perfectly but img2img and inpaint are completely broke.

I can upload an image into these parts but the moment I enter my prompt/settings and click generate nothing happens. I wait and wait but no image is generated and no error messages are shown in automatic1111 or the terminal.

The moment I switch to txt2img and use that instead I get an image in seconds.

personxyz avatar Mar 13 '23 18:03 personxyz

OK, I tried going back to an older auto1111 commit from the 2nd of March and that seems to have fixed the issue, I've just spent the last 90 minutes inpainting with absolutely no problems. For anyone who wants to try this, the commit I used was: fc3063d9b924c094b59229269f4afe722b120d88

It's obviously not a perfect solution but until the root cause is figured out this is likely the best option.

personxyz avatar Mar 13 '23 20:03 personxyz

OK, I tried going back to an older auto1111 commit from the 2nd of March and that seems to have fixed the issue, I've just spent the last 90 minutes inpainting with absolutely no problems. For anyone who wants to try this, the commit I used was: fc3063d9b924c094b59229269f4afe722b120d88

It's obviously not a perfect solution but until the root cause is figured out this is likely the best option.

Update: Now this older commit isn't working for me! I'm starting to go insane trying to fix this damn problem. I guess I'll try a different commit but I don't hold out much hope.

personxyz avatar Mar 14 '23 15:03 personxyz

OK, I tried going back to an older auto1111 commit from the 2nd of March and that seems to have fixed the issue, I've just spent the last 90 minutes inpainting with absolutely no problems. For anyone who wants to try this, the commit I used was: fc3063d9b924c094b59229269f4afe722b120d88

It's obviously not a perfect solution but until the root cause is figured out this is likely the best option.

Update: Now this older commit isn't working for me! I'm starting to go insane trying to fix this damn problem. I guess I'll try a different commit but I don't hold out much hope.

Hope this gets fixed

Sooty001 avatar Mar 14 '23 16:03 Sooty001

Gradio is the problem. Since switching to something different I've had zero problems.

The LastBen notebook has a box you can tick to use "localtunnel" instead of Gradio.

There's also this colab notebook that has multiple Gradio alternatives.

I also think ngrok is allowed on colab so you could switch to that. It's pretty simple, here's a tutorial.

personxyz avatar Mar 18 '23 13:03 personxyz

Gradio is the problem. Since switching to something different I've had zero problems.

The LastBen notebook has a box you can tick to use "localtunnel" instead of Gradio.

There's also this colab notebook that has multiple Gradio alternatives.

I also think ngrok is allowed on colab so you could switch to that. It's pretty simple, here's a tutorial.

Thanks, I'll try

Sooty001 avatar Mar 18 '23 13:03 Sooty001

Probably had something to do with local tunnel not supporting websocket

Sardelka9515 avatar Mar 28 '23 06:03 Sardelka9515

I added ngrok

TheLastBen avatar Mar 28 '23 16:03 TheLastBen

I'm still have this problem sometimes even using ngrok. I swicthed to cloudflare tunnel and it works perfectly so far

You can run it like this

import re
!wget -q https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && dpkg -i cloudflared-linux-amd64.deb
!sudo pkill cloudflared
!rm "nohup.out"
!nohup cloudflared tunnel --url http://localhost:7860 &
p = re.compile('https://[\w-]+\.trycloudflare\.com')
time.sleep(6)
f=open("nohup.out", "r")
output=f.read()
f.close()
urlObj=p.search(output)
print("Webui url is "+urlObj.group(0))

Sardelka9515 avatar Mar 29 '23 05:03 Sardelka9515

I'm still have this problem sometimes even using ngrok. I swicthed to cloudflare tunnel and it works perfectly so far

You can run it like this

import re
!wget -q https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && dpkg -i cloudflared-linux-amd64.deb
!sudo pkill cloudflared
!rm "nohup.out"
!nohup cloudflared tunnel --url http://localhost:7860 &
p = re.compile('https://[\w-]+\.trycloudflare\.com')
time.sleep(6)
f=open("nohup.out", "r")
output=f.read()
f.close()
urlObj=p.search(output)
print("Webui url is "+urlObj.group(0))

Where exactly should this be added? before what?

Sooty001 avatar Mar 29 '23 13:03 Sooty001