Gourieff / sd-webui-reactor

Fast and Simple Face Swap Extension for StableDiffusion WebUI (A1111 SD WebUI, SD WebUI Forge, SD.Next, Cagliostro)
GNU Affero General Public License v3.0
2.54k stars 277 forks source link

Fails to load SDnext when using diffuser backend instead of original #241

Closed onlyreportingissues closed 10 months ago

onlyreportingissues commented 11 months ago

First, confirm

What happened?

I can't start web ui anymore once I change the backend to a diffuser one (dreamshaper 8). Also, the error won't go away with all extensions deleted either.

Steps to reproduce the problem

  1. enable reactor
  2. change the diffuser
  3. restart the app

Sysinfo

System: Kernel: 6.7.0-0.rc4.35.fc39.x86_64 arch: x86_64 bits: 64 Desktop: GNOME v: 45.2 Distro: Fedora release 39 (Thirty Nine) Machine: Type: Desktop Mobo: Micro-Star model: B550M PRO (MS-7D14) v: 1.0 serial: UEFI: American Megatrends LLC. v: 2.A0 date: 03/06/2023 CPU: Info: 6-core model: AMD Ryzen 5 5600 bits: 64 type: MT MCP cache: L2: 3 MiB Speed (MHz): avg: 1312 min/max: 550/4468 cores: 1: 550 2: 550 3: 3600 4: 550 5: 3600 6: 550 7: 3600 8: 550 9: 550 10: 550 11: 550 12: 550 Graphics: Device-1: AMD Navi 23 [Radeon RX 6600/6600 XT/6600M] driver: amdgpu v: kernel Device-2: [] driver: snd-usb-audio,uvcvideo type: USB Display: wayland server: X.Org v: 23.2.2 with: Xwayland v: 23.2.2 compositor: gnome-shell driver: X: loaded: amdgpu unloaded: fbdev,modesetting,radeon,vesa dri: radeonsi gpu: amdgpu resolution: 1920x1080~60Hz API: OpenGL v: 4.6 vendor: amd mesa v: 24.0.0-devel renderer: AMD Radeon RX 6600 (radeonsi navi23 LLVM 17.0.4 DRM 3.56 6.7.0-0.rc4.35.fc39.x86_64) API: EGL Message: EGL data requires eglinfo. Check --recommends.

Relevant console log

