Repository: stable-diffusion-webui
Issue: [Bug]: server arguments can't deploy 
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

[lts@unknownc03fd537a872 automatic]$ ./webui.sh --no-half

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on lts user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
05:44:13-927398 INFO     Python 3.10.10 on Linux                                                                           
05:44:14-075840 INFO     Version: 4cb46d54 Sat Apr 22 13:33:11 2023 -0400                                                  
05:44:14-636555 INFO     Updating Wiki                                                                                     
05:44:15-875756 INFO     Using CPU-only Torch                                                                              
05:44:20-888727 INFO     Torch 2.0.0+cu117                                                                                 
05:44:20-913958 WARNING  Torch repoorts CUDA not available                                                                 
05:44:20-916456 INFO     Verifying requirements                                                                            
05:44:21-019253 INFO     No changes detected: Quick launch active                                                          
05:44:21-021265 INFO     Setting environment tuning                                                                        
05:44:21-023480 INFO     Running extension preloading                                                                      
05:44:21-025199 INFO     Server arguments: ['--no-half']                                                                   
No module 'xformers'. Proceeding without it.
usage: launch.py [-h] [--medvram] [--lowvram] [--lowram] [--ckpt CKPT] [--vae VAE] [--data-dir DATA_DIR] [--allow-code] [--share] [--enable-insecure] [--use-cpu USE_CPU [USE_CPU ...]] [--listen]
                 [--port PORT] [--hide-ui-dir-config] [--freeze-settings] [--gradio-auth GRADIO_AUTH] [--gradio-auth-path GRADIO_AUTH_PATH] [--autolaunch] [--disable-console-progressbars]
                 [--disable-safe-unpickle] [--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-sd-model] [--profile] [--disable-queue] [--token-merging] [--lyco-dir LYCO_DIR]
                 [--controlnet-dir CONTROLNET_DIR] [--controlnet-annotator-models-path CONTROLNET_ANNOTATOR_MODELS_PATH] [--no-half-controlnet] [--debug] [--reset] [--upgrade] [--noupdate]
                 [--skip-requirements] [--skip-extensions] [--skip-git] [--experimental]
launch.py: error: argument --no-half: expected one argument
[lts@unknownc03fd537a872 automatic]$ ./webui.sh

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on lts user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
05:44:54-529557 INFO     Python 3.10.10 on Linux                                                                           
05:44:54-543390 INFO     Version: 4cb46d54 Sat Apr 22 13:33:11 2023 -0400                                                  
05:44:54-815805 INFO     Updating Wiki                                                                                     
05:44:55-529803 INFO     Using CPU-only Torch                                                                              
05:44:57-064154 INFO     Torch 2.0.0+cu117                                                                                 
05:44:57-065839 WARNING  Torch repoorts CUDA not available                                                                 
05:44:57-066958 INFO     Verifying requirements                                                                            
05:44:57-104901 INFO     No changes detected: Quick launch active                                                          
05:44:57-106196 INFO     Setting environment tuning                                                                        
05:44:57-107799 INFO     Running extension preloading                                                                      
05:44:57-109006 INFO     Server arguments: []                                                                              
No module 'xformers'. Proceeding without it.
Available models: /home/lts/Downloads/automatic/models/Stable-diffusion 1
Loading theme: black-orange
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Initializing middleware
Loading weights: /home/lts/Downloads/automatic/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors ━━━━━━ 0.0/4… -:--:…
                                                                                                              GB           
