GFPGAN icon indicating copy to clipboard operation
GFPGAN copied to clipboard

HELP PLS

Open Marabells opened this issue 3 years ago • 1 comments

Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] Commit hash: Installing requirements for Web UI Launching Web UI with arguments: Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled Traceback (most recent call last): File "E:\stable-diffusion-webui-master\launch.py", line 181, in start_webui() File "E:\stable-diffusion-webui-master\launch.py", line 175, in start_webui import webui File "E:\stable-diffusion-webui-master\webui.py", line 14, in import modules.extras File "E:\stable-diffusion-webui-master\modules\extras.py", line 12, in import modules.gfpgan_model File "E:\stable-diffusion-webui-master\modules\gfpgan_model.py", line 6, in import gfpgan File "C:\Users\Win10Pro\AppData\Local\Programs\Python\Python39\lib\site-packages\gfpgan_init_.py", line 2, in from .archs import * File "C:\Users\Win10Pro\AppData\Local\Programs\Python\Python39\lib\site-packages\gfpgan\archs_init_.py", line 10, in arch_modules = [importlib.import_module(f'gfpgan.archs.{file_name}') for file_name in arch_filenames] File "C:\Users\Win10Pro\AppData\Local\Programs\Python\Python39\lib\site-packages\gfpgan\archs_init.py", line 10, in arch_modules = [importlib.import_module(f'gfpgan.archs.{file_name}') for file_name in arch_filenames] File "C:\Users\Win10Pro\AppData\Local\Programs\Python\Python39\lib\importlib_init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "C:\Users\Win10Pro\AppData\Local\Programs\Python\Python39\lib\site-packages\gfpgan\archs\arcface_arch.py", line 172, in class ResNetArcFace(nn.Module): File "E:\stable-diffusion-webui-master\repositories\CodeFormer\basicsr\utils\registry.py", line 53, in deco self._do_register(name, func_or_class) File "E:\stable-diffusion-webui-master\repositories\CodeFormer\basicsr\utils\registry.py", line 39, in _do_register assert (name not in self._obj_map), (f"An object named '{name}' was already registered " AssertionError: An object named 'ResNetArcFace' was already registered in 'arch' registry!

Marabells avatar Oct 17 '22 20:10 Marabells

The answer to your question is clearly visible at the end of the log you posted. It's because you have CodeFormer installed in your environment, or to be more specific, because of the custom version of basicsr that comes with CodeFormer. Create a new environment and install gfpgan with all its dependencies there. Or reinstall basicsr with the one from pip (but then CodeFormer will not work)

netrunner-exe avatar Oct 17 '22 22:10 netrunner-exe