2023-12-07 20:28:51,962 | sd | INFO | launch | Starting SD.Next
2023-12-07 20:28:51,964 | sd | INFO | installer | Logger: file="/home/saidox/Downloads/automaticsd/sdnext.log" level=DEBUG size=64 mode=create
2023-12-07 20:28:51,965 | sd | INFO | installer | Python 3.10.13 on Linux
2023-12-07 20:28:51,975 | sd | INFO | installer | Version: app=sd.next updated=2023-12-04 hash=93f35ccf url=https://github.com/vladmandic/automatic/tree/master
2023-12-07 20:28:52,166 | sd | INFO | launch | Platform: arch=x86_64 cpu= system=Linux release=6.7.0-0.rc4.35.fc39.x86_64 python=3.10.13
2023-12-07 20:28:52,168 | sd | DEBUG | installer | Setting environment tuning
2023-12-07 20:28:52,168 | sd | DEBUG | installer | Cache folder: /home/saidox/.cache/huggyface/hub
2023-12-07 20:28:52,169 | sd | DEBUG | installer | Torch overrides: cuda=False rocm=False ipex=False diml=False openvino=False
2023-12-07 20:28:52,170 | sd | DEBUG | installer | Torch allowed: cuda=True rocm=True ipex=True diml=True openvino=True
2023-12-07 20:28:52,171 | sd | INFO | installer | AMD ROCm toolkit detected
2023-12-07 20:28:52,198 | sd | DEBUG | installer | ROCm agents detected: ['gfx1032']
2023-12-07 20:28:52,199 | sd | DEBUG | installer | ROCm agent used by default: idx=0 gpu=gfx1032 arch=navi2x
2023-12-07 20:28:52,247 | sd | DEBUG | installer | ROCm version detected: 5.7
2023-12-07 20:28:52,256 | sd | WARNING | installer | Modified files: ['installer.py', 'webui.sh']
2023-12-07 20:28:52,260 | sd | DEBUG | installer | Repository update time: Mon Dec  4 19:31:52 2023
2023-12-07 20:28:52,260 | sd | INFO | launch | Startup: standard
2023-12-07 20:28:52,261 | sd | INFO | installer | Verifying requirements
2023-12-07 20:28:52,265 | sd | INFO | installer | Verifying packages
2023-12-07 20:28:52,266 | sd | INFO | installer | Verifying submodules
2023-12-07 20:28:52,446 | sd | DEBUG | installer | Submodule: extensions-builtin/sd-extension-chainner / main
2023-12-07 20:28:52,453 | sd | DEBUG | installer | Submodule: extensions-builtin/sd-extension-system-info / main
2023-12-07 20:28:52,460 | sd | DEBUG | installer | Submodule: extensions-builtin/sd-webui-agent-scheduler / main
2023-12-07 20:28:52,467 | sd | DEBUG | installer | Submodule: extensions-builtin/sd-webui-controlnet / main
2023-12-07 20:28:52,479 | sd | DEBUG | installer | Submodule: extensions-builtin/stable-diffusion-webui-images-browser / main
2023-12-07 20:28:52,486 | sd | DEBUG | installer | Submodule: extensions-builtin/stable-diffusion-webui-rembg / master
2023-12-07 20:28:52,493 | sd | DEBUG | installer | Submodule: modules/k-diffusion / master
2023-12-07 20:28:52,500 | sd | DEBUG | installer | Submodule: modules/lora / main
2023-12-07 20:28:52,508 | sd | DEBUG | installer | Submodule: wiki / master
2023-12-07 20:28:52,513 | sd | DEBUG | paths | Register paths
2023-12-07 20:28:52,572 | sd | DEBUG | installer | Installed packages: 228
2023-12-07 20:28:52,573 | sd | DEBUG | installer | Extensions all: ['stable-diffusion-webui-rembg', 'stable-diffusion-webui-images-browser', 'sd-webui-agent-scheduler', 'sd-extension-system-info', 'sd-extension-chainner', 'Lora', 'sd-webui-controlnet']
2023-12-07 20:28:52,574 | sd | DEBUG | installer | Running extension installer: /home/saidox/Downloads/automaticsd/extensions-builtin/stable-diffusion-webui-rembg/install.py
2023-12-07 20:28:52,745 | sd | DEBUG | installer | Running extension installer: /home/saidox/Downloads/automaticsd/extensions-builtin/stable-diffusion-webui-images-browser/install.py
2023-12-07 20:28:52,916 | sd | DEBUG | installer | Running extension installer: /home/saidox/Downloads/automaticsd/extensions-builtin/sd-webui-agent-scheduler/install.py
2023-12-07 20:28:53,088 | sd | DEBUG | installer | Running extension installer: /home/saidox/Downloads/automaticsd/extensions-builtin/sd-extension-system-info/install.py
2023-12-07 20:28:53,360 | sd | DEBUG | installer | Running extension installer: /home/saidox/Downloads/automaticsd/extensions-builtin/sd-webui-controlnet/install.py
2023-12-07 20:28:53,531 | sd | DEBUG | installer | Extensions all: ['sd-webui-lcm', 'sd-webui-controlnet', 'sd-dynamic-prompts', 'multidiffusion-upscaler-for-automatic1111', 'sd-webui-reactor']
2023-12-07 20:28:53,532 | sd | DEBUG | installer | Running extension installer: /home/saidox/Downloads/automaticsd/extensions/sd-webui-lcm/install.py
2023-12-07 20:28:53,703 | sd | DEBUG | installer | Running extension installer: /home/saidox/Downloads/automaticsd/extensions/sd-dynamic-prompts/install.py
2023-12-07 20:28:53,937 | sd | DEBUG | installer | Running extension installer: /home/saidox/Downloads/automaticsd/extensions/sd-webui-reactor/install.py
2023-12-07 20:28:55,478 | sd | INFO | installer | Extensions enabled: ['stable-diffusion-webui-rembg', 'stable-diffusion-webui-images-browser', 'sd-webui-agent-scheduler', 'sd-extension-system-info', 'sd-extension-chainner', 'Lora', 'sd-webui-controlnet', 'sd-webui-lcm', 'sd-dynamic-prompts', 'multidiffusion-upscaler-for-automatic1111', 'sd-webui-reactor']
2023-12-07 20:28:55,479 | sd | WARNING | installer | Extensions duplicates: ['sd-webui-controlnet']
2023-12-07 20:28:55,480 | sd | INFO | installer | Verifying requirements
2023-12-07 20:28:55,484 | sd | DEBUG | launch | Setup complete without errors: 1701977335
2023-12-07 20:28:55,485 | sd | INFO | installer | Extension preload: {'extensions-builtin': 0.0, 'extensions': 0.0}
2023-12-07 20:28:55,487 | sd | DEBUG | launch | Starting module: <module 'webui' from '/home/saidox/Downloads/automaticsd/webui.py'>
2023-12-07 20:28:55,487 | sd | INFO | launch | Command line args: ['--debug'] debug=True
2023-12-07 20:28:58,099 | sd | INFO | loader | Load packages: torch=2.2.0.dev20231206+rocm5.7 diffusers=0.24.0 gradio=3.43.2
2023-12-07 20:28:58,731 | sd | DEBUG | shared | Read: file="config.json" json=16 bytes=696
2023-12-07 20:28:58,734 | sd | INFO | shared | Engine: backend=Backend.ORIGINAL compute=rocm mode=no_grad device=cuda cross-optimization="Sub-quadratic"
2023-12-07 20:28:58,735 | sd | INFO | shared | Device: device=AMD Radeon RX 6600 n=1 hip=5.7.31921-d1770ee1b
2023-12-07 20:29:00,299 | sd | DEBUG | webui | Entering start sequence
2023-12-07 20:29:00,300 | sd | DEBUG | webui | Initializing
2023-12-07 20:29:00,302 | sd | INFO | sd_vae | Available VAEs: path="models/VAE" items=0
2023-12-07 20:29:00,302 | sd | INFO | extensions | Skipping conflicting extension: extensions/sd-webui-controlnet
2023-12-07 20:29:00,303 | sd | INFO | shared | Disabling uncompatible extensions: backend=Backend.ORIGINAL []
2023-12-07 20:29:00,304 | sd | DEBUG | shared | Read: file="cache.json" json=1 bytes=184
2023-12-07 20:29:00,305 | sd | DEBUG | shared | Read: file="metadata.json" json=1 bytes=102
2023-12-07 20:29:00,306 | sd | INFO | sd_models | Available models: path="models/Stable-diffusion" items=1 time=0.00
2023-12-07 20:29:00,399 | sd | ERROR | errors | codeformer: ModuleNotFoundError
2023-12-07 20:29:00,441 | sd | ERROR | errors | gfpgan: ModuleNotFoundError
2023-12-07 20:29:00,463 | sd | DEBUG | webui | Load extensions
2023-12-07 20:29:01,179 | sd | INFO | script_loading | Extension: script='extensions-builtin/sd-webui-agent-scheduler/scripts/task_scheduler.py' Using sqlite file: extensions-builtin/sd-webui-agent-scheduler/task_scheduler.sqlite3
2023-12-07 20:29:01,297 | sd | INFO | script_loading | Extension: script='extensions-builtin/sd-webui-controlnet/scripts/controlnet.py' Warning: ControlNet failed to load SGM - will use LDM instead.
2023-12-07 20:29:01,298 | sd | INFO | script_loading | Extension: script='extensions-builtin/sd-webui-controlnet/scripts/controlnet.py' ControlNet preprocessor location: /home/saidox/Downloads/automaticsd/extensions-builtin/sd-webui-controlnet/annotator/downloads
2023-12-07 20:29:01,303 | sd | INFO | script_loading | Extension: script='extensions-builtin/sd-webui-controlnet/scripts/hook.py' Warning: ControlNet failed to load SGM - will use LDM instead.
2023-12-07 20:29:01,850 | sd | INFO | webui | Extensions time: 1.39 { Lora=0.32 sd-webui-agent-scheduler=0.36 sd-webui-controlnet=0.13 stable-diffusion-webui-rembg=0.35 sd-webui-reactor=0.14 }
2023-12-07 20:29:01,872 | sd | DEBUG | shared | Read: file="html/upscalers.json" json=4 bytes=2640
2023-12-07 20:29:01,873 | sd | DEBUG | shared | Read: file="extensions-builtin/sd-extension-chainner/models.json" json=24 bytes=2693
2023-12-07 20:29:01,874 | sd | DEBUG | chainner_model | chaiNNer models: path="models/chaiNNer" defined=24 discovered=0 downloaded=0
2023-12-07 20:29:01,875 | sd | DEBUG | modelloader | Load upscalers: total=50 downloaded=0 user=0 time=0.02 ['None', 'Lanczos', 'Nearest', 'ChaiNNer', 'ESRGAN', 'LDSR', 'RealESRGAN', 'SCUNet', 'SD', 'SwinIR']
2023-12-07 20:29:01,881 | sd | DEBUG | styles | Load styles: folder="models/styles" items=288 time=0.00
2023-12-07 20:29:01,882 | sd | DEBUG | webui | Creating UI
2023-12-07 20:29:02,056 | sd | INFO | theme | Load UI theme: name="black-teal" style=Auto base=sdnext.css
2023-12-07 20:29:02,073 | sd | DEBUG | ui_extra_networks | Extra networks: page='model' items=1 subfolders=1 tab=txt2img folders=['models/Stable-diffusion', 'models/Diffusers', 'models/Reference', '/home/saidox/Downloads/automaticsd/models/Stable-diffusion'] list=0.00 desc=0.00 info=0.00 workers=2
2023-12-07 20:29:02,082 | sd | DEBUG | ui_extra_networks | Extra networks: page='style' items=288 subfolders=2 tab=txt2img folders=['models/styles', 'html'] list=0.01 desc=0.00 info=0.00 workers=2
2023-12-07 20:29:02,084 | sd | DEBUG | ui_extra_networks | Extra networks: page='embedding' items=0 subfolders=1 tab=txt2img folders=['models/embeddings'] list=0.00 desc=0.00 info=0.00 workers=2
2023-12-07 20:29:02,085 | sd | DEBUG | ui_extra_networks | Extra networks: page='hypernetwork' items=0 subfolders=1 tab=txt2img folders=['models/hypernetworks'] list=0.00 desc=0.00 info=0.00 workers=2
2023-12-07 20:29:02,086 | sd | DEBUG | ui_extra_networks | Extra networks: page='vae' items=0 subfolders=1 tab=txt2img folders=['models/VAE'] list=0.00 desc=0.00 info=0.00 workers=2
2023-12-07 20:29:02,088 | sd | DEBUG | ui_extra_networks | Extra networks: page='lora' items=0 subfolders=1 tab=txt2img folders=['models/Lora', 'models/LyCORIS'] list=0.00 desc=0.00 info=0.00 workers=2
2023-12-07 20:29:02,162 | sd | ERROR | errors | Calling script: extensions/sd-webui-reactor/scripts/reactor_faceswap.py/ui: IndexError
2023-12-07 20:29:02,290 | sd | ERROR | errors | Calling script: extensions/sd-webui-reactor/scripts/reactor_faceswap.py/ui: IndexError
2023-12-07 20:29:02,337 | sd | ERROR | errors | calling extensions/sd-webui-reactor/scripts/reactor_faceswap.py/ui: IndexError

Additional information

No response

onlyreportingissues commented 11 months ago

^ Added console log.

onlyreportingissues commented 11 months ago

Not sure if that solved it, but I applied that fix for SD.Next, started it once with webui.sh --safe, re-enabled extensions & chose my diffuser (dreamshaper 8). Started it without the --safe command again (but not sure if before or after generating) and generated example images with codeformer and gfpgan. It downloaded then some files. Now it works I guess.