WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.23k stars 178 forks source link

Background removal functions but throws multiple exceptions #321

Closed stephantual closed 10 months ago

stephantual commented 11 months ago

Win 11, comfy UI latest (portable).

Take one single image, resize it to SDXL acceptable ratios, pass it to was bg remover, gets:


got prompt
EP Error 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 "C:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll"
 when using ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider']
Falling back to ['CUDAExecutionProvider', 'CPUExecutionProvider'] and retrying.
2024-01-05 19:49:34.1089549 [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 "C:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"

2024-01-05 19:49:34.1177715 [W:onnxruntime:Default, onnxruntime_pybind_state.cc:747 onnxruntime::python::CreateExecutionProviderInstance] Failed to create CUDAExecutionProvider. Please reference https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements to ensure all dependencies are met.
Prompt executed in 2.91 seconds

This can be repeated even after a server reboot and a reinstall of WAS using comfy manager at the time of post.

If there is something I can do to help fix this, I'd be more than happy to.

Thank you!

WASasquatch commented 11 months ago

Do you not have CUDA? The requirements install rembg[gpu] which is for CUDA. You need just rembg for CPU and other devices I believe.

stephantual commented 10 months ago

That is odd. Evidently I have cuda and torch installed, but they were not manually installed - specifically, Torch version: 2.1.2+cu121 . Are you saying there's some sort of manual dependency required for the WAS nodes when using comfy manager to install them?

Thank you.

WASasquatch commented 10 months ago

It installs rembg which should install CPU version. So why it's throwing cuda errors is interesting. But if it is trying to use CUDA you need to install rembg[gpu]

stephantual commented 10 months ago

ok I tell you what, i'll make your life a bit easier and close this (people can still search for it) - and i'll comment back when i get my new rig in a few days with a full manual install of everything so there can be no doubt I didn't mess anything up. Thank you! I appreciate your help!