camenduru / stable-diffusion-webui-colab

stable diffusion webui colab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🚨 We switched Gradio Tunnel to Cloudflare Tunnel

camenduru opened this issue · comments

This is why we switched to cloudflare

  • Cloudflare faster
  • Restart working with Cloudflare
  • Cloudflare has no timeout problem
2023-02-24.23-23-15.2.mp4

Now our link appears here

Screenshot 2023-02-25 160902

Thanks to @Bing-su's ❤️ sd-webui-tunnels extension, we now have four tunnels.

If you want to use GoogleUserContent Tunnel (HTTPS), simply add --googleusercontent to the end of the launch.py line

For --googleusercontent if you are using v2.0 please remove the --gradio-queue if you are using v1.6 please remove 
!sed -i -e 's/default_enabled=False/default_enabled=True/' /content/stable-diffusion-webui/webui.py

Screenshot 2023-02-26 043706

If you want to use Cloudflare Tunnel (HTTPS), simply add --cloudflared to the end of the launch.py line
Screenshot 2023-02-26 015754

If you want to use LocalHostRun Tunnel (HTTP), simply add --localhostrun to the end of the launch.py line
Screenshot 2023-02-26 015823

If you want to use RemoteMoe Tunnel (HTTP), simply add --remotemoe to the end of the launch.py line
Screenshot 2023-02-26 015840

If you want to use Gradio Tunnel (HTTPS), simply add --share to the end of the launch.py line
Screenshot 2023-02-26 015910

Thank you. This is a huge help.

commented

Thank you!

I m new on sd. How can I make the sd private although someone have the url? need to add something like auth?

Got that "A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type" error.

Tried putting the --no-half argument

Turn up with slower renders with blanks in the end.

I give up and wish everyone else who got their sessions running my blessings.

I m new on sd. How can I make the sd private although someone have the url? need to add something like auth?

@kengomj add -gradio-auth <yourusername:<yourpassword>

in v2.0, i see slower renders and blanks in the end, cant click generate button

Umm i have problem with this new update Gradio to Cloudflare.

When i do generate an image, it's proccessing so well until it's finished, then i can't see the generate image.
I checked the generate image on imageBrowser, my generate image was there..

But when i want to generate for the second time. i pressing the generate button again and again, but didn't work at all. take a look my terminal, they don't process anything when i'm pressing generate button.

Hope someone can explain this and also maybe this is need to be fixed.

(Sorry my english so bad maybe)

-gradio-auth

thank you! perfect!

Hi @yesyeahvh123 👋 Hi @Metheenami 👋 Hi @DeedgeMatrixGrafx 👋 please try it again with v2.0 maybe it will works now

Hi.. i'm sorry, again when i'm running the server just now. i can't find the following link, example (https://organizations-golf-techrepublic-nano.trycloudflare.com) to open my stable diffusion web ui. i'm looking for the "cloudflare" link as i know it must be my link to open my web ui on public

Last time before the update, it was there in the middle of executing the terminal process

Hi.. i'm sorry, again when i'm running the server just now. i can't find the following link, example (https://organizations-golf-techrepublic-nano.trycloudflare.com) to open my stable diffusion web ui. i'm looking for the "cloudflare" link as i know it must be my link to open my web ui on public

Last time before the update, it was there in the middle of executing the terminal process

Are you using 1.6 version or 2.0?

Hi.. i'm sorry, again when i'm running the server just now. i can't find the following link, example (https://organizations-golf-techrepublic-nano.trycloudflare.com) to open my stable diffusion web ui. i'm looking for the "cloudflare" link as i know it must be my link to open my web ui on public
Last time before the update, it was there in the middle of executing the terminal process

Are you using 1.6 version or 2.0?

version 1.6, should i use version 2.0 instead?

Hi.. i'm sorry, again when i'm running the server just now. i can't find the following link, example (https://organizations-golf-techrepublic-nano.trycloudflare.com) to open my stable diffusion web ui. i'm looking for the "cloudflare" link as i know it must be my link to open my web ui on public
Last time before the update, it was there in the middle of executing the terminal process

Are you using 1.6 version or 2.0?

version 1.6

Hi.. i'm sorry, again when i'm running the server just now. i can't find the following link, example (https://organizations-golf-techrepublic-nano.trycloudflare.com) to open my stable diffusion web ui. i'm looking for the "cloudflare" link as i know it must be my link to open my web ui on public
Last time before the update, it was there in the middle of executing the terminal process

Are you using 1.6 version or 2.0?

version 1.6, should i use version 2.0 instead?

yea it has the link

I'm using 2.0 version and I see it

@Metheenami

Hi.. i'm sorry, again when i'm running the server just now. i can't find the following link, example (https://organizations-golf-techrepublic-nano.trycloudflare.com) to open my stable diffusion web ui. i'm looking for the "cloudflare" link as i know it must be my link to open my web ui on public
Last time before the update, it was there in the middle of executing the terminal process

Are you using 1.6 version or 2.0?

version 1.6

Hi.. i'm sorry, again when i'm running the server just now. i can't find the following link, example (https://organizations-golf-techrepublic-nano.trycloudflare.com) to open my stable diffusion web ui. i'm looking for the "cloudflare" link as i know it must be my link to open my web ui on public
Last time before the update, it was there in the middle of executing the terminal process

Are you using 1.6 version or 2.0?

version 1.6, should i use version 2.0 instead?

yea it has the link

Got it!

Got that "A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type" error.

Tried putting the --no-half argument

Turn up with slower renders with blanks in the end.

I give up and wish everyone else who got their sessions running my blessings.

It's working properly for me now.
2.0 user by the way.

commented

in v2.0, i see slower renders and blanks in the end, cant click generate button

Same exact thing, but not in v2. Slower generation and bugged on the end with clicking on generate not doing anything, similar to before colabs switched to using gradio.

Hi @Enferlain please try other tunnels

Screenshot 2023-02-28 142942

It looks now the Cloudflare also will down sometime. I added following code before the last line (!python launch.py ...) to print out googleusercontent url , works well until now.

from google.colab.output import eval_js
print(eval_js("google.colab.kernel.proxyPort(7860)"))

now we have --multiple tunnels at the same time 🥳 cloudflared and remotemoe and gradio and do not use gradio link we are getting ERROR: Exception in ASGI application