Creating model from config: /home/lts/Downloads/automatic/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Traceback (most recent call last):
  File "/home/lts/Downloads/automatic/venv/lib/python3.10/site-packages/gradio/routes.py", line 394, in run_predict
    output = await app.get_blocks().process_api(
  File "/home/lts/Downloads/automatic/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1075, in process_api
    result = await self.call_function(
  File "/home/lts/Downloads/automatic/venv/lib/python3.10/site-packages/gradio/blocks.py", line 884, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "/home/lts/Downloads/automatic/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/home/lts/Downloads/automatic/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "/home/lts/Downloads/automatic/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "/home/lts/Downloads/automatic/modules/call_queue.py", line 16, in f
    res = func(*args, **kwargs)
  File "/home/lts/Downloads/automatic/modules/ui.py", line 235, in update_token_counter
    token_count, max_length = max([model_hijack.get_prompt_lengths(prompt) for prompt in prompts], key=lambda args: args[0])
  File "/home/lts/Downloads/automatic/modules/ui.py", line 235, in <listcomp>
    token_count, max_length = max([model_hijack.get_prompt_lengths(prompt) for prompt in prompts], key=lambda args: args[0])
  File "/home/lts/Downloads/automatic/modules/sd_hijack.py", line 235, in get_prompt_lengths
    _, token_count = self.clip.process_texts([text])
AttributeError: 'NoneType' object has no attribute 'process_texts'
Model not loaded
Embeddings loaded:  (0)
Running script process: 
/home/lts/Downloads/automatic/extensions-builtin/multidiffusion-upscaler-for-automatic1111/scripts/vae_optimize.py: 
AttributeError
╭─────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────╮
│ /home/lts/Downloads/automatic/modules/scripts.py:422 in process                                                         │
│                                                                                                                         │
│   421 │   │   │   │   script_args = p.script_args[script.args_from:script.args_to]                                      │
│ ❱ 422 │   │   │   │   script.process(p, *script_args)                                                                   │
│   423 │   │   │   except Exception as e:                                                                                │
│                                                                                                                         │
│ /home/lts/Downloads/automatic/extensions-builtin/multidiffusion-upscaler-for-automatic1111/scripts/vae_optimize.py:723  │
│ in process                                                                                                              │
│                                                                                                                         │
│   722 │   │                                                                                                             │
│ ❱ 723 │   │   vae = p.sd_model.first_stage_model                                                                        │
│   724 │   │   # for shorthand                                                                                           │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'NoneType' object has no attribute 'first_stage_model'
Running script process: /home/lts/Downloads/automatic/extensions-builtin/sd-webui-controlnet/scripts/controlnet.py: 
AttributeError
╭─────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────╮
│ /home/lts/Downloads/automatic/modules/scripts.py:422 in process                                                         │
│                                                                                                                         │
│   421 │   │   │   │   script_args = p.script_args[script.args_from:script.args_to]                                      │
│ ❱ 422 │   │   │   │   script.process(p, *script_args)                                                                   │
│   423 │   │   │   except Exception as e:                                                                                │
│                                                                                                                         │
│ /home/lts/Downloads/automatic/extensions-builtin/sd-webui-controlnet/scripts/controlnet.py:767 in process               │
│                                                                                                                         │
│    766 │   │   """                                                                                                      │
│ ❱  767 │   │   unet = p.sd_model.model.diffusion_model                                                                  │
│    768 │   │   if self.latest_network is not None:                                                                      │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'NoneType' object has no attribute 'model'
gradio call: AttributeError
╭─────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────╮
│ /home/lts/Downloads/automatic/modules/call_queue.py:58 in f                                                             │
│                                                                                                                         │
│    57 │   │   │   │   pr.enable()                                                                                       │
│ ❱  58 │   │   │   res = list(func(*args, **kwargs))                                                                     │
│    59 │   │   │   if shared.cmd_opts.profile:                                                                           │
│                                                                                                                         │
│ /home/lts/Downloads/automatic/modules/call_queue.py:38 in f                                                             │
│                                                                                                                         │
│    37 │   │   │   try:                                                                                                  │
│ ❱  38 │   │   │   │   res = func(*args, **kwargs)                                                                       │
│    39 │   │   │   finally:                                                                                              │
│                                                                                                                         │
│                                                 ... 1 frames hidden ...                                                 │
│                                                                                                                         │
│ /home/lts/Downloads/automatic/modules/processing.py:529 in process_images                                               │
│                                                                                                                         │
│    528 │   │                                                                                                            │
│ ❱  529 │   │   res = process_images_inner(p)                                                                            │
│    530                                                                                                                  │
│                                                                                                                         │
│ /home/lts/Downloads/automatic/modules/processing.py:623 in process_images_inner                                         │
│                                                                                                                         │
│    622 │                                                                                                                │
│ ❱  623 │   with torch.no_grad(), p.sd_model.ema_scope():                                                                │
│    624 │   │   with devices.autocast():                                                                                 │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'NoneType' object has no attribute 'ema_scope'
Running script process: 
/home/lts/Downloads/automatic/extensions-builtin/multidiffusion-upscaler-for-automatic1111/scripts/vae_optimize.py: 
AttributeError
╭─────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────╮
│ /home/lts/Downloads/automatic/modules/scripts.py:422 in process                                                         │
│                                                                                                                         │
│   421 │   │   │   │   script_args = p.script_args[script.args_from:script.args_to]                                      │
│ ❱ 422 │   │   │   │   script.process(p, *script_args)                                                                   │
│   423 │   │   │   except Exception as e:                                                                                │
│                                                                                                                         │
│ /home/lts/Downloads/automatic/extensions-builtin/multidiffusion-upscaler-for-automatic1111/scripts/vae_optimize.py:723  │
│ in process                                                                                                              │
│                                                                                                                         │
│   722 │   │                                                                                                             │
│ ❱ 723 │   │   vae = p.sd_model.first_stage_model                                                                        │
│   724 │   │   # for shorthand                                                                                           │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'NoneType' object has no attribute 'first_stage_model'
Running script process: /home/lts/Downloads/automatic/extensions-builtin/sd-webui-controlnet/scripts/controlnet.py: 
AttributeError
╭─────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────╮
│ /home/lts/Downloads/automatic/modules/scripts.py:422 in process                                                         │
│                                                                                                                         │
│   421 │   │   │   │   script_args = p.script_args[script.args_from:script.args_to]                                      │
│ ❱ 422 │   │   │   │   script.process(p, *script_args)                                                                   │
│   423 │   │   │   except Exception as e:                                                                                │
│                                                                                                                         │
│ /home/lts/Downloads/automatic/extensions-builtin/sd-webui-controlnet/scripts/controlnet.py:767 in process               │
│                                                                                                                         │
│    766 │   │   """                                                                                                      │
│ ❱  767 │   │   unet = p.sd_model.model.diffusion_model                                                                  │
│    768 │   │   if self.latest_network is not None:                                                                      │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'NoneType' object has no attribute 'model'
gradio call: AttributeError
╭─────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────╮
│ /home/lts/Downloads/automatic/modules/call_queue.py:58 in f                                                             │
│                                                                                                                         │
│    57 │   │   │   │   pr.enable()                                                                                       │
│ ❱  58 │   │   │   res = list(func(*args, **kwargs))                                                                     │
│    59 │   │   │   if shared.cmd_opts.profile:                                                                           │
│                                                                                                                         │
│ /home/lts/Downloads/automatic/modules/call_queue.py:38 in f                                                             │
│                                                                                                                         │
│    37 │   │   │   try:                                                                                                  │
│ ❱  38 │   │   │   │   res = func(*args, **kwargs)                                                                       │
│    39 │   │   │   finally:                                                                                              │
│                                                                                                                         │
│                                                 ... 1 frames hidden ...                                                 │
│                                                                                                                         │
│ /home/lts/Downloads/automatic/modules/processing.py:529 in process_images                                               │
│                                                                                                                         │
│    528 │   │                                                                                                            │
│ ❱  529 │   │   res = process_images_inner(p)                                                                            │
│    530                                                                                                                  │
│                                                                                                                         │
│ /home/lts/Downloads/automatic/modules/processing.py:623 in process_images_inner                                         │
│                                                                                                                         │
│    622 │                                                                                                                │
│ ❱  623 │   with torch.no_grad(), p.sd_model.ema_scope():                                                                │
│    624 │   │   with devices.autocast():                                                                                 │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'NoneType' object has no attribute 'ema_scope'


### Steps to reproduce the problem

Running on Arch Linux

### What should have happened?

Command Should Allow 

### Commit where the problem happens

script error

### What platforms do you use to access the UI ?

Linux

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
.
```


### List of extensions

.

### Console logs

```Shell
.
```


### Additional information

_No response_