mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg.git
synced 2026-11-04 23:27:26 +00:00
[GH-ISSUE #5] Tensor.dll error #6
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AUTOMATIC1111/stable-diffusion-webui-rembg#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Sh4d0wHunt3rX on GitHub (Mar 16, 2023).
Original GitHub issue: https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/issues/5
I got this error:
Error completing request
Arguments: (0, <PIL.Image.Image image mode=RGB size=720x480 at 0x1E6DB78EF50>, None, '', '', True, 0, 2, 512, 512, True, 'None', 'None', 0, 0, 0, 0, 'u2net_human_seg', False, False, 240, 10, 10) {}
Traceback (most recent call last):
File "C:\Users\Amir\stable-diffusion-webui\modules\call_queue.py", line 56, in f
res = list(func(*args, **kwargs))
File "C:\Users\Amir\stable-diffusion-webui\modules\call_queue.py", line 37, in f
res = func(*args, **kwargs)
File "C:\Users\Amir\stable-diffusion-webui\modules\postprocessing.py", line 56, in run_postprocessing
scripts.scripts_postproc.run(pp, args)
File "C:\Users\Amir\stable-diffusion-webui\modules\scripts_postprocessing.py", line 130, in run
script.process(pp, **process_args)
File "C:\Users\Amir\stable-diffusion-webui\extensions\stable-diffusion-webui-rembg\scripts\postprocessing_rembg.py", line 53, in process
session=rembg.new_session(model),
File "C:\Users\Amir\stable-diffusion-webui\venv\lib\site-packages\rembg\session_factory.py", line 66, in new_session
ort.InferenceSession(
File "C:\Users\Amir\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 360, in init
self._create_inference_session(providers, provider_options, disabled_optimizers)
File "C:\Users\Amir\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 408, in _create_inference_session
sess.initialize_session(providers, provider_options, disabled_optimizers)
RuntimeError: D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1106 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "C:\Users\Amir\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll"
@VRArt1 commented on GitHub (Mar 16, 2023):
I'm also getting this error.
@tenabraex commented on GitHub (Mar 17, 2023):
yup i've got the same error (win10, 2080ti) updated my a1111, restarted a couple times
@jordanjay29 commented on GitHub (Mar 17, 2023):
Confirmed. I tried rebuilding the venv folder and ran into the same issue as this. Win 11, 3060.
@treksis commented on GitHub (Mar 18, 2023):
same here
@yuzehong1986 commented on GitHub (Mar 20, 2023):
same here
@Lait999 commented on GitHub (Mar 21, 2023):
run
pip install onnxruntime --upgrade onnxruntime==1.14on my venv worked for me. Good luck@tenabraex commented on GitHub (Mar 21, 2023):
_> run
pip install onnxruntime --upgrade onnxruntime==1.14on my venv worked for me. Good luckdidn't work for me sadly ... updated with an error (something about a pip conflict because remBG wanted 1.13) but running it again confirms it did remove 1.13 and install 1.14.
as it has always been, the file it is looking for is where it's looking for it. "D:\Github\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dl"
RuntimeError: D:\a\_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1069 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "D:\Github\stable-diffusion-webui\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll"_ah ignore all that i had to
stable-diffusion-webui\venv\Scripts> activate.ps1
first to activate the venv for a1111 first THEN run the command.
such simple things, but you have to know them to do them.
@askmenow commented on GitHub (Mar 22, 2023):
remove and rebuild venv, it works for me
@atomjke commented on GitHub (Mar 25, 2023):
this one worked for me, big thx.
for those who need more details (steps):
or run cmd in scripts folders and use same command
@Sh4d0wHunt3rX commented on GitHub (Mar 27, 2023):
Unfortunately this didn't work for me and I still get the error.
@Miraihi commented on GitHub (Mar 31, 2023):
Was able to fix it, thanks to the replies. Instruction step-by-step:
cd /d (path to webui)\venv\Scripts\activate.batpython -m pip install -U pippip install onnxruntime --upgrade onnxruntime==1.14@Sh4d0wHunt3rX commented on GitHub (Mar 31, 2023):
Thanks, but still didn't work for me, do you have any idea?
@Miraihi commented on GitHub (Mar 31, 2023):
A problem with permissions. If you're running Stable diffusion then close it.
@Sh4d0wHunt3rX commented on GitHub (Mar 31, 2023):
Thank you so much my friend, finally worked 🙏
@2blackbar commented on GitHub (Apr 10, 2023):
add it to dependencies on install so the bug wont happen
@VRArt1 commented on GitHub (Oct 10, 2023):
I'd like to confirm that deleting the venv folder and letting it rebuild fixed the error for me.