stable-diffusion-webui-colab icon indicating copy to clipboard operation
stable-diffusion-webui-colab copied to clipboard

🚨 We switched Gradio Tunnel to Cloudflare Tunnel

Open camenduru opened this issue 2 years ago • 19 comments
trafficstars

This is why we switched to cloudflare

  • Cloudflare faster
  • Restart working with Cloudflare
  • Cloudflare has no timeout problem

https://user-images.githubusercontent.com/54370274/221298345-0e3a738a-927a-4b6d-8500-72c327731288.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

camenduru avatar Feb 24 '23 21:02 camenduru

Thank you. This is a huge help.

neon1978 avatar Feb 24 '23 23:02 neon1978

Thank you!

meefs avatar Feb 25 '23 03:02 meefs

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

kengomj avatar Feb 25 '23 04:02 kengomj

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.

DeedgeMatrixGrafx avatar Feb 25 '23 05:02 DeedgeMatrixGrafx

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>

etherealxx avatar Feb 25 '23 06:02 etherealxx

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

yesyeahvh123 avatar Feb 25 '23 06:02 yesyeahvh123

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)

Metheenami avatar Feb 25 '23 06:02 Metheenami

-gradio-auth

thank you! perfect!

kengomj avatar Feb 25 '23 07:02 kengomj

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

camenduru avatar Feb 25 '23 09:02 camenduru

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

Metheenami avatar Feb 25 '23 14:02 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?

Cherryblossomoflove avatar Feb 25 '23 15:02 Cherryblossomoflove

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?

Metheenami avatar Feb 25 '23 15:02 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

Cherryblossomoflove avatar Feb 25 '23 15:02 Cherryblossomoflove

I'm using 2.0 version and I see it

@Metheenami

Cherryblossomoflove avatar Feb 25 '23 15:02 Cherryblossomoflove

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!

Metheenami avatar Feb 25 '23 15:02 Metheenami

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.

DeedgeMatrixGrafx avatar Feb 25 '23 19:02 DeedgeMatrixGrafx

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.

Enferlain avatar Feb 26 '23 00:02 Enferlain

Hi @Enferlain please try other tunnels

Screenshot 2023-02-28 142942

camenduru avatar Feb 26 '23 00:02 camenduru

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)"))

Semonxue avatar Mar 12 '23 17:03 Semonxue

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

camenduru avatar Mar 16 '23 02:03 camenduru

I use sdxl-colab, and can I use Cloudflare Tunnel too?

muuua1004 avatar Feb 06 '24 16:02 muuua1004