ComfyUI_InstantID icon indicating copy to clipboard operation
ComfyUI_InstantID copied to clipboard

Could not find a version that satisfies the requirement onnxruntime-gpu

Open 6174 opened this issue 1 year ago • 1 comments

Device & OS: Mac osx M1 14.0 (23A344)

requirements.txt include onnxruntime-gpu, but in mac can't install this dependence.

pip3 install onnxruntime-gpu
ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu (from versions: none)
ERROR: No matching distribution found for onnxruntime-gpu

6174 avatar Feb 21 '24 16:02 6174

it should work without it

cubiq avatar Feb 21 '24 16:02 cubiq

For "onnx" with "cuda" support (nvidia cards):

(pip3) pip install onnxruntime-gpu --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/

(But I don't understand why it's needed...)

Nestorchik avatar Mar 11 '24 09:03 Nestorchik

onnxruntime

 File "D:\ComfyUI\ComfyUI\nodes.py", line 1864, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "D:\ComfyUI\ComfyUI\custom_nodes\ComfyUI_InstantID\__init__.py", line 1, in <module>
    from .InstantID import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "D:\ComfyUI\ComfyUI\custom_nodes\ComfyUI_InstantID\InstantID.py", line 13, in <module>
    from insightface.app import FaceAnalysis
  File "D:\ComfyUI\python_embeded\Lib\site-packages\insightface\__init__.py", line 16, in <module>
    from . import model_zoo
  File "D:\ComfyUI\python_embeded\Lib\site-packages\insightface\model_zoo\__init__.py", line 1, in <module>
    from .model_zoo import get_model
  File "D:\ComfyUI\python_embeded\Lib\site-packages\insightface\model_zoo\model_zoo.py", line 22, in <module>
    class PickableInferenceSession(onnxruntime.InferenceSession):
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'onnxruntime' has no attribute 'InferenceSession'

Cannot import D:\ComfyUI\ComfyUI\custom_nodes\ComfyUI_InstantID module for custom nodes: module 'onnxruntime' has no attribute 'InferenceSession'

It seems onnxruntime-gpu doesn't work.

wangfeng35 avatar Apr 14 '24 14:04 wangfeng35