No module named 'onnxruntime' but its installed? #6067
Replies: 2 comments 2 replies
-
I think you need to install onnxruntime with a different command, since you've installed pytorch with Cuda 11.8: https://onnxruntime.ai/docs/install/#install-onnx-runtime-gpu-cuda-11x |
Beta Was this translation helpful? Give feedback.
-
thanks i tried your link in terminal (after using the venv command) when that didn't work just into terminal without venv (myenv) $ pip install flatbuffers numpy packaging protobuf sympy but same issue both times: RemBGSession+ thank for the suggestion tho |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am very new Linux mint; so far have been able to install StableSwarmUI and generate few pics using cuda on 3060ti
I realized to work with 3d models I should using the workflows tab – I am amazed how intuitive as software StableSwarmUI and ComfyUI are :)
I installed the package manger to workflow
this is where I encounter problems when i run workflow and node - RemBGSession
i get following error:
RemBGSession+
No module named 'onnxruntime'
My first thought was i need to get onnxruntime
pip install torch==2.0.1+cu118 torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118
pip install --upgrade onnxruntime-gpu
pip install rembg
I run again same error message?
I have tried ask AI i got this:
pip uninstall torch torchvision torchaudio onnxruntime-gpu -y
Reinstall PyTorch with CUDA support (make sure to match versions)
pip install torch==2.1.1+cu118 torchvision==0.16.1+cu118 torchaudio==2.1.1+cu118 -f https://download.pytorch.org/whl/torch_stable.html
Then reinstall ONNX Runtime again.
pip install onnxruntime-gpu==1.14.0
finally i tried:
pip install --upgrade onnxruntime-gpu
same issue
RemBGSession+
No module named 'onnxruntime'
I really want try different workflows on comfy I have seen…
I cant resolve this issue after 5+ hours I need help, I don’t get python or how I have seemingly installed what was requested yet its not being seen?
Any help would be really appreciated, please remember I was total newbie (I am trying to learn this)
System Information
Devices
/StableSwarmUI/dlbackend/ComfyUI/execution.py", line 328, in execute
22:19:45.445 [Warning] ComfyUI-0 on port 7821 stderr: output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
22:19:45.445 [Warning] ComfyUI-0 on port 7821 stderr: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Beta Was this translation helpful? Give feedback.
All reactions