HELP PLS #275

Open
opened 2026-01-29 21:46:24 +00:00 by claunia · 1 comment
Owner

Originally created by @Marabells on GitHub (Oct 17, 2022).

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!

Originally created by @Marabells on GitHub (Oct 17, 2022). Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] Commit hash: <none> 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 <module> 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 <module> import modules.extras File "E:\stable-diffusion-webui-master\modules\extras.py", line 12, in <module> import modules.gfpgan_model File "E:\stable-diffusion-webui-master\modules\gfpgan_model.py", line 6, in <module> import gfpgan File "C:\Users\Win10Pro\AppData\Local\Programs\Python\Python39\lib\site-packages\gfpgan\__init__.py", line 2, in <module> from .archs import * File "C:\Users\Win10Pro\AppData\Local\Programs\Python\Python39\lib\site-packages\gfpgan\archs\__init__.py", line 10, in <module> _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 <listcomp> _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 <module> 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!
Author
Owner

@netrunner-exe commented on GitHub (Oct 17, 2022):

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 commented on GitHub (Oct 17, 2022): 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)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#275