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.55k stars 278 forks source link

Face Model selection broken #436

Closed 1manfactory closed 5 months ago

1manfactory commented 6 months ago

First, confirm

What happened?

As of today the Face Model selection button is broken.

image

Steps to reproduce the problem

Press Face Model

Sysinfo

version: v1.9.3  •  python: 3.10.6  •  torch: 2.0.1+cu118  •  xformers: N/A  •  gradio: 3.41.2  •  checkpoint: ef76aa2332

Relevant console log

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.9.3
Commit hash: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0
bin C:\sd.webui\system\python\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.dll
Installing sd-webui-controlnet requirement: changing opencv-python version from 4.7.0.72 to 4.8.0
Installing sd-webui-facefusion requirement: changing onnx version from 1.14.0 to 1.14.1
CUDA 11.8
Requirement already satisfied: insightface==0.7.3 in c:\sd.webui\system\python\lib\site-packages (from -r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (0.7.3)
Collecting onnx==1.14.0 (from -r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 2))
  Using cached onnx-1.14.0-cp310-cp310-win_amd64.whl.metadata (15 kB)
Requirement already satisfied: onnxruntime==1.15.0 in c:\sd.webui\system\python\lib\site-packages (from -r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 3)) (1.15.0)
Collecting opencv-python==4.7.0.72 (from -r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 4))
  Using cached opencv_python-4.7.0.72-cp37-abi3-win_amd64.whl.metadata (18 kB)
