Closed egerr10 closed 2 months ago
{ "name": "sd-webui-roop", "path": "C:\AI\sd-webui\sd-webui\extensions\sd-webui-roop", "version": "868f7d1b", "branch": "main", "remote": "https://github.com/s0md3v/sd-webui-roop" },
You should disable old Roop extension otherwise it causes dependencies conflict
{ "name": "sd-webui-roop", "path": "C:\AI\sd-webui\sd-webui\extensions\sd-webui-roop", "version": "868f7d1b", "branch": "main", "remote": "https://github.com/s0md3v/sd-webui-roop" },
You should disable old Roop extension otherwise it causes dependencies conflict
it's off. I've physically deleted this add-on right now and it didn't help
Using cached onnxruntime_gpu-1.16.3-cp311-cp311-win_amd64.whl (141.5 MB)
Using cached numpy-1.26.3-cp311-cp311-win_amd64.whl (15.8 MB)
Installing collected packages: numpy, onnxruntime-gpu
Attempting uninstall: numpy
Found existing installation: numpy 1.23.5
Uninstalling numpy-1.23.5:
Successfully uninstalled numpy-1.23.5
Error: The 'onnxruntime-gpu' distribution was not found and is required by the application
+---------------------------------+
--- PLEASE, RESTART the Server! ---
+---------------------------------+
Seeing the same issue where it asks to restart every time after updating a1111 to v1.8,0 Tried updating cuda and torch, cudnn, onxruntime, onxruntime gpu, same issue, returns an error when trying to generate with reactor enable as well, even before updating anything.
cudnn 8.9.2.26
Package Version
attrs 23.1.0 bidict 0.22.1 certifi 2023.11.17 charset-normalizer 3.3.2 colorama 0.4.6 coloredlogs 15.0.1 filelock 3.13.1 flatbuffers 23.5.26 fsspec 2023.12.2 h11 0.14.0 humanfriendly 10.0 idna 3.6 imageio 2.33.1 Jinja2 3.1.2 jsonschema 4.20.0 jsonschema-specifications 2023.11.2 lazy_loader 0.3 llvmlite 0.41.1 MarkupSafe 2.1.3 mpmath 1.3.0 networkx 3.2.1 numba 0.58.1 numpy 1.26.2 onnxruntime 1.17.0 onnxruntime-gpu 1.17.0 opencv-python-headless 4.8.1.78 packaging 23.2 Pillow 10.1.0 pip 24.0 platformdirs 4.1.0 pooch 1.8.0 protobuf 4.25.1 PyMatting 1.1.12 pyreadline3 3.4.1 python-engineio 4.8.0 python-socketio 5.7.2 referencing 0.32.0 rembg 2.0.53 requests 2.31.0 rpds-py 0.15.2 scikit-image 0.22.0 scipy 1.11.4 setuptools 63.2.0 simple-websocket 1.0.0 sympy 1.12 tifffile 2023.12.9 torch 2.2.0+cu121 torchaudio 2.2.0+cu121 torchvision 0.17.0+cu121 tqdm 4.66.1 typing_extensions 4.9.0 urllib3 2.1.0 websocket-client 1.7.0 wsproto 1.2.0 xformers 0.0.24
Already up to date. venv "E:\Stable Diffusion\stable-diffusion-webui\venv\Scripts\Python.exe" 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 Installing Miaoshou assistant requirement: gpt_index==0.4.24 Installing Miaoshou assistant requirement: langchain==0.0.132 Installing Miaoshou assistant requirement: gradio_client==0.5.0 Installing Miaoshou assistant requirement: requests==2.31.0 Installing Miaoshou assistant requirement: urllib3==2.0.6 Installing Miaoshou assistant requirement: tqdm==4.64.0 Installing requirements for Face Editor Looking in indexes: https://pypi.org/simple, https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/ Requirement already satisfied: onnxruntime-gpu in e:\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (1.16.3) Requirement already satisfied: flatbuffers in e:\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from onnxruntime-gpu) (23.5.26) Requirement already satisfied: protobuf in e:\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from onnxruntime-gpu) (3.20.2) Requirement already satisfied: numpy>=1.21.6 in e:\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from onnxruntime-gpu) (1.26.2) Requirement already satisfied: coloredlogs in e:\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from onnxruntime-gpu) (15.0.1) Requirement already satisfied: packaging in e:\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from onnxruntime-gpu) (23.2) Requirement already satisfied: sympy in e:\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from onnxruntime-gpu) (1.12) Requirement already satisfied: humanfriendly>=9.1 in e:\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from coloredlogs->onnxruntime-gpu) (10.0) Requirement already satisfied: mpmath>=0.19 in e:\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from sympy->onnxruntime-gpu) (1.3.0) Requirement already satisfied: pyreadline3 in e:\stable diffusion\stable-diffusion-webui\venv\lib\site-packages (from humanfriendly>=9.1->coloredlogs->onnxruntime-gpu) (3.4.1) CUDA 12.1
+---------------------------------+
--- PLEASE, RESTART the Server! ---
+---------------------------------+
####################################################################################################### Initializing Civitai Link If submitting an issue on github, please provide the below text for debugging purposes:
Python revision: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Civitai Link revision: 498f9b54e3f567038745f2651a23f85b393d0ab3 SD-WebUI revision: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5
Checking Civitai Link requirements... [+] python-socketio[client] version 5.7.2 installed.
####################################################################################################### Launching Web UI with arguments: --opt-sdp-attention --no-half-vae --theme dark --autolaunch No module 'xformers'. Proceeding without it. Civitai Helper: Get Custom Model Folder Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu. [-] ADetailer initialized. version: 24.3.0, num models: 31 logs_location: E:\Stable Diffusion\stable-diffusion-webui\extensions\miaoshouai-assistant\logs CivitAI Browser+: Aria2 RPC started [AddNet] Updating model hashes... 100%|███████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 225.95it/s] [AddNet] Updating model hashes... 100%|██████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1000.07it/s] ControlNet preprocessor location: E:\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads 2024-03-03 00:48:26,043 - ControlNet - INFO - ControlNet v1.1.441 2024-03-03 00:48:28,395 - ControlNet - INFO - ControlNet v1.1.441 [sd-webui-freeu] Controlnet support: enabled 00:48:31 - ReActor - STATUS - Running v0.7.0-b1 on Device: CUDA Civitai: API loaded Loading weights [78109223d2] from E:\Stable Diffusion\stable-diffusion-webui\models\Stable-diffusion\copaxTimelessxlSDXL1_v10.safetensors Creating model from config: E:\Stable Diffusion\stable-diffusion-webui\repositories\generative-models\configs\inference\sd_xl_base.yaml Loading VAE weights specified in settings: E:\Stable Diffusion\stable-diffusion-webui\models\VAE\sdxl_vae.safetensors Applying attention optimization: sdp... done. Model loaded in 7.2s (load weights from disk: 2.6s, create model: 0.4s, apply weights to model: 1.6s, load VAE: 0.2s, load textual inversion embeddings: 2.1s, calculate empty prompt: 0.2s). 2024-03-03 00:48:41,286 - ControlNet - INFO - ControlNet UI callback registered. Civitai Helper: Set Proxy: add tab [([button, button, button, button, button], button, gallery), ([button, button, button, button, button], button, gallery)] Running on local URL: http://127.0.0.1:7860
To create a public link, set share=True
in launch()
.
Civitai Link: Connecting to Civitai Link Server
Civitai Link: Connected to Civitai Link Server
Civitai: Check resources for missing info files
Civitai Link: Connecting to Civitai Link Server
Civitai: Check resources for missing preview images
Startup time: 91.3s (prepare environment: 32.2s, import torch: 2.6s, import gradio: 0.7s, setup paths: 0.5s, initialize shared: 0.2s, other imports: 1.6s, list SD models: 7.1s, load scripts: 10.8s, create ui: 32.5s, gradio launch: 1.1s, app_started_callback: 2.1s).
Civitai Link: Joined room
Civitai Link: Joined room
Civitai Link: Presence update: SD: 0, Clients: 1
Civitai Link: Presence update: SD: 1, Clients: 1
Civitai Link: Connected to Civitai Instance
Civitai Link: Presence update: SD: 1, Clients: 1
Civitai Link: Incoming Command: activities:list
Civitai Link: Incoming Command: resources:list
Civitai: Found 0 resources missing info files
Civitai: Found 60 resources missing preview images
Civitai: No info found on Civitai
Civitai: No preview images found on Civitai
100%|██████████████████████████████████████████████████████████████████████████████████| 40/40 [00:06<00:00, 6.05it/s]
00:51:01 - ReActor - STATUS - Working: source face index [0], target face index [0]██▎ | 39/40 [00:06<00:00, 7.28it/s]
00:51:01 - ReActor - STATUS - Using Loaded Source Face Model...
00:51:01 - ReActor - STATUS - Analyzing Target Image...
2024-03-03 00:51:02.5390143 [E:onnxruntime:Default, provider_bridge_ort.cc:1480 onnxruntime::TryGetProviderInfo_CUDA] D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1193 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "E:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"
EP Error D:\a_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:743 onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page (https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), make sure they're in the PATH, and that your GPU is supported. when using ['CUDAExecutionProvider'] Falling back to ['CUDAExecutionProvider', 'CPUExecutionProvider'] and retrying. 2024-03-03 00:51:02.5908927 [E:onnxruntime:Default, provider_bridge_ort.cc:1480 onnxruntime::TryGetProviderInfo_CUDA] D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1193 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "E:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"
*** Error running postprocess_image: E:\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py Traceback (most recent call last): File "E:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 419, in init self._create_inference_session(providers, provider_options, disabled_optimizers) File "E:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 463, in _create_inference_session sess.initialize_session(providers, provider_options, disabled_optimizers) RuntimeError: D:\a_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:743 onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page (https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), make sure they're in the PATH, and that your GPU is supported.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "E:\Stable Diffusion\stable-diffusion-webui\modules\scripts.py", line 856, in postprocess_image
script.postprocess_image(p, pp, *script_args)
File "E:\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py", line 449, in postprocess_image
result, output, swapped = swap_face(
File "E:\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 593, in swap_face
target_faces = analyze_faces(target_img, det_thresh=detection_options.det_thresh, det_maxnum=detection_options.det_maxnum)
File "E:\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 301, in analyze_faces
face_analyser = copy.deepcopy(getAnalysisModel())
File "E:\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 145, in getAnalysisModel
ANALYSIS_MODEL = insightface.app.FaceAnalysis(
File "E:\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\console_log_patch.py", line 48, in patched_faceanalysis_init
model = model_zoo.get_model(onnx_file, **kwargs)
File "E:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\insightface\model_zoo\model_zoo.py", line 96, in get_model
model = router.get_model(providers=providers, provider_options=provider_options)
File "E:\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\console_log_patch.py", line 21, in patched_get_model
session = PickableInferenceSession(self.onnx_file, **kwargs)
File "E:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\insightface\model_zoo\model_zoo.py", line 25, in __init__
super().__init__(model_path, **kwargs)
File "E:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 430, in __init__
raise fallback_error from e
File "E:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 425, in __init__
self._create_inference_session(self._fallback_providers, None)
File "E:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 463, in _create_inference_session
sess.initialize_session(providers, provider_options, disabled_optimizers)
RuntimeError: D:\a\_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:743 onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page (https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), make sure they're in the PATH, and that your GPU is supported.
First, confirm
What happened?
after installing sd-webui-reactor, I see this message every time I start SD. I saw this message and even deleted and reinstalled it, but the problem was not solved - https://github.com/Gourieff/sd-webui-reactor/issues/187#issuecomment-1811884114
The sd-webui-reactor functionality is working. the only point is if I select GFPGAN in Restore Face, the face is not replaced. Therefore, I am not sure that everything is bad, but I will be glad if I can fix the problem.
Thanks a lot for this extension, thanks to it I get incredible images!
Steps to reproduce the problem
start SD
Sysinfo
Relevant console log
Additional information
No response