Skip to content

Commit

Permalink
Specify ONNX Runtime for CUDA 12.x
Browse files Browse the repository at this point in the history
  • Loading branch information
YanWenKun committed Feb 26, 2024
1 parent 081fcb9 commit c78aa57
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ RUN --mount=type=cache,target=/root/.cache/pip \
--index-url https://download.pytorch.org/whl/cu121 \
--extra-index-url https://pypi.org/simple

# Install ONNX Runtime(ORT) for CUDA 12.x
# ORT is used by DWPose from controlnet_aux. But current PyPI version of ORT only supports CUDA 11.8.
# This fix should be removed when ORT finished upgrade.
# https://onnxruntime.ai/docs/install/
# https://github.com/Fannovel16/comfyui_controlnet_aux/issues/75
RUN --mount=type=cache,target=/root/.cache/pip \
pip install --break-system-packages \
onnxruntime-gpu \
--extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/

# Dependencies for: ComfyUI,
# InstantID, ControlNet Auxiliary Preprocessors,
# ComfyUI-Manager, Inspire-Pack, Impact-Pack, "Essentials", Efficiency Nodes, Crystools
Expand Down

0 comments on commit c78aa57

Please sign in to comment.