Right now this is the problem I’ve been banging my head against all day. Every time I try to use GPFGAN and CodeFormer, I get the following errors that I do not understand. I suppose I will discontinue my attempts and wait to see if anyone knows more, because I’m stuck. If I’m still stuck tomorrow, I will probably rip everything out and start over.
I do have some experience at the Linux command line but I’ll be honest – I used to like diving into the guts of the OS, but not in the last decade or so. As a consequence, I find solving problems that manifest in a “Linuxy way” (as opposed to a “Windows way”) to be an order of magnitude more difficult than you all seem to think it is. Please bear that in mind.
I’m running Windows 11. System is an i5-8500 (6 cores like an i7-8700 but no Hyperthreading), 16 GB of RAM, and an RTX 3060 (12 GB VRAM).
I have to admit I absolutely hate dependency chain hell and I’m about to just abandon local Stable Diffusion altogether because I just can’t get it to work right. Something seems to be broken at every turn, and I spend hours searching for similar problems only to not find any or to see them “closed as stale” without resolution (my particular pet peeve!). This is just way too fiddly and fragile, it seems like one continuous game of whack-a-mole.
*** Error completing request
*** Arguments: (‘task(z8a3uvu6wxtboqx)’, 0.0, <PIL.Image.Image image mode=RGBA size=512x512 at 0x2BFB69F0A00>, None, ‘’, ‘’, True, False, 0.0, 4, 0.0, 512, 512, True, ‘None’, ‘None’, 0, True, 1, False, 1, 0, False, 0.5, 0.2, False, 0.9, 0.15, 0.5, False, False, 384, 768, 4096, 409600, ‘Maximize area’, 0.1, False, [‘Horizontal’], False, [‘Deepbooru’]) {}
Traceback (most recent call last):
File “C:\Other Programs\Stable Diffusion\webui\modules\call_queue.py”, line 57, in f
res = list(func(*args, **kwargs))
File “C:\Other Programs\Stable Diffusion\webui\modules\call_queue.py”, line 36, in f
res = func(*args, **kwargs)
File “C:\Other Programs\Stable Diffusion\webui\modules\postprocessing.py”, line 131, in run_postprocessing_webui
return run_postprocessing(*args, **kwargs)
File “C:\Other Programs\Stable Diffusion\webui\modules\postprocessing.py”, line 71, in run_postprocessing
scripts.scripts_postproc.run(initial_pp, args)
File “C:\Other Programs\Stable Diffusion\webui\modules\scripts_postprocessing.py”, line 198, in run
script.process(single_image, **process_args)
File “C:\Other Programs\Stable Diffusion\webui\scripts\postprocessing_gfpgan.py”, line 25, in process
restored_img = gfpgan_model.gfpgan_fix_faces(np.array(pp.image.convert(“RGB”), dtype=np.uint8))
File “C:\Other Programs\Stable Diffusion\webui\modules\gfpgan_model.py”, line 58, in gfpgan_fix_faces
return gfpgan_face_restorer.restore(np_image)
File “C:\Other Programs\Stable Diffusion\webui\modules\gfpgan_model.py”, line 53, in restore
return self.restore_with_helper(np_image, restore_face)
File “C:\Other Programs\Stable Diffusion\webui\modules\face_restoration_utils.py”, line 156, in restore_with_helper
self.send_model_to(self.get_device())
File “C:\Other Programs\Stable Diffusion\webui\modules\face_restoration_utils.py”, line 132, in send_model_to
if self.face_helper:
File “C:\Users\ADMIND\AppData\Local\Programs\Python\Python310\lib\functools.py”, line 981, in get
val = self.func(instance)
File “C:\Other Programs\Stable Diffusion\webui\modules\face_restoration_utils.py”, line 126, in face_helper
return create_face_helper(self.get_device())
File “C:\Other Programs\Stable Diffusion\webui\modules\face_restoration_utils.py”, line 47, in create_face_helper
return FaceRestoreHelper(
File “C:\Other Programs\Stable Diffusion\webui\venv\lib\site-packages\facexlib\utils\face_restoration_helper.py”, line 99, in init
self.face_det = init_detection_model(det_model, half=False, device=self.device, model_rootpath=model_rootpath)
File “C:\Other Programs\Stable Diffusion\webui\venv\lib\site-packages\facexlib\detection_init_.py”, line 18, in init_detection_model
model_path = load_file_from_url(
File “C:\Other Programs\Stable Diffusion\webui\modules\face_restoration_utils.py”, line 174, in facex_load_file_from_url
return det_facex_load_file_from_url(**update_kwargs(kwargs))
File “C:\Other Programs\Stable Diffusion\webui\venv\lib\site-packages\facexlib\utils\misc.py”, line 77, in load_file_from_url
download_url_to_file(url, cached_file, hash_prefix=None, progress=progress)
File “C:\Other Programs\Stable Diffusion\webui\venv\lib\site-packages\torch\hub.py”, line 638, in download_url_to_file
f = open(tmp_dst, ‘w+b’)
PermissionError: [Errno 13] Permission denied: ‘C:\Other Programs\Stable Diffusion\webui\models\GFPGAN\detection_Resnet50_Final.pth.9342ed0cbe7547f78c282d6a51909d50.partial’