Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAIL : LoadLibrary failed with error 126 #48

Open
rbbdz opened this issue Jan 25, 2024 · 6 comments
Open

FAIL : LoadLibrary failed with error 126 #48

rbbdz opened this issue Jan 25, 2024 · 6 comments

Comments

@rbbdz
Copy link

rbbdz commented Jan 25, 2024

i have all requirements satisfied
how can i solve this, please?

got prompt
2024-01-26 04:27:18.9442572 [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 "Z:\ComfyUI\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: Z:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-InstantID\models\antelopev2\1k3d68.onnx landmark_3d_68 ['None', 3, 192, 192] 0.0 1.0
2024-01-26 04:27:19.3800489 [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 "Z:\ComfyUI\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: Z:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-InstantID\models\antelopev2\2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0
2024-01-26 04:27:19.4384249 [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 "Z:\ComfyUI\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: Z:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-InstantID\models\antelopev2\genderage.onnx genderage ['None', 3, 96, 96] 0.0 1.0
2024-01-26 04:27:19.5679445 [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 "Z:\ComfyUI\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: Z:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-InstantID\models\antelopev2\glintr100.onnx recognition ['None', 3, 112, 112] 127.5 127.5
2024-01-26 04:27:20.0757093 [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 "Z:\ComfyUI\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: Z:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-InstantID\models\antelopev2\scrfd_10g_bnkps.onnx detection [1, 3, '?', '?'] 127.5 128.0
set det-size: (640, 640)
Z:\ComfyUI\python_embeded\Lib\site-packages\insightface\utils\transform.py:68: FutureWarning: `rcond` parameter will change to the default of machine precision times ``max(M, N)`` where M and N are the input matrix dimensions.
To use the future default and silence this warning we advise to pass `rcond=None`, to keep using the old, explicitly pass `rcond=-1`.
@udappk
Copy link

udappk commented Jan 26, 2024

I deleted antelopev2 folder and downloaded the original and pasted it there.. worked!
Downloaded from this link: deepinsight/insightface#1896 (comment)

@rbbdz
Copy link
Author

rbbdz commented Jan 26, 2024

I deleted antelopev2 folder and downloaded the original and pasted it there.. worked! Downloaded from this link: deepinsight/insightface#1896 (comment)

nope.. still getting same Fail
the generation takes around 7 minutes for 10 steps on my 3080 10gb

@udappk
Copy link

udappk commented Jan 26, 2024

#37 (comment) have you tried this..? specially STEP 5..?
I heard it takes 10-15 minutes for some but to be honest, for me it takes 6 seconds for TURBO (10 steps) and 25 seconds NON-TURBO (50steps) output 704-1280

@rbbdz
Copy link
Author

rbbdz commented Jan 26, 2024

#37 (comment) have you tried this..? specially STEP 5..? I heard it takes 10-15 minutes for some but to be honest, for me it takes 6 seconds for TURBO (10 steps) and 25 seconds NON-TURBO (50steps) output 704-1280

yes, tried this, all requirements are installed.
it is strange, in IP-Adapter workflow im getting same fail (error 126), but it works fine anyway, and fast as it should be, around 10-20 seconds for generation. Unlike InstantID

@udappk
Copy link

udappk commented Jan 26, 2024

It is strange but worth the trouble cause the results im getting are insane.. I hope you will get it solved and fixed soon!!!

@rbbdz
Copy link
Author

rbbdz commented Jan 26, 2024

Seems that i fixed this error 126, followed these steps:
danielgatis/rembg#312 (comment)
but this did not fixed the problem at all, generation time is still too long

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants