AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
139.14k stars 26.41k forks source link

[Bug]: Codeformer "Weight" option does not have any effect #15467

Open Jokerminator opened 5 months ago

Jokerminator commented 5 months ago

Checklist

What happened?

Codeformer "Weight" option does not have any effect.

Steps to reproduce the problem

Extras -> Codeformer -> Set the Weight 0 -> Generate Set the Weight 1 -> Generate

Compare faces of generated images. They exactly are the same.

What should have happened?

Faces should look different depending on the Weight option!

What browsers do you use to access the UI ?

Mozilla Firefox

Sysinfo

sysinfo-2024-04-09-09-57.json

Console logs

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.8.0
Commit hash: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5
Launching Web UI with arguments:
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Loading weights [6ce0161689] from C:\BBs\sd.webui\webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
Creating model from config: C:\BBs\sd.webui\webui\configs\v1-inference.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 8.6s (prepare environment: 1.9s, import torch: 3.0s, import gradio: 0.7s, setup paths: 0.8s, initialize shared: 0.2s, other imports: 0.5s, load scripts: 0.8s, create ui: 0.3s, gradio launch: 0.3s).
Applying attention optimization: Doggettx... done.
Model loaded in 2.7s (create model: 0.7s, apply weights to model: 1.6s, calculate empty prompt: 0.1s).

Additional information

No response

Jokerminator commented 5 months ago

GFPGAN face restoration doesn't seem to work at all:

Console logs:

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: v1.8.0 Commit hash: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5 Launching Web UI with arguments: no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. Loading weights [6ce0161689] from C:\BBs\sd.webui\webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors Creating model from config: C:\BBs\sd.webui\webui\configs\v1-inference.yaml Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Startup time: 8.5s (prepare environment: 1.9s, import torch: 3.0s, import gradio: 0.7s, setup paths: 0.8s, initialize shared: 0.2s, other imports: 0.5s, load scripts: 0.8s, create ui: 0.3s, gradio launch: 0.4s). Applying attention optimization: Doggettx... done. Model loaded in 2.7s (load weights from disk: 0.3s, create model: 0.4s, apply weights to model: 1.6s, calculate empty prompt: 0.1s). WARNING:modules.face_restoration_utils:Unable to load face-restoration model Traceback (most recent call last): File "C:\BBs\sd.webui\webui\modules\face_restoration_utils.py", line 150, in restore_with_helper self.net = self.load_net() File "C:\BBs\sd.webui\webui\modules\gfpgan_model.py", line 46, in load_net raise ValueError("No GFPGAN model found") ValueError: No GFPGAN model found WARNING:modules.face_restoration_utils:Unable to load face-restoration model Traceback (most recent call last): File "C:\BBs\sd.webui\webui\modules\face_restoration_utils.py", line 150, in restore_with_helper self.net = self.load_net() File "C:\BBs\sd.webui\webui\modules\gfpgan_model.py", line 46, in load_net raise ValueError("No GFPGAN model found") ValueError: No GFPGAN model found WARNING:modules.face_restoration_utils:Unable to load face-restoration model Traceback (most recent call last): File "C:\BBs\sd.webui\webui\modules\face_restoration_utils.py", line 150, in restore_with_helper self.net = self.load_net() File "C:\BBs\sd.webui\webui\modules\gfpgan_model.py", line 46, in load_net raise ValueError("No GFPGAN model found") ValueError: No GFPGAN model found