camenduru / stable-diffusion-webui-colab

stable diffusion webui colab
The Unlicense
15.58k stars 2.61k forks source link

[Bug]: vladmandic_automatic_webui_colab deforum-for-automatic1111-webui #396

Closed camenduru closed 1 year ago

camenduru commented 1 year ago

What happened?

usage:  [-h] [--config CONFIG] [--medvram] [--lowvram] [--ckpt CKPT] [--vae VAE] [--data-dir DATA_DIR] [--models-dir MODELS_DIR] [--allow-code] [--share] [--insecure] [--use-cpu USE_CPU [USE_CPU ...]]
        [--listen] [--port PORT] [--freeze] [--auth AUTH] [--authfile AUTHFILE] [--autolaunch] [--api-auth API_AUTH] [--api-log] [--device-id DEVICE_ID] [--cors-origins CORS_ORIGINS]
        [--cors-regex CORS_REGEX] [--tls-keyfile TLS_KEYFILE] [--tls-certfile TLS_CERTFILE] [--server-name SERVER_NAME] [--no-hashing] [--no-download] [--profile] [--disable-queue] [--debug] [--reset]
        [--upgrade] [--use-ipex] [--no-directml] [--skip-update] [--skip-requirements] [--skip-extensions] [--skip-git] [--experimental] [--test]
: error: unrecognized arguments: --multi

Colab cell output

22:05:04-726527 INFO     Python 3.10.11 on Linux                                
22:05:04-751476 INFO     Version: 3c7273e1 Sun Apr 30 13:49:15 2023 -0400       
22:05:04-973447 INFO     Setting environment tuning                             
22:05:04-976118 INFO     nVidia toolkit detected                                
22:05:07-393199 INFO     Torch 1.13.1+cu116                                     
22:05:07-469391 INFO     Torch backend: nVidia CUDA 11.6 cuDNN 8302             
22:05:07-485020 INFO     Torch detected GPU: Tesla T4 VRAM 15102 Arch (7, 5)    
                         Cores 40                                               
22:05:07-486703 INFO     Verifying requirements                                 
22:05:07-487802 INFO     Installing package: addict                             
22:05:10-988866 INFO     Installing package: aenum                              
22:05:14-781557 INFO     Installing package: aiohttp                            
22:05:22-441074 INFO     Installing package: basicsr                            
22:05:30-301378 INFO     Installing package: bitsandbytes                       
22:05:38-590887 INFO     Installing package: blendmodes                         
22:05:43-969006 INFO     Installing package: clean-fid                          
22:05:49-323349 INFO     Installing package: easydev                            
22:05:55-961441 INFO     Installing package: extcolors                          
22:06:00-194327 INFO     Installing package: facexlib                           
22:06:06-274442 INFO     Installing package: filetype                           
22:06:09-883738 INFO     Installing package: font-roboto                        
22:06:15-290363 INFO     Installing package: fonts                              
22:06:20-169991 INFO     Installing package: gfpgan                             
22:06:23-965727 INFO     Installing package: GitPython                          
22:06:27-962906 INFO     Installing package: httpcore                           
22:06:33-790975 INFO     Installing package: inflection                         
22:06:37-498907 INFO     Installing package: jsonmerge                          
22:06:41-997237 INFO     Installing package: kornia                             
22:06:47-373890 INFO     Installing package: lark                               
22:06:51-925407 INFO     Installing package: lmdb                               
22:06:55-551898 INFO     Installing package: lpips                              
22:06:59-203310 INFO     Installing package: omegaconf                          
22:07:06-302791 INFO     Installing package: open-clip-torch                    
22:07:11-540623 INFO     Installing package: piexif                             
22:07:15-231402 INFO     Installing package: realesrgan                         
22:07:21-335374 INFO     Installing package: resize-right                       
22:07:25-066201 INFO     Installing package: safetensors                        
22:07:29-051252 INFO     Installing package: tb_nightly                         
22:07:35-517177 INFO     Installing package: torchdiffeq                        
22:07:39-755417 INFO     Installing package: torchsde                           
22:07:43-839082 INFO     Installing package: voluptuous                         
22:07:47-859999 INFO     Installing package: yapf                               
22:07:53-347575 INFO     Installing package: accelerate==0.18.0                 
22:07:57-317897 INFO     Installing package: diffusers==0.15.0                  
22:08:01-684131 INFO     Installing package: einops==0.4.1                      
22:08:07-181265 INFO     Installing package: gradio==3.23.0                     
22:08:17-435177 INFO     Installing package: pytorch_lightning==1.9.4           
22:08:24-929092 INFO     Installing package: transformers==4.26.1               
22:08:34-847178 INFO     Installing package: timm==0.6.13                       
22:08:41-724220 INFO     Installing package: tomesd==0.1.2                      
22:08:49-373808 INFO     Running setup                                          
22:08:49-375551 INFO     Installing packages                                    
22:08:49-376908 INFO     Installing package:                                    
                         git+https://github.com/openai/CLIP.git@d50d76daa670286d
                         d6cacf3bcd80b5e4823fc8e1                               
