Closed v2cn closed 1 year ago
What happened?
can't genarate Public WebUI Colab URL
Colab cell output
/content Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount("/content/drive", force_remount=True). env: PYTHONDONTWRITEBYTECODE=1 env: TF_CPP_MIN_LOG_LEVEL=1 50 packages can be upgraded. Run 'apt list --upgradable' to see them. --2023-06-07 12:29:41-- http://launchpadlibrarian.net/367274644/libgoogle-perftools-dev_2.5-2.2ubuntu3_amd64.deb Resolving launchpadlibrarian.net (launchpadlibrarian.net)... 185.125.189.229, 185.125.189.228, 2620:2d:4000:1001::8007, ... Connecting to launchpadlibrarian.net (launchpadlibrarian.net)|185.125.189.229|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 203696 (199K) [application/x-debian-package] Saving to: ‘libgoogle-perftools-dev_2.5-2.2ubuntu3_amd64.deb’ libgoogle-perftools 100%[===================>] 198.92K --.-KB/s in 0.05s 2023-06-07 12:29:41 (3.70 MB/s) - ‘libgoogle-perftools-dev_2.5-2.2ubuntu3_amd64.deb’ saved [203696/203696] --2023-06-07 12:29:41-- https://launchpad.net/ubuntu/+source/google-perftools/2.5-2.2ubuntu3/+build/14795286/+files/google-perftools_2.5-2.2ubuntu3_all.deb Resolving launchpad.net (launchpad.net)... 185.125.189.223, 185.125.189.222, 2620:2d:4000:1001::8004, ... Connecting to launchpad.net (launchpad.net)|185.125.189.223|:443... connected. HTTP request sent, awaiting response... 303 See Other Location: https://launchpadlibrarian.net/367274642/google-perftools_2.5-2.2ubuntu3_all.deb [following] --2023-06-07 12:29:42-- https://launchpadlibrarian.net/367274642/google-perftools_2.5-2.2ubuntu3_all.deb Resolving launchpadlibrarian.net (launchpadlibrarian.net)... 185.125.189.229, 185.125.189.228, 2620:2d:4000:1001::8007, ... Connecting to launchpadlibrarian.net (launchpadlibrarian.net)|185.125.189.229|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 294224 (287K) [application/x-debian-package] Saving to: ‘google-perftools_2.5-2.2ubuntu3_all.deb’ google-perftools_2. 100%[===================>] 287.33K --.-KB/s in 0.05s 2023-06-07 12:29:42 (5.82 MB/s) - ‘google-perftools_2.5-2.2ubuntu3_all.deb’ saved [294224/294224] --2023-06-07 12:29:42-- https://launchpad.net/ubuntu/+source/google-perftools/2.5-2.2ubuntu3/+build/14795286/+files/libtcmalloc-minimal4_2.5-2.2ubuntu3_amd64.deb Resolving launchpad.net (launchpad.net)... 185.125.189.223, 185.125.189.222, 2620:2d:4000:1001::8004, ... Connecting to launchpad.net (launchpad.net)|185.125.189.223|:443... connected. HTTP request sent, awaiting response... 303 See Other Location: https://launchpadlibrarian.net/367274648/libtcmalloc-minimal4_2.5-2.2ubuntu3_amd64.deb [following] --2023-06-07 12:29:42-- https://launchpadlibrarian.net/367274648/libtcmalloc-minimal4_2.5-2.2ubuntu3_amd64.deb Resolving launchpadlibrarian.net (launchpadlibrarian.net)... 185.125.189.229, 185.125.189.228, 2620:2d:4000:1001::8007, ... Connecting to launchpadlibrarian.net (launchpadlibrarian.net)|185.125.189.229|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 91644 (89K) [application/x-debian-package] Saving to: ‘libtcmalloc-minimal4_2.5-2.2ubuntu3_amd64.deb’ libtcmalloc-minimal 100%[===================>] 89.50K --.-KB/s in 0.02s 2023-06-07 12:29:42 (3.61 MB/s) - ‘libtcmalloc-minimal4_2.5-2.2ubuntu3_amd64.deb’ saved [91644/91644] --2023-06-07 12:29:42-- https://launchpad.net/ubuntu/+source/google-perftools/2.5-2.2ubuntu3/+build/14795286/+files/libgoogle-perftools4_2.5-2.2ubuntu3_amd64.deb Resolving launchpad.net (launchpad.net)... 185.125.189.223, 185.125.189.222, 2620:2d:4000:1001::8004, ... Connecting to launchpad.net (launchpad.net)|185.125.189.223|:443... connected. HTTP request sent, awaiting response... 303 See Other Location: https://launchpadlibrarian.net/367274647/libgoogle-perftools4_2.5-2.2ubuntu3_amd64.deb [following] --2023-06-07 12:29:42-- https://launchpadlibrarian.net/367274647/libgoogle-perftools4_2.5-2.2ubuntu3_amd64.deb Resolving launchpadlibrarian.net (launchpadlibrarian.net)... 185.125.189.229, 185.125.189.228, 2620:2d:4000:1001::8007, ... Connecting to launchpadlibrarian.net (launchpadlibrarian.net)|185.125.189.229|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 189628 (185K) [application/x-debian-package] Saving to: ‘libgoogle-perftools4_2.5-2.2ubuntu3_amd64.deb’ libgoogle-perftools 100%[===================>] 185.18K --.-KB/s in 0.04s 2023-06-07 12:29:42 (4.28 MB/s) - ‘libgoogle-perftools4_2.5-2.2ubuntu3_amd64.deb’ saved [189628/189628] libunwind-dev is already the newest version (1.2.1-9ubuntu0.1). 0 upgraded, 0 newly installed, 0 to remove and 50 not upgraded. (Reading database ... 123521 files and directories currently installed.) Preparing to unpack google-perftools_2.5-2.2ubuntu3_all.deb ... Unpacking google-perftools (2.5-2.2ubuntu3) over (2.5-2.2ubuntu3) ... Preparing to unpack libgoogle-perftools4_2.5-2.2ubuntu3_amd64.deb ... Unpacking libgoogle-perftools4 (2.5-2.2ubuntu3) over (2.5-2.2ubuntu3) ... Preparing to unpack libgoogle-perftools-dev_2.5-2.2ubuntu3_amd64.deb ... Unpacking libgoogle-perftools-dev (2.5-2.2ubuntu3) over (2.5-2.2ubuntu3) ... Preparing to unpack libtcmalloc-minimal4_2.5-2.2ubuntu3_amd64.deb ... Unpacking libtcmalloc-minimal4 (2.5-2.2ubuntu3) over (2.5-2.2ubuntu3) ... Setting up libtcmalloc-minimal4 (2.5-2.2ubuntu3) ... Setting up libgoogle-perftools4 (2.5-2.2ubuntu3) ... Setting up libgoogle-perftools-dev (2.5-2.2ubuntu3) ... Setting up google-perftools (2.5-2.2ubuntu3) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for libc-bin (2.31-0ubuntu9.9) ... env: LD_PRELOAD=libtcmalloc.so libcairo2-dev is already the newest version (1.16.0-4ubuntu1). pkg-config is already the newest version (0.29.1-0ubuntu4). python3-dev is already the newest version (3.8.2-0ubuntu2). aria2 is already the newest version (1.35.0-1build1). 0 upgraded, 0 newly installed, 0 to remove and 50 not upgraded. unionfs-fuse is already the newest version (1.0-1ubuntu2). 0 upgraded, 0 newly installed, 0 to remove and 50 not upgraded. mkdir: cannot create directory ‘/content/fused-models’: File exists mkdir: cannot create directory ‘/content/models’: File exists mkdir: cannot create directory ‘/content/fused-lora’: File exists mkdir: cannot create directory ‘/content/lora’: File exists fuse: mountpoint is not empty fuse: if you are sure this is safe, use the 'nonempty' mount option fuse: mountpoint is not empty fuse: if you are sure this is safe, use the 'nonempty' mount option /content/drive/MyDrive/stable-diffusion-webui-colab/stable-diffusion-webui Updating files: 100% (203/203), done. HEAD is now at 22bcc7be attempted fix for infinite loading for settings that some people experience Updating files: 100% (135/135), done. HEAD is now at cf1d67a Update modelcard.md Cloning into '/content/drive/MyDrive/stable-diffusion-webui-colab/stable-diffusion-webui/extensions/a1111-sd-webui-locon'... remote: Enumerating objects: 193, done. remote: Counting objects: 100% (43/43), done. remote: Compressing objects: 100% (19/19), done. remote: Total 193 (delta 17), reused 41 (delta 16), pack-reused 150 Receiving objects: 100% (193/193), 48.00 KiB | 1.66 MiB/s, done. Resolving deltas: 100% (95/95), done. HEAD is now at 22bcc7be attempted fix for infinite loading for settings that some people experience Already up to date. Download Results: gid |stat|avg speed |path/URI ======+====+===========+======================================================= e4ae70|OK | 0B/s|/content/drive/MyDrive/stable-diffusion-webui-colab/stable-diffusion-webui/models/CLIP/ViT-L-14.pt Status Legend: (OK):download completed. Python 3.10.11 (main, Apr 5 2023, 14:15:10) [GCC 9.4.0] Commit hash: 22bcc7be428c94e9408f589966c2040187245d81 Installing requirements for Web UI Launching Web UI with arguments: --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --clip-models-path /content/drive/MyDrive/stable-diffusion-webui-colab/stable-diffusion-webui/models/CLIP --ckpt-dir /content/fused-models --lora-dir /content/fused-lora --multiple 2023-06-07 12:30:28.236757: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT /usr/local/lib/python3.10/dist-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional. warnings.warn( Additional Network extension not installed, Only hijack built-in lora LoCon Extension hijack built-in lora successfully [AddNet] Updating model hashes... 0it [00:00, ?it/s] [AddNet] Updating model hashes... 0it [00:00, ?it/s] 2023-06-07 12:30:43,322 - ControlNet - INFO - ControlNet v1.1.219 ControlNet preprocessor location: /content/drive/MyDrive/stable-diffusion-webui-colab/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/downloads 2023-06-07 12:30:43,612 - ControlNet - INFO - ControlNet v1.1.219 Loading weights [cc6cb27103] from /content/fused-models/v1-5-pruned-emaonly.ckpt Creating model from config: /content/drive/MyDrive/stable-diffusion-webui-colab/stable-diffusion-webui/configs/v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Applying xformers cross attention optimization. Textual inversion embeddings loaded(9): ng_deepnegative_v1_75t, bad-image-v2-39000, EasyNegativeV2, verybadimagenegative_v1.3, bad-hands-5, EasyNegative, bad-artist, bad_prompt_version2, bad-artist-anime Model loaded in 30.6s (load weights from disk: 25.1s, create model: 3.9s, apply weights to model: 1.2s, load textual inversion embeddings: 0.2s). *Deforum ControlNet support: enabled* Error reading github repository info from /content/drive/MyDrive/stable-diffusion-webui-colab/stable-diffusion-webui/extensions/sd-webui-tunnels: Traceback (most recent call last): File "/content/drive/MyDrive/stable-diffusion-webui-colab/stable-diffusion-webui/modules/extensions.py", line 47, in read_info_from_repo repo = git.Repo(self.path) File "/usr/local/lib/python3.10/dist-packages/git/repo/base.py", line 282, in __init__ self.working_dir: Optional[PathLike] = self._working_tree_dir or self.common_dir File "/usr/local/lib/python3.10/dist-packages/git/repo/base.py", line 363, in common_dir raise InvalidGitRepositoryError() git.exc.InvalidGitRepositoryError Running on local URL: http://0.0.0.0:7860 To create a public link, set `share=True` in `launch()`. Startup time: 57.7s (import torch: 8.6s, import gradio: 1.5s, import ldm: 2.4s, other imports: 1.7s, list SD models: 0.3s, setup codeformer: 0.2s, load scripts: 6.2s, load SD checkpoint: 33.8s, create ui: 2.7s, gradio launch: 0.2s).
Which colab and model(s) were you using when the error occurred?
https://colab.research.google.com/github/camenduru/stable-diffusion-webui-colab/blob/drive/run.ipynb
Which Public WebUI Colab URL were you using when the error occurred?
gradio.live
If you used HiRes mode when the error occurred, please provide the Hires info
No response
Change argument "listen" to ”share” (• ▽ •;)
Hi @Cabel7 👋 hi @Cabel7 👋 please use install colab
@Cabel7
Change argument "listen" to ”share” (• ▽ •;)
howto? Modify the file run.ipynb?
@v2cn Change this ”!python launch.py --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --clip-models-path /content/drive/MyDrive/stable-diffusion-webui-colab/stable-diffusion-webui/models/CLIP --ckpt-dir /content/fused-models --lora-dir /content/fused-lora --multiple"
To "!python launch.py --share --xformers --enable-insecure-extension-access --theme dark --gradio-queue --clip-models-path /content/drive/MyDrive/stable-diffusion-webui-colab/stable-diffusion-webui/models/CLIP --ckpt-dir /content/fused-models --lora-dir /content/fused-lora”
At Last of the notebook 🤗
@v2cn Change this ”!python launch.py --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --clip-models-path /content/drive/MyDrive/stable-diffusion-webui-colab/stable-diffusion-webui/models/CLIP --ckpt-dir /content/fused-models --lora-dir /content/fused-lora --multiple"
To "!python launch.py --share --xformers --enable-insecure-extension-access --theme dark --gradio-queue --clip-models-path /content/drive/MyDrive/stable-diffusion-webui-colab/stable-diffusion-webui/models/CLIP --ckpt-dir /content/fused-models --lora-dir /content/fused-lora”
At Last of the notebook 🤗
wow! it work now! thx a lots! Big kiss!!!
i am getting same error. Strange tho as yesterday it worked fine for me. I usually get 3 links links this:
https://6d0bff33-8c53-419a.gradio.live/
Public WebUI Colab URL: https://0fa5102997450b.lhr.life/
Public WebUI Colab URL: https://pearl-cambridge-earl-wax.trycloudflare.com/
Changing to sharing makes one link only. Thanks for the tip @Cabel7 🙏 I cant find launch() function in launch.py ? Where is it located ?
To create a public link, set share=True
in launch()
.
OK i think issue is... due to errors with ControlNet in Deforum I disabled most of the extensions. And Tunnels is the one that makes the 3x website links. Therefore links disappeared. Correct me if Im wrong. Now enabled and links come up.
sd-webui-tunnels | https://github.com/camenduru/sd-webui-tunnels
@koshimazaki
In Colab, the --share flag is used to generate a shareable link for the notebook, allowing others to view and interact with it. On the other hand, the --listen flag is typically used to enable a Jupyter notebook server's web interface.
When you use the --share flag in Colab, it generates a single link that can be shared with others to access and view the notebook. This link is different from the Jupyter notebook server's web interface link. The purpose of the --share flag is to provide a convenient way to share your Colab notebook with others, while the --listen flag is used to start a Jupyter notebook server and provides web interface links for accessing and interacting with the notebook.
If you want to access the Jupyter notebook server's web interface links in Colab, you should use the --listen flag instead of the --share flag.
Thank you @Cabel7 for detailed explanation. I just need to run web ui with deforum using google collab. Once i disabled the Tunnels extension I lost links to interface. --share flag as you suggested actually allowed to use UI. Got it all working now. Was getting really confused as I reinstalled it three times due to errors and incompatibilities between different extensions and deforum, and at the end lost links to UI as well.
@koshimazaki Well for deforum, there shouldn't be any problem running it either ways. Both --share and --listen should work fine in Colab.
--listen doesn't print the link to webui, --share does, thats the major difference. and Tunnels extension gives 3 different links which are really useful as I keep getting connection errors, then the remaining links are really handy.
Something went wrong Connection errored out.
@koshimazaki Well are you a free user, if so then forget about it
Im paid user still get issues with these connections. Anyway its working for me now, thank you!
What happened?
can't genarate Public WebUI Colab URL
Colab cell output
Which colab and model(s) were you using when the error occurred?
https://colab.research.google.com/github/camenduru/stable-diffusion-webui-colab/blob/drive/run.ipynb
Which Public WebUI Colab URL were you using when the error occurred?
gradio.live
If you used HiRes mode when the error occurred, please provide the Hires info
No response