WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
951 stars 144 forks source link

Remove Background #320

Open magimyster opened 6 months ago

magimyster commented 6 months ago

If I use 'remove background,' I get this error:... (I'm not working with the GPU but only with the CPU... Is it possible to make it work anyway, even just with the CPU?)

Error occurred when executing Image Rembg (Remove Background):

D:\a_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:121 onnxruntime::CudaCall D:\a_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:114 onnxruntime::CudaCall CUDA failure 35: CUDA driver version is insufficient for CUDA runtime version ; GPU=-1788270792 ; file=D:\a_work\1\s\onnxruntime\core\providers\cuda\cuda_executionprovider.cc ; line=236 ; expr=cudaSetDevice(info.device_id);

File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 154, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 84, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 77, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) File "C:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 5822, in image_rembg session=new_session(model), File "C:\AI\ComfyUI_windows_portable\python_embeded\lib\site-packages\rembg\session_factory.py", line 44, in new_session return session_class(model_name, sess_opts, providers, args, **kwargs) File "C:\AI\ComfyUI_windows_portable\python_embeded\lib\site-packages\rembg\sessions\base.py", line 34, in init self.inner_session = ort.InferenceSession( File "C:\AI\ComfyUI_windows_portable\python_embeded\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 430, in init raise fallback_error from e File "C:\AI\ComfyUI_windows_portable\python_embeded\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 425, in init self._create_inference_session(self._fallback_providers, None) File "C:\AI\ComfyUI_windows_portable\python_embeded\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 463, in _create_inference_session sess.initialize_session(providers, provider_options, disabled_optimizers)

thx

WASasquatch commented 6 months ago

Install non GPU version of rembg.

On Fri, Jan 5, 2024, 8:10 AM magimyster @.***> wrote:

If I use 'remove background,' I get this error:... (I'm not working with the GPU but only with the CPU... Is it possible to make it work anyway, even just with the CPU?)

Error occurred when executing Image Rembg (Remove Background):

D:\a_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:121 onnxruntime::CudaCall D:\a_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:114 onnxruntime::CudaCall CUDA failure 35: CUDA driver version is insufficient for CUDA runtime version ; GPU=-1788270792 ; hostname=DESKTOP-D9CSUIO ; file=D:\a_work\1\s\onnxruntime\core\providers\cuda\cuda_executionprovider.cc ; line=236 ; expr=cudaSetDevice(info.device_id);

File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 154, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 84, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 77, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) File "C:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 5822, in image_rembg session=new_session(model), File "C:\AI\ComfyUI_windows_portable\python_embeded\lib\site-packages\rembg\session_factory.py", line 44, in new_session return session_class(model_name, sess_opts, providers, args, *kwargs) File "C:\AI\ComfyUI_windows_portable\python_embeded\lib\site-packages\rembg\sessions\base.py", line 34, in init self.inner_session = ort.InferenceSession( File "C:\AI\ComfyUI_windows_portable\python_embeded\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 430, in init raise fallback_error from e File "C:\AI\ComfyUI_windows_portable\python_embeded\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 425, in init* self._create_inference_session(self._fallback_providers, None) File "C:\AI\ComfyUI_windows_portable\python_embeded\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 463, in _create_inference_session sess.initialize_session(providers, provider_options, disabled_optimizers)

thx

— Reply to this email directly, view it on GitHub https://github.com/WASasquatch/was-node-suite-comfyui/issues/320, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIZEZNVX7OPXCILRZOZMZ3YNAQZFAVCNFSM6AAAAABBOUNVP6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3DONRRGQ4TENQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>