22:08:57-187892 INFO     Installing repositories                                
22:09:13-417825 INFO     Installing submodules                                  
22:09:47-912217 INFO     Updating submodules                                    
22:09:52-673180 INFO     Extensions enabled: ['clip-interrogator-ext',          
                         'sd-dynamic-thresholding', 'sd-webui-model-converter', 
                         'LDSR', 'stable-diffusion-webui-rembg',                
                         'multidiffusion-upscaler-for-automatic1111',           
                         'sd-extension-steps-animation',                        
                         'sd-extension-aesthetic-scorer', 'SwinIR', 'ScuNET',   
                         'a1111-sd-webui-lycoris', 'seed_travel', 'Lora',       
                         'sd-webui-controlnet',                                 
                         'stable-diffusion-webui-images-browser',               
                         'sd-extension-system-info', 'prompt-bracket-checker']  
22:11:04-211572 INFO     Extensions enabled: ['a1111-sd-webui-locon',           
                         'stable-diffusion-webui-rembg',                        
                         'stable-diffusion-webui-two-shot',                     
                         'sd-webui-additional-networks', 'sd-civitai-browser',  
                         'stable-diffusion-webui-catppuccin',                   
                         'stable-diffusion-webui-images-browser',               
                         'stable-diffusion-webui-huggingface',                  
                         'deforum-for-automatic1111-webui', 'batchlinks-webui', 
                         'sd-webui-tunnels', 'sd_webui_stealth_pnginfo']        
22:11:14-157636 ERROR    Error running extension installer:                     
                         /content/stable-diffusion-webui/extensions/sd-civitai-b
                         rowser/install.py                                      
