-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
u2net file download failed #39
Comments
I know , the file name should be modified u2net.pth ---> u2net,u2netp.pth ---> u2netp,it will work |
I cannot get rembg to work.. Running Manjaro, python 3.10 and get the following: rembg -p test test2 |
try download these files by yourself: |
Tried that. Downloaded them to /home//.u2net Gave the same error, but I noticed that it TRIED to download u2net.pth and overwrote the file that I downloaded. It is quite a bit smaller than the one I downloaded. rembg -p test test2 |
Don't know what the difference is, but I tried it on Linux Mint 20.3 and it worked as is.. It gave the above errors in Manjaro.. |
try to update the rembg and keep only the |
I did notice when I was running pip on manjaro vs linux mint. pip --version ~/.local/bin/rembg --version And yet, when I run the same on Linux Mint: pip --version ~/.local/bin/rembg --version They are different versions, and use different commands to work, so I am not sure what is going on. |
first time run rembg command, console error as follows
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='docs.google.com', port=443): Max retries exceeded with url: /uc?export=download&id=1ao1ovG1Qtx4b7EoskHXmi2E9rp5CHLcZ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f74927be700>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
but I have manual downloaded u2net.pth and u2netp.pth file, put these to /root/.u2net dir,but it does not work, console also error
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='docs.google.com', port=443): Max retries exceeded with url: /uc?export=download&id=1ao1ovG1Qtx4b7EoskHXmi2E9rp5CHLcZ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f74927be700>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
The text was updated successfully, but these errors were encountered: