[GH-ISSUE #36] Onnxruntime error #27

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

Originally created by @ChrisTello on GitHub (Mar 3, 2024).
Original GitHub issue: https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/issues/36

Im getting this error everytime i start A1111 but i also dont notice anything technically broken when using the AI. i havent done anything to change any links in the PATH settings. All i could think of is a recent issue with faceswaplabs which i believe also uses onnxruntime but that plugin is working.
Screenshot 2024-03-02 224244

Originally created by @ChrisTello on GitHub (Mar 3, 2024). Original GitHub issue: https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/issues/36 Im getting this error everytime i start A1111 but i also dont notice anything technically broken when using the AI. i havent done anything to change any links in the PATH settings. All i could think of is a recent issue with faceswaplabs which i believe also uses onnxruntime but that plugin is working. ![Screenshot 2024-03-02 224244](https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/assets/40412807/3863a72d-f14d-4a6f-aa1f-e22450de5412)
Author
Owner

@Nanfeng0108 commented on GitHub (Mar 12, 2024):

ConnectTimeout: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /danielgatis/rembg/releases/download/v0.0.0/u2net_human_seg.onnx (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x00000227127A43A0>, 'Connection to github.com timed out. (connect timeout=5)'))

<!-- gh-comment-id:1991413930 --> @Nanfeng0108 commented on GitHub (Mar 12, 2024): ConnectTimeout: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /danielgatis/rembg/releases/download/v0.0.0/u2net_human_seg.onnx (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x00000227127A43A0>, 'Connection to github.com timed out. (connect timeout=5)'))
Author
Owner

@Nanfeng0108 commented on GitHub (Mar 12, 2024):

image

<!-- gh-comment-id:1991415876 --> @Nanfeng0108 commented on GitHub (Mar 12, 2024): ![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/assets/79616136/c40966dd-a23b-4804-b37d-995a8ba035bb)
Author
Owner

@seancheung commented on GitHub (Apr 17, 2024):

It's because this plugin installs the CPU version of rembg. You need to replace it with the GPU version.

Try this:

pip uninstall rembg
pip install rembg[gpu] onnxruntime-gpu

Don't forget to set venv or conda env based on your installation.

<!-- gh-comment-id:2062659149 --> @seancheung commented on GitHub (Apr 17, 2024): It's because this plugin installs the CPU version of rembg. You need to replace it with the GPU version. Try this: ```bash pip uninstall rembg pip install rembg[gpu] onnxruntime-gpu ``` Don't forget to set venv or conda env based on your installation.
Author
Owner

@stanleyshek commented on GitHub (Jun 17, 2024):

I've encountered similar problem too., anyway to fix it?

Screenshot 2024-06-18 004713

<!-- gh-comment-id:2173888351 --> @stanleyshek commented on GitHub (Jun 17, 2024): I've encountered similar problem too., anyway to fix it? ![Screenshot 2024-06-18 004713](https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/assets/4930397/12562c6b-54ea-4f7e-afdd-eb0bea342d4d)
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#27
No description provided.