22:11:37-547141 INFO     Updating Wiki                                          
22:11:38-042136 WARNING  Setup complete with errors (1)                         
22:11:38-044121 WARNING  See log file for more details: setup.log               
22:11:38-045861 INFO     Running extension preloading                           
22:11:38-054427 INFO     Server arguments: ['--listen', '--theme', 'dark']      
2023-04-30 22:11:42.696303: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Creating styles database: styles.csv
Unloading xFormers
Creating folder: /content/stable-diffusion-webui/models/VAE
Creating folder: /content/stable-diffusion-webui/models/embeddings
Creating folder: outputs/text
Creating folder: outputs/image
Creating folder: outputs/extras
Creating folder: outputs/grids
Creating folder: outputs/save
Checkpoint not found: None
Available models: /content/stable-diffusion-webui/models/Stable-diffusion 1
ControlNet v1.1.119
ControlNet v1.1.119
Additional Network extension not installed, Only hijack built-in lora
LoCon Extension hijack built-in lora successfully
Module load: 
/content/stable-diffusion-webui/extensions/batchlinks-webui/scripts/a_gradiochec
k.py: AttributeError
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /content/stable-diffusion-webui/modules/script_loading.py:10 in load_module  │
│                                                                              │
│    9 │   try:                                                                │
│ ❱ 10 │   │   module_spec.loader.exec_module(module)                          │
│   11 │   except Exception as e:                                              │
│ in exec_module:883                                                           │
│ in _call_with_frames_removed:241                                             │
│                                                                              │
│ /content/stable-diffusion-webui/extensions/batchlinks-webui/scripts/a_gradio │
│ check.py:11 in <module>                                                      │
│                                                                              │
│   10                                                                         │
│ ❱ 11 if cmd_opts.gradio_queue:                                               │
│   12 │   #os.system(f"sed -i 's/def run(command, choosedowner):/def run(comm │
╰──────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'Namespace' object has no attribute 'gradio_queue'
Module load: 
/content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/scrip
ts/deforum.py: ModuleNotFoundError
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /content/stable-diffusion-webui/modules/script_loading.py:10 in load_module  │
│                                                                              │
│    9 │   try:                                                                │
│ ❱ 10 │   │   module_spec.loader.exec_module(module)                          │
│   11 │   except Exception as e:                                              │
│ in exec_module:883                                                           │
│                                                                              │
│                           ... 6 frames hidden ...                            │
│                                                                              │
│ /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/s │
│ cripts/deforum_helpers/src/midas/blocks.py:4 in <module>                     │
│                                                                              │
│     3                                                                        │
│ ❱   4 from .backbones.beit import (                                          │
│     5 │   _make_pretrained_beitl16_512,                                      │
│                                                                              │
│ /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/s │
│ cripts/deforum_helpers/src/midas/backbones/beit.py:9 in <module>             │
│                                                                              │
│     8 from .utils import forward_adapted_unflatten, make_backbone_default    │
│ ❱   9 from timm.models.beit import gen_relative_position_index               │
│    10 from torch.utils.checkpoint import checkpoint                          │
╰──────────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'timm.models.beit'
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
Loading theme: black-orange
Image Browser: Creating database
Image Browser: Database created
Batchlinks webui extension: (Optional) Use --gradio-queue args to enable logging & cancel button on this extension
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.
Initializing middleware
Checkpoint model.ckpt not found; loading fallback v1-5-pruned-emaonly.ckpt
Loading weights: /content/stable-diffusion-webui/models/Stable-diffusion/v1-5-… 
Creating model from config: 
/content/stable-diffusion-webui/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Downloading (…)olve/main/vocab.json: 100% 961k/961k [00:00<00:00, 14.9MB/s]
Downloading (…)olve/main/merges.txt: 100% 525k/525k [00:00<00:00, 10.6MB/s]
Downloading (…)cial_tokens_map.json: 100% 389/389 [00:00<00:00, 2.95MB/s]
Downloading (…)okenizer_config.json: 100% 905/905 [00:00<00:00, 8.09MB/s]
Downloading (…)lve/main/config.json: 100% 4.52k/4.52k [00:00<00:00, 19.7MB/s]
Calculating sha256: /content/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.ckptcc6cb27103417325ff94f52b7a5d2dde45a7515b25c255d8e396c90014281516
Embeddings loaded:  (0)
Model loaded in 54.3s (load=16.8s create=1.8s hash=22.4s apply=1.9s vae=10.3s 
move=1.0s embeddings=0.1s)
Startup time: 101.7s (torch=8.9s gradio=4.0s libraries=2.1s codeformer=0.3s 
scripts=29.0s ui=1.6s start=0.7s scripts app_started_callback=0.1s 
checkpoint=54.9s)

Which colab and model(s) were you using when the error occurred?

https://colab.research.google.com/github/camenduru/stable-diffusion-webui-colab/blob/main/special/lite/vladmandic_automatic_webui_colab.ipynb

Which Public WebUI Colab URL were you using when the error occurred?

remote.moe

If you used HiRes mode when the error occurred, please provide the Hires info

No response

Anonimouche commented 1 year ago

So, Solved both issues i think (kinda), for batchlinks: The launcher this colab is using doesn't recognise gradio-queue at all so i just deleted the gradio check script from the extension files and it works perfectly minus the ability to use the in web logs. Located in stable-diffusion-webui/extensions/batchlinks-webui/a_gradiocheck.py for deforum: I installed it manually from the webUI extension installer and it doesn't give issues so i guess it's an issue on your build of it... I'm not too sure how it works so can't help more than that with it.

etherealxx commented 1 year ago

hello👋 yeah i did not expect this to be used on vladmantic before. But does vlad's always run on queue on or off? i'll make the launcher to be compatible with it.

Anonimouche commented 1 year ago

hello👋 yeah i did not expect this to be used on vladmantic before. But does vlad's always run on queue on or off? i'll make the launcher to be compatible with it.

Just ignore me if it's nonsense but there's that so i guess it's on? image

etherealxx commented 1 year ago

@Anonimouche thanks for the feedback. pushed a new update. the extension should work properly now. image

Anonimouche commented 1 year ago

@Anonimouche thanks for the feedback. pushed a new update. the extension should work properly now. image

Tried it, works perfectly now :)