Repository: stable-diffusion-webui
Issue: [Bug]: Error verifying pickled file from C:\stable-diffusion-portable-main\models\Codeformer\tmpn0ru91as::49<00:00,  2.61s/it]
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?

I generated a picture, but when the generation reaches 100%, the picture disappears. img2img works.
### Steps to reproduce the problem

1. Go to txt2img
2. Write prompt, parameters, settings, etc..
3. Press generate


### What should have happened?

The picture should be generated

### Commit where the problem happens

https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/ea9bd9fc7409109adcd61b897abc2c8881161256

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
--xformers --autolaunch
```


### List of extensions

no

### Console logs

```Shell
venv "C:\stable-diffusion-portable-main\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: ea9bd9fc7409109adcd61b897abc2c8881161256
Installing requirements for Web UI
Launching Web UI with arguments:
No module 'xformers'. Proceeding without it.
Loading weights [d8691b4d16] from C:\stable-diffusion-portable-main\models\Stable-diffusion\deliberate_v11.safetensors
Creating model from config: C:\stable-diffusion-portable-main\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(0):
Model loaded in 3.8s (create model: 0.6s, apply weights to model: 0.6s, apply half(): 0.8s, move model to device: 0.8s, load textual inversion embeddings: 1.0s).
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [01:06<00:00,  3.32s/it]
Error verifying pickled file from C:\stable-diffusion-portable-main\models\Codeformer\tmpn0ru91as::01<00:00,  3.21s/it]
Traceback (most recent call last):
  File "C:\stable-diffusion-portable-main\modules\safe.py", line 81, in check_pt
    with zipfile.ZipFile(filename) as z:
  File "C:\stable-diffusion-portable-main\python\lib\zipfile.py", line 1267, in __init__
    self._RealGetContents()
  File "C:\stable-diffusion-portable-main\python\lib\zipfile.py", line 1334, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\stable-diffusion-portable-main\modules\safe.py", line 135, in load_with_extra
    check_pt(filename, extra_handler)
  File "C:\stable-diffusion-portable-main\modules\safe.py", line 102, in check_pt
    unpickler.load()
_pickle.UnpicklingError: persistent IDs in protocol 0 must be ASCII strings

-----> !!!! The file is most likely corrupted !!!! <-----
You can skip this check with --disable-safe-unpickle commandline argument, but that is not going to help you.


Error completing request
Arguments: ('task(pwcowel5wwbvkk3)', 'funny rabbit', 'deformed, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, disgusting, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blurry, ((((mutated hands and fingers)))), watermark, watermarked, oversaturated, censored, distorted hands, amputation, missing hands, obese, doubled face, double hands', [], 20, 0, True, False, 1, 1, 8, -1.0, -1.0, 0, 0, 0, False, 512, 512, False, 0.7, 2, 'Latent', 0, 0, 0, [], 0, False, False, 'positive', 'comma', 0, False, False, '', 1, '', 0, '', 0, '', True, False, False, False, 0) {}
Traceback (most recent call last):
  File "C:\stable-diffusion-portable-main\modules\call_queue.py", line 56, in f
    res = list(func(*args, **kwargs))
  File "C:\stable-diffusion-portable-main\modules\call_queue.py", line 37, in f
    res = func(*args, **kwargs)
  File "C:\stable-diffusion-portable-main\modules\txt2img.py", line 56, in txt2img
    processed = process_images(p)
  File "C:\stable-diffusion-portable-main\modules\processing.py", line 486, in process_images
    res = process_images_inner(p)
  File "C:\stable-diffusion-portable-main\modules\processing.py", line 657, in process_images_inner
    x_sample = modules.face_restoration.restore_faces(x_sample)
  File "C:\stable-diffusion-portable-main\modules\face_restoration.py", line 19, in restore_faces
    return face_restorer.restore(np_image)
  File "C:\stable-diffusion-portable-main\modules\codeformer_model.py", line 88, in restore
    self.create_models()
  File "C:\stable-diffusion-portable-main\modules\codeformer_model.py", line 65, in create_models
    checkpoint = torch.load(ckpt_path)['params_ema']
TypeError: 'NoneType' object is not subscriptable
```


### Additional information

_No response_