Repository: stable-diffusion-webui
Issue: [Bug]: It suddenly pops up and it doesn't work
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?

venv "D:\test\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep  5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Commit hash: 72cd27a13587c9579942577e9e3880778be195f6
Installing requirements
Launching Web UI with arguments: --lowvram
No module 'xformers'. Proceeding without it.
==============================================================================
You are running torch 1.13.1+cu117.
The program is tested to work with torch 2.0.0.
To reinstall the desired version, run with commandline flag --reinstall-torch.
Beware that this will cause a lot of large files to be downloaded, as well as
there are reports of issues with training tab on the latest version.

Use --skip-version-check commandline argument to disable this check.
==============================================================================
Loading weights [c8e027a40f] from D:\test\stable-diffusion-webui\models\Stable-diffusion\abc.safetensors
Creating model from config: D:\test\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading VAE weights specified in settings: D:\test\stable-diffusion-webui\models\VAE\vae-ft-mse-840000-ema-pruned.ckpt
Error verifying pickled file from D:\test\stable-diffusion-webui\models\VAE\vae-ft-mse-840000-ema-pruned.ckpt:
Traceback (most recent call last):
  File "D:\test\stable-diffusion-webui\modules\safe.py", line 132, in load_with_extra
    check_pt(filename, extra_handler)
  File "D:\test\stable-diffusion-webui\modules\safe.py", line 90, in check_pt
    unpickler.load()
  File "D:\test\stable-diffusion-webui\modules\safe.py", line 27, in persistent_load
    return TypedStorage(_internal=True)
TypeError: TypedStorage.__new__() got an unexpected keyword argument '_internal'


The file may be malicious, so the program is not going to read it.
You can skip this check with --disable-safe-unpickle commandline argument.


loading stable diffusion model: AttributeError
Traceback (most recent call last):
  File "D:\test\stable-diffusion-webui\webui.py", line 195, in initialize
    modules.sd_models.load_model()
  File "D:\test\stable-diffusion-webui\modules\sd_models.py", line 453, in load_model
    load_model_weights(sd_model, checkpoint_info, state_dict, timer)
  File "D:\test\stable-diffusion-webui\modules\sd_models.py", line 338, in load_model_weights
    sd_vae.load_vae(model, vae_file, vae_source)
  File "D:\test\stable-diffusion-webui\modules\sd_vae.py", line 145, in load_vae
    vae_dict_1 = load_vae_dict(vae_file, map_location=shared.weight_load_location)
  File "D:\test\stable-diffusion-webui\modules\sd_vae.py", line 123, in load_vae_dict
    vae_ckpt = sd_models.read_state_dict(filename, map_location=map_location)
  File "D:\test\stable-diffusion-webui\modules\sd_models.py", line 257, in read_state_dict
    sd = get_state_dict_from_checkpoint(pl_sd)
  File "D:\test\stable-diffusion-webui\modules\sd_models.py", line 206, in get_state_dict_from_checkpoint
    pl_sd = pl_sd.pop("state_dict", pl_sd)
AttributeError: 'NoneType' object has no attribute 'pop'


Stable diffusion model failed to load, exiting

### Steps to reproduce the problem

1. WebUI start
2. then this happens
3. ...


### What should have happened?

it should have given me an ip adress for me to access the ui

### Commit where the problem happens

after i start the webui-user

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

Windows

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

Microsoft Edge

### Command Line Arguments

```Shell
venv "D:\test\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep  5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Commit hash: 72cd27a13587c9579942577e9e3880778be195f6
Installing requirements
Launching Web UI with arguments: --lowvram
No module 'xformers'. Proceeding without it.
==============================================================================
You are running torch 1.13.1+cu117.
The program is tested to work with torch 2.0.0.
To reinstall the desired version, run with commandline flag --reinstall-torch.
Beware that this will cause a lot of large files to be downloaded, as well as
there are reports of issues with training tab on the latest version.

Use --skip-version-check commandline argument to disable this check.
==============================================================================
Loading weights [c8e027a40f] from D:\test\stable-diffusion-webui\models\Stable-diffusion\abc.safetensors
Creating model from config: D:\test\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading VAE weights specified in settings: D:\test\stable-diffusion-webui\models\VAE\vae-ft-mse-840000-ema-pruned.ckpt
Error verifying pickled file from D:\test\stable-diffusion-webui\models\VAE\vae-ft-mse-840000-ema-pruned.ckpt:
Traceback (most recent call last):
  File "D:\test\stable-diffusion-webui\modules\safe.py", line 132, in load_with_extra
    check_pt(filename, extra_handler)
  File "D:\test\stable-diffusion-webui\modules\safe.py", line 90, in check_pt
    unpickler.load()
  File "D:\test\stable-diffusion-webui\modules\safe.py", line 27, in persistent_load
    return TypedStorage(_internal=True)
TypeError: TypedStorage.__new__() got an unexpected keyword argument '_internal'


The file may be malicious, so the program is not going to read it.
You can skip this check with --disable-safe-unpickle commandline argument.


loading stable diffusion model: AttributeError
Traceback (most recent call last):
  File "D:\test\stable-diffusion-webui\webui.py", line 195, in initialize
    modules.sd_models.load_model()
  File "D:\test\stable-diffusion-webui\modules\sd_models.py", line 453, in load_model
    load_model_weights(sd_model, checkpoint_info, state_dict, timer)
  File "D:\test\stable-diffusion-webui\modules\sd_models.py", line 338, in load_model_weights
    sd_vae.load_vae(model, vae_file, vae_source)
  File "D:\test\stable-diffusion-webui\modules\sd_vae.py", line 145, in load_vae
    vae_dict_1 = load_vae_dict(vae_file, map_location=shared.weight_load_location)
  File "D:\test\stable-diffusion-webui\modules\sd_vae.py", line 123, in load_vae_dict
    vae_ckpt = sd_models.read_state_dict(filename, map_location=map_location)
  File "D:\test\stable-diffusion-webui\modules\sd_models.py", line 257, in read_state_dict
    sd = get_state_dict_from_checkpoint(pl_sd)
  File "D:\test\stable-diffusion-webui\modules\sd_models.py", line 206, in get_state_dict_from_checkpoint
    pl_sd = pl_sd.pop("state_dict", pl_sd)
AttributeError: 'NoneType' object has no attribute 'pop'


Stable diffusion model failed to load, exiting
```


### List of extensions

no

### Console logs

```Shell
no
```


### Additional information

_No response_