i cant use it in webui automatic11111,whats wrong with me

#31
by ryio - opened

2024-01-22 17:09:44.3724636 [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-webui2.0\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: E:\stable-diffusion-webui2.0\extensions\sd-webui-controlnet\annotator\downloads\insightface\models\buffalo_l\1k3d68.onnx landmark_3d_68 ['None', 3, 192, 192] 0.0 1.0
2024-01-22 17:09:45.2884630 [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-webui2.0\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: E:\stable-diffusion-webui2.0\extensions\sd-webui-controlnet\annotator\downloads\insightface\models\buffalo_l\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0
2024-01-22 17:09:45.3882201 [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-webui2.0\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: E:\stable-diffusion-webui2.0\extensions\sd-webui-controlnet\annotator\downloads\insightface\models\buffalo_l\det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0
2024-01-22 17:09:45.5100348 [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-webui2.0\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: E:\stable-diffusion-webui2.0\extensions\sd-webui-controlnet\annotator\downloads\insightface\models\buffalo_l\genderage.onnx genderage ['None', 3, 96, 96] 0.0 1.0
2024-01-22 17:09:45.7545453 [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-webui2.0\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: E:\stable-diffusion-webui2.0\extensions\sd-webui-controlnet\annotator\downloads\insightface\models\buffalo_l\w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5
set det-size: (640, 640)
*** Error running process: E:\stable-diffusion-webui2.0\extensions\sd-webui-controlnet\scripts\controlnet.py
Traceback (most recent call last):
File "E:\stable-diffusion-webui2.0\modules\scripts.py", line 764, in process
script.process(p, *script_args)
File "E:\stable-diffusion-webui2.0\extensions\sd-webui-controlnet\scripts\controlnet.py", line 1062, in process
self.controlnet_hack(p)
File "E:\stable-diffusion-webui2.0\extensions\sd-webui-controlnet\scripts\controlnet.py", line 1047, in controlnet_hack
self.controlnet_main_entry(p)
File "E:\stable-diffusion-webui2.0\extensions\sd-webui-controlnet\scripts\controlnet.py", line 878, in controlnet_main_entry
detected_map, is_image = preprocessor(
File "E:\stable-diffusion-webui2.0\extensions\sd-webui-controlnet\scripts\utils.py", line 75, in decorated_func
return cached_func(*args, **kwargs)
File "E:\stable-diffusion-webui2.0\extensions\sd-webui-controlnet\scripts\utils.py", line 63, in cached_func
return func(*args, **kwargs)
File "E:\stable-diffusion-webui2.0\extensions\sd-webui-controlnet\scripts\global_state.py", line 37, in unified_preprocessor
return preprocessor_modules[preprocessor_name](*args, **kwargs)
File "E:\stable-diffusion-webui2.0\extensions\sd-webui-controlnet\scripts\processor.py", line 698, in face_id_plus face_embed, _ = g_insight_face_model.run_model(img)
File "E:\stable-diffusion-webui2.0\extensions\sd-webui-controlnet\scripts\processor.py", line 683, in run_model
raise Exception("Insightface: No face found in image.")
Exception: Insightface: No face found in image.

Owner

beacuse face detection model don't found the face

I have the same problem, i'm tried with many images of faces, full body and nothing just "raise Exception("Insightface: No face found in image.")"

Owner

don't use croped face image

Thanks to H94 for the reply, it solved my problem. The cropped face image would report an error, but it worked normally after replacing it with a bust.

Thanks to H94 for the reply, it solved my problem. The cropped face image would report an error, but it worked normally after replacing it with a bust.

No need to change the bust image to another, just expand the size of the cropped face image: increase canvas size in photoshop.

Sign up or log in to comment