Requirement already satisfied: ifnude in c:\sd.webui\system\python\lib\site-packages (from -r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 5)) (0.0.3)
Requirement already satisfied: cython in c:\sd.webui\system\python\lib\site-packages (from -r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 6)) (3.0.8)
Requirement already satisfied: numpy in c:\sd.webui\system\python\lib\site-packages (from insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.26.2)
Requirement already satisfied: tqdm in c:\sd.webui\system\python\lib\site-packages (from insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (4.66.1)
Requirement already satisfied: requests in c:\sd.webui\system\python\lib\site-packages (from insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (2.31.0)
Requirement already satisfied: matplotlib in c:\sd.webui\system\python\lib\site-packages (from insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (3.8.2)
Requirement already satisfied: Pillow in c:\sd.webui\system\python\lib\site-packages (from insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (9.5.0)
Requirement already satisfied: scipy in c:\sd.webui\system\python\lib\site-packages (from insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.12.0)
Requirement already satisfied: scikit-learn in c:\sd.webui\system\python\lib\site-packages (from insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.4.0)
Requirement already satisfied: scikit-image in c:\sd.webui\system\python\lib\site-packages (from insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (0.21.0)
Requirement already satisfied: easydict in c:\sd.webui\system\python\lib\site-packages (from insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.11)
Requirement already satisfied: albumentations in c:\sd.webui\system\python\lib\site-packages (from insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.4.3)
Requirement already satisfied: prettytable in c:\sd.webui\system\python\lib\site-packages (from insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (3.9.0)
Requirement already satisfied: protobuf>=3.20.2 in c:\sd.webui\system\python\lib\site-packages (from onnx==1.14.0->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 2)) (3.20.3)
Requirement already satisfied: typing-extensions>=3.6.2.1 in c:\sd.webui\system\python\lib\site-packages (from onnx==1.14.0->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 2)) (4.9.0)
Requirement already satisfied: coloredlogs in c:\sd.webui\system\python\lib\site-packages (from onnxruntime==1.15.0->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 3)) (15.0.1)
Requirement already satisfied: flatbuffers in c:\sd.webui\system\python\lib\site-packages (from onnxruntime==1.15.0->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 3)) (23.5.26)
Requirement already satisfied: packaging in c:\sd.webui\system\python\lib\site-packages (from onnxruntime==1.15.0->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 3)) (23.2)
Requirement already satisfied: sympy in c:\sd.webui\system\python\lib\site-packages (from onnxruntime==1.15.0->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 3)) (1.12)
Requirement already satisfied: opencv-python-headless>=4.5.1.48 in c:\sd.webui\system\python\lib\site-packages (from ifnude->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 5)) (4.9.0.80)
Requirement already satisfied: PyYAML in c:\sd.webui\system\python\lib\site-packages (from albumentations->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (6.0.1)
Requirement already satisfied: networkx>=2.8 in c:\sd.webui\system\python\lib\site-packages (from scikit-image->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (3.2.1)
Requirement already satisfied: imageio>=2.27 in c:\sd.webui\system\python\lib\site-packages (from scikit-image->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (2.33.1)
Requirement already satisfied: tifffile>=2022.8.12 in c:\sd.webui\system\python\lib\site-packages (from scikit-image->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (2024.1.30)
Requirement already satisfied: PyWavelets>=1.1.1 in c:\sd.webui\system\python\lib\site-packages (from scikit-image->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.5.0)
Requirement already satisfied: lazy_loader>=0.2 in c:\sd.webui\system\python\lib\site-packages (from scikit-image->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (0.3)
Requirement already satisfied: joblib>=1.2.0 in c:\sd.webui\system\python\lib\site-packages (from scikit-learn->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.3.2)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\sd.webui\system\python\lib\site-packages (from scikit-learn->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (3.2.0)
Requirement already satisfied: humanfriendly>=9.1 in c:\sd.webui\system\python\lib\site-packages (from coloredlogs->onnxruntime==1.15.0->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 3)) (10.0)
Requirement already satisfied: contourpy>=1.0.1 in c:\sd.webui\system\python\lib\site-packages (from matplotlib->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.2.0)
Requirement already satisfied: cycler>=0.10 in c:\sd.webui\system\python\lib\site-packages (from matplotlib->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in c:\sd.webui\system\python\lib\site-packages (from matplotlib->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (4.47.2)
Requirement already satisfied: kiwisolver>=1.3.1 in c:\sd.webui\system\python\lib\site-packages (from matplotlib->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.4.5)
Requirement already satisfied: pyparsing>=2.3.1 in c:\sd.webui\system\python\lib\site-packages (from matplotlib->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (3.1.1)
Requirement already satisfied: python-dateutil>=2.7 in c:\sd.webui\system\python\lib\site-packages (from matplotlib->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (2.8.2)
Requirement already satisfied: wcwidth in c:\sd.webui\system\python\lib\site-packages (from prettytable->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (0.2.13)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\sd.webui\system\python\lib\site-packages (from requests->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in c:\sd.webui\system\python\lib\site-packages (from requests->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\sd.webui\system\python\lib\site-packages (from requests->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (2.0.7)
Requirement already satisfied: certifi>=2017.4.17 in c:\sd.webui\system\python\lib\site-packages (from requests->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (2023.7.22)
Requirement already satisfied: mpmath>=0.19 in c:\sd.webui\system\python\lib\site-packages (from sympy->onnxruntime==1.15.0->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 3)) (1.3.0)
Requirement already satisfied: colorama in c:\sd.webui\system\python\lib\site-packages (from tqdm->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (0.4.6)
Requirement already satisfied: pyreadline3 in c:\sd.webui\system\python\lib\site-packages (from humanfriendly>=9.1->coloredlogs->onnxruntime==1.15.0->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 3)) (3.4.1)
Requirement already satisfied: six>=1.5 in c:\sd.webui\system\python\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface==0.7.3->-r C:\sd.webui\webui\extensions\sd-webui-roop\requirements.txt (line 1)) (1.16.0)
Using cached onnx-1.14.0-cp310-cp310-win_amd64.whl (13.3 MB)
Using cached opencv_python-4.7.0.72-cp37-abi3-win_amd64.whl (38.2 MB)
Installing collected packages: opencv-python, onnx
  Attempting uninstall: opencv-python
    Found existing installation: opencv-python 4.9.0.80
    Uninstalling opencv-python-4.9.0.80:
      Successfully uninstalled opencv-python-4.9.0.80
  Attempting uninstall: onnx
    Found existing installation: onnx 1.16.0
    Uninstalling onnx-1.16.0:
      Successfully uninstalled onnx-1.16.0
Successfully installed onnx-1.14.0 opencv-python-4.7.0.72
Launching Web UI with arguments: --no-half-vae
bin C:\sd.webui\system\python\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.dll
2024-04-27 09:56:45.403249: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
WARNING:tensorflow:From C:\sd.webui\system\python\lib\site-packages\keras\src\losses.py:2976: The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy instead.

No module 'xformers'. Proceeding without it.
==============================================================================
You are running torch 2.0.1+cu118.
The program is tested to work with torch 2.1.2.
To reinstall the desired version, run with commandline flag --reinstall-torch.
Beware that this will cause a lot of large files to be downloaded, as well as
there are reports of issues with training tab on the latest version.

Use --skip-version-check commandline argument to disable this check.
==============================================================================
[-] ADetailer initialized. version: 24.4.2, num models: 10
ControlNet preprocessor location: C:\sd.webui\webui\extensions\sd-webui-controlnet\annotator\downloads
2024-04-27 09:56:56,489 - ControlNet - INFO - ControlNet v1.1.445
2024-04-27 09:56:56,723 - ControlNet - INFO - ControlNet v1.1.445
sd-webui-prompt-all-in-one background API service started successfully.
09:56:57 - ReActor - STATUS - Running v0.7.0-b7 on Device: CUDA
2024-04-27 09:56:57,803 - roop - INFO - roop v0.0.2
2024-04-27 09:56:57,846 - roop - INFO - roop v0.0.2
[ControlNet-Travel] extension Mikubill/sd-webui-controlnet found, ControlNet-Travel loaded :)
Loading weights [ef76aa2332] from C:\sd.webui\webui\models\Stable-diffusion\realisticVisionV60B1_v51VAE.safetensors
Creating model from config: C:\sd.webui\webui\configs\v1-inference.yaml
Applying attention optimization: Doggettx... done.
Model loaded in 3.3s (load weights from disk: 0.1s, create model: 0.3s, apply weights to model: 2.5s, calculate empty prompt: 0.2s).
2024-04-27 09:57:01,599 - ControlNet - INFO - ControlNet UI callback registered.
*Deforum ControlNet support: enabled*
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: C:\Users\juergen/.insightface\models\buffalo_l\1k3d68.onnx landmark_3d_68 ['None', 3, 192, 192] 0.0 1.0
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: C:\Users\juergen/.insightface\models\buffalo_l\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: C:\Users\juergen/.insightface\models\buffalo_l\det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: C:\Users\juergen/.insightface\models\buffalo_l\genderage.onnx genderage ['None', 3, 96, 96] 0.0 1.0
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: C:\Users\juergen/.insightface\models\buffalo_l\w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5
set det-size: (640, 640)
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
IIB Database file has been successfully backed up to the backup folder.
Startup time: 86.9s (prepare environment: 50.1s, import torch: 3.6s, import gradio: 1.1s, setup paths: 7.9s, initialize shared: 0.2s, other imports: 0.5s, list SD models: 0.1s, load scripts: 4.7s, create ui: 7.1s, gradio launch: 2.6s, app_started_callback: 8.6s).

Additional information

Used to work yesterday.

1manfactory commented 6 months ago

Just checked it with Firefox. Strangely it works with Firefox. So I guess it's a Chrome problem or maybe the cache? Anyways, it's the first time I ran into this problem.

Hunt3rseeker commented 6 months ago

Did you try switching from face model (where you load up) to image(s) and then back to face models? Works for me.

1manfactory commented 5 months ago

Can be closed. Somehow it's working again. Magic?

Gourieff commented 5 months ago

Some bug of the browser I think