Repository: stable-diffusion-webui
Issue: [Bug]: AUTOMATİC111 SETUP ERROR: AssertionError: An object named 'ResNetArcFace' was already registered in 'arch' registry!
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [X] The issue has been reported before but has not been fixed yet

### What happened?

When I run webui user.bat and try to do a clean installation, I get various problems such as AssertionError,  ModuleNotFoundError: No module named 'basicsr.version', Style database not found: C:\SD\stable-diffusion-webui\styles.csv. Please help me with this I'm stuck.

### Steps to reproduce the problem

Clean Installation.

### What should have happened?

Web UI should have been initialized.

### What browsers do you use to access the UI ?

Google Chrome

### Sysinfo

No info.

### Console logs

```Shell
...
Resolving deltas: 100% (152/152), done.
Installing requirements for CodeFormer
Installing requirements
Launching Web UI with arguments:
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Style database not found: C:\SD\stable-diffusion-webui\styles.csv
*** Error setting up CodeFormer
    Traceback (most recent call last):
      File "C:\SD\stable-diffusion-webui\modules\codeformer_model.py", line 30, in setup_model
        from modules.codeformer.codeformer_arch import CodeFormer
      File "C:\SD\stable-diffusion-webui\modules\codeformer\codeformer_arch.py", line 9, in <module>
        from modules.codeformer.vqgan_arch import VQAutoEncoder, ResBlock
      File "C:\SD\stable-diffusion-webui\modules\codeformer\vqgan_arch.py", line 11, in <module>
        from basicsr.utils import get_root_logger
      File "C:\SD\stable-diffusion-webui\repositories\CodeFormer\basicsr\__init__.py", line 11, in <module>
        from .version import __gitsha__, __version__
    ModuleNotFoundError: No module named 'basicsr.version'

---
Traceback (most recent call last):
  File "C:\SD\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "C:\SD\stable-diffusion-webui\launch.py", line 44, in main
    start()
  File "C:\SD\stable-diffusion-webui\modules\launch_utils.py", line 464, in start
    webui.webui()
  File "C:\SD\stable-diffusion-webui\webui.py", line 52, in webui
    initialize.initialize()
  File "C:\SD\stable-diffusion-webui\modules\initialize.py", line 71, in initialize
    from modules import gfpgan_model
  File "C:\SD\stable-diffusion-webui\modules\gfpgan_model.py", line 4, in <module>
    import gfpgan
  File "C:\SD\stable-diffusion-webui\venv\lib\site-packages\gfpgan\__init__.py", line 2, in <module>
    from .archs import *
  File "C:\SD\stable-diffusion-webui\venv\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:\SD\stable-diffusion-webui\venv\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\yusuf\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "C:\SD\stable-diffusion-webui\venv\lib\site-packages\gfpgan\archs\arcface_arch.py", line 172, in <module>
    class ResNetArcFace(nn.Module):
  File "C:\SD\stable-diffusion-webui\repositories\CodeFormer\basicsr\utils\registry.py", line 53, in deco
    self._do_register(name, func_or_class)
  File "C:\SD\stable-diffusion-webui\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!
Press any key to continue . . .
```


### Additional information

_No response_