[GH-ISSUE #12] 提示加载onnxruntime_providers_tensorrt.dll错误 #11

Open
opened 2026-10-30 21:08:19 +00:00 by bsakaguchi · 6 comments
Owner

Originally created by @cslvfeng on GitHub (Apr 2, 2023).
Original GitHub issue: https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/issues/12

image

Originally created by @cslvfeng on GitHub (Apr 2, 2023). Original GitHub issue: https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/issues/12 ![image](https://user-images.githubusercontent.com/63102579/229370232-389d55b1-9d62-49dc-b989-bf778d5e7e2b.png)
Author
Owner

@spaciousmind commented on GitHub (Apr 3, 2023):

nevermind, I think this is the same issue as was here: https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/issues/5
I fixed it by following the instructions at the bottom

  1. Open cmd
  2. cd /d (path to webui)\venv\Scripts\
  3. activate.bat
  4. python -m pip install -U pip
  5. pip install onnxruntime --upgrade onnxruntime==1.14
<!-- gh-comment-id:1493480422 --> @spaciousmind commented on GitHub (Apr 3, 2023): nevermind, I think this is the same issue as was here: https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/issues/5 I fixed it by following the instructions at the bottom 1. Open cmd 2. cd /d (path to webui)\venv\Scripts\ 3. activate.bat 4. python -m pip install -U pip 5. pip install onnxruntime --upgrade onnxruntime==1.14
Author
Owner

@ifimcyx commented on GitHub (Apr 7, 2023):

我用的整合包,也是这个错误,你解决了吗

<!-- gh-comment-id:1500181993 --> @ifimcyx commented on GitHub (Apr 7, 2023): 我用的整合包,也是这个错误,你解决了吗
Author
Owner

@2blackbar commented on GitHub (Apr 10, 2023):

this onnxruntime pip solve doesnt work, throws out errors, this should be fixed so it doesnt happen when you install fresh

<!-- gh-comment-id:1501371393 --> @2blackbar commented on GitHub (Apr 10, 2023): this onnxruntime pip solve doesnt work, throws out errors, this should be fixed so it doesnt happen when you install fresh
Author
Owner

@RMiTiG commented on GitHub (May 30, 2023):

nevermind, I think this is the same issue as was here: #5 I fixed it by following the instructions at the bottom

  1. Open cmd
  2. cd /d (path to webui)\venv\Scripts\
  3. activate.bat
  4. python -m pip install -U pip
  5. pip install onnxruntime --upgrade onnxruntime==1.14

We also need to choose the appropriate onnxruntime version.
Check your cuda version: nvcc -V
Choose onnxruntime according to your cuda version on this site

<!-- gh-comment-id:1567709254 --> @RMiTiG commented on GitHub (May 30, 2023): > nevermind, I think this is the same issue as was here: #5 I fixed it by following the instructions at the bottom > > 1. Open cmd > 2. cd /d (path to webui)\venv\Scripts\ > 3. activate.bat > 4. python -m pip install -U pip > 5. pip install onnxruntime --upgrade onnxruntime==1.14 We also need to choose the appropriate onnxruntime version. Check your cuda version: nvcc -V Choose onnxruntime according to your cuda version on this [site](https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements)
Author
Owner

@TheWorldIsOur commented on GitHub (Jun 7, 2023):

how to even to this precisly? i need a more precise tutorial please

<!-- gh-comment-id:1581351517 --> @TheWorldIsOur commented on GitHub (Jun 7, 2023): how to even to this precisly? i need a more precise tutorial please
Author
Owner

@CycloneRing commented on GitHub (Nov 1, 2023):

this happens for me on version 1.16.1

Name: onnxruntime
Version: 1.16.1
Summary: ONNX Runtime is a runtime accelerator for Machine Learning models
Home-page: https://onnxruntime.ai
Author: Microsoft Corporation
Author-email: onnxruntime@microsoft.com
License: MIT License
Location: c:\stablediffusion\system\python\lib\site-packages
Requires: coloredlogs, flatbuffers, numpy, packaging, protobuf, sympy
Required-by: rembg

However I get result in WebUI

<!-- gh-comment-id:1788226262 --> @CycloneRing commented on GitHub (Nov 1, 2023): this happens for me on version 1.16.1 > Name: onnxruntime Version: 1.16.1 Summary: ONNX Runtime is a runtime accelerator for Machine Learning models Home-page: https://onnxruntime.ai Author: Microsoft Corporation Author-email: onnxruntime@microsoft.com License: MIT License Location: c:\stablediffusion\system\python\lib\site-packages Requires: coloredlogs, flatbuffers, numpy, packaging, protobuf, sympy Required-by: rembg However I get result in WebUI
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AUTOMATIC1111/stable-diffusion-webui-rembg#11
No description provided.