Closed Azura-13 closed 1 year ago
That's ... the commands in the colab you're using, not an error message?
Sorry is this better?
0: 640x512 1 face, 7.2ms
Speed: 3.0ms preprocess, 7.2ms inference, 1.4ms postprocess per image at shape (1, 3, 640, 512)
100% 17/17 [00:13<00:00, 1.23it/s]
0% 0/40 [00:00<?, ?it/s]
Error completing request
Arguments: ('task(cg3i9ouzx3auq5g)', '(realistic:1.3), finely detailed, quality, perfect lighting, (masterpiece:1.2), (photorealistic:1.2), (best quality), perfect skin, (intricate details), ray tracing, (looking at viewer), (girl centred), (perfect breasts) (clear breast skin), (facing forward), exhausted expression, short hair, long bangs, (centre parted hair), (white hair), beautiful girls head on old machine body, gunmetal, rusty old exoskeleton, outdated, poor, rust, rusty metal, official cyberpunk wallpaper, (white background:1.1), (blue glowing human heart visible inside breast, exposed), (yellow eyes),
Oh, yes that's the actual error - you just need to update the extension.
ah right thank you. Can I update through automatic 1111 or does it need a fresh install?
Yes, you can update in auto webui by going to the extensions tab and clicking "check for updates", then once it's found them just confirm/apply
Ahh I asked because I auto updated 2 days ago and it didn't update dynamic-thresholding. I'll have to see if I can manually update it. Thanks for all your help
Hi, um I don't really understand coding but sd-dynamic-thresholding no longer runs on my automatic 1111 colab, every time I turn it on, I get this:
@markdown # Start Stable-Diffusion
from IPython.utils import capture import time import sys import fileinput from pyngrok import ngrok, conf import re
Use_Cloudflare_Tunnel = False #@param {type:"boolean"}
@markdown - Offers better gradio responsivity
Ngrok_token = "" #@param {type:"string"}
@markdown - Input your ngrok token if you want to use ngrok server
User = "" #@param {type:"string"} Password= "" #@param {type:"string"}
@markdown - Add credentials to your Gradio interface (optional)
auth=f"--gradio-auth {User}:{Password}" if User =="" or Password=="": auth=""
with capture.capture_output() as cap: %cd /content/gdrive/$mainpth/sd/stable-diffusion-w$blasphemy/modules/ !wget -q -O extras.py https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-w$blasphemy/master/modules/extras.py !wget -q -O sd_models.py https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-w$blasphemy/master/modules/sd_models.py !wget -q -O /usr/local/lib/python3.10/dist-packages/gradio/blocks.py https://raw.githubusercontent.com/TheLastBen/fast-stable-diffusion/main/AUTOMATIC1111_files/blocks.py %cd /content/gdrive/$mainpth/sd/stable-diffusion-w$blasphemy/
!sed -i 's@shared.opts.data["sd_model_checkpoint"] = checkpoint_info.title@shared.opts.data["sd_model_checkpoint"] = checkpoint_info.title;model.half()@' /content/gdrive/$mainpth/sd/stable-diffusion-w$blasphemy/modules/sd_models.py !sed -i 's@ui.create_ui().*@ui.create_ui();shared.demo.queue(concurrency_count=999999,status_update_rate=0.1)@' /content/gdrive/$mainpth/sd/stable-diffusion-w$blasphemy/webui.py !sed -i "s@map_location='cpu'@map_location='cuda'@" /content/gdrive/$mainpth/sd/stable-diffusion-w$blasphemy/modules/extras.py
!sed -i 's@possible_sd_paths =.*@possible_sd_paths = [\"/content/gdrive/{mainpth}/sd/stablediffusion\"]@' /content/gdrive/$mainpth/sd/stable-diffusion-w$blasphemy/modules/paths.py !sed -i 's@..\/@src/@g' /content/gdrive/$mainpth/sd/stable-diffusion-w$blasphemy/modules/paths.py !sed -i 's@src/generative-models@generative-models@g' /content/gdrive/$mainpth/sd/stable-diffusion-w$blasphemy/modules/paths.py
!sed -i 's@print(\"No module.*@@' /content/gdrive/$mainpth/sd/stablediffusion/ldm/modules/diffusionmodules/model.py !sed -i 's@["sd_model_checkpoint"]@["sd_model_checkpoint", "sd_vae", "CLIP_stop_at_last_layers", "inpainting_mask_weight", "initial_noise_multiplier"]@g' /content/gdrive/$mainpth/sd/stable-diffusion-w$blasphemy/modules/shared.py
share='' if Ngrok_token!="": ngrok.kill() srv=ngrok.connect(7860, pyngrok_config=conf.PyngrokConfig(auth_token=Ngrok_token) , bind_tls=True).public_url
for line in fileinput.input('/usr/local/lib/python3.10/dist-packages/gradio/blocks.py', inplace=True): if line.strip().startswith('self.server_name ='): line = f' self.server_name = "{srv[8:]}"\n' if line.strip().startswith('self.protocol = "https"'): line = ' self.protocol = "https"\n' if line.strip().startswith('if self.local_url.startswith("https") or self.is_colab'): line = '' if line.strip().startswith('else "http"'): line = '' sys.stdout.write(line)
elif Use_Cloudflare_Tunnel: with capture.capture_output() as cap: !pkill cloudflared time.sleep(4) !nohup cloudflared tunnel --url http://localhost:7860 > /content/srv.txt 2>&1 & time.sleep(4) with open('/content/srv.txt', "r") as file: text = file.read() srv= re.findall(r"https?://(?:\S+?.)?trycloudflare.com\S*", text)[0]
else: share='--share'
ckptdir='' if os.path.exists('/content/temp_models'): ckptdir='--ckpt-dir /content/temp_models'
try: model if os.path.isfile(model): !python /content/gdrive/$mainpth/sd/stable-diffusion-w$blasphemy/webui.py $share --api --disable-safe-unpickle --enable-insecure-extension-access --no-download-sd-model --no-half-vae --ckpt "$model" --xformers $auth --disable-console-progressbars --upcast-sampling $ckptdir else: !python /content/gdrive/$mainpth/sd/stable-diffusion-w$blasphemy/webui.py $share --api --disable-safe-unpickle --enable-insecure-extension-access --no-download-sd-model --no-half-vae --ckpt-dir "$model" --xformers $auth --disable-console-progressbars --upcast-sampling except: !python /content/gdrive/$mainpth/sd/stable-diffusion-w$blasphemy/webui.py $share --api --disable-safe-unpickle --enable-insecure-extension-access --no-download-sd-model --no-half-vae --xformers $auth --disable-console-progressbars --upcast-sampling $ckptdir
Used to work perfectly, Thanks in advance