Error when turning on restore faces
Describe the bug Whenever I try to activate restore faces I get this error message: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:17<00:00, 1.15it/s] Total progress: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:17<00:00, 1.17it/s] 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:17<00:00, 1.16it/s] Error verifying pickled file from C:\ai\stable-diffusion-webui\models\Codeformer\tmpxx71xr6c:███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:16<00:00, 1.18it/s] Traceback (most recent call last): File "C:\ai\stable-diffusion-webui\modules\safe.py", line 76, in check_pt with zipfile.ZipFile(filename) as z: File "C:\Users\edofe\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1267, in init self._RealGetContents() File "C:\Users\edofe\AppData\Local\Programs\Python\Python310\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:\ai\stable-diffusion-webui\modules\safe.py", line 97, in load check_pt(filename) File "C:\ai\stable-diffusion-webui\modules\safe.py", line 89, in check_pt unpickler.load() _pickle.UnpicklingError: persistent IDs in protocol 0 must be ASCII strings
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. Error completing request Arguments: ('Lady Agnew of Lochnaw, John Singer Sargent AND evil sorceress wearing smooth ornate intricate gold rune embossed blood iron (((armor))), skulls, determined face, heavy makeup, led runes, inky swirling mist, gemstones, ((magic mist background)), ((eyeshadow)), (angry), detailed, intricate (Charlie Bowater), (Daniel Ridgway Knight), ((Zdzisław Beksiński))', 'ugly, fat, obese, chubby, (((deformed))), [blurry], bad anatomy, disfigured, poorly drawn face, mutation, mutated, (extra_limb), (ugly), (poorly drawn hands), messy drawing, large_breasts, penis, nose, eyes, lips, eyelashes, text, red_eyes', 'None', 'None', 20, 0, True, False, 1, 1, 7, -1.0, -1.0, 0, 0, 0, False, 1024, 768, False, False, 0.7, 0, False, False, None, '', 1, '', 0, '', True, False) {} Traceback (most recent call last): File "C:\ai\stable-diffusion-webui\modules\ui.py", line 184, in f res = list(func(*args, **kwargs)) File "C:\ai\stable-diffusion-webui\webui.py", line 64, in f res = func(*args, **kwargs) File "C:\ai\stable-diffusion-webui\modules\txt2img.py", line 43, in txt2img processed = process_images(p) File "C:\ai\stable-diffusion-webui\modules\processing.py", line 437, in process_images x_sample = modules.face_restoration.restore_faces(x_sample) File "C:\ai\stable-diffusion-webui\modules\face_restoration.py", line 19, in restore_faces return face_restorer.restore(np_image) File "C:\ai\stable-diffusion-webui\modules\codeformer_model.py", line 85, in restore self.create_models() File "C:\ai\stable-diffusion-webui\modules\codeformer_model.py", line 64, in create_models checkpoint = torch.load(ckpt_path)['params_ema'] TypeError: 'NoneType' object is not subscriptable
It does it everytime and without fail.
Take a look at this and see if manually downloading fixes your problem.