Comments (13)
OK, I've found the solution. I should download these ONNX files instead, after reading the rembg/detect.py
u2net: https://drive.google.com/uc?id=1tCU5MM1LhRgGou5OpmpjBQbSrYIUoYab
u2netp: https://drive.google.com/uc?id=1tNuFmLv0TSNDjYIkjEdeH1IWKQdUA4HR
u2net_human_seg: https://drive.google.com/uc?id=1ZfqwVxu-1XWC1xU1GHIP-FM_Knd_AX5j
from rembg.
I had the same problem
from rembg.
I only know that when a crawler encounters such a problem, you can add [verify = False] after the request, but I don’t know how to do it here
from rembg.
if you can not access google, please download from baiduyun:
url :https://pan.baidu.com/s/1IJOZiELPL9KJ8andi9fpyA,code:lgug
copy to folder ~/.u2net
from rembg.
Download the models:
https://drive.google.com/file/d/1ao1ovG1Qtx4b7EoskHXmi2E9rp5CHLcZ/view?usp=sharing (u2net.pth)
https://drive.google.com/file/d/1rbSTGKAE-MTxBYHd-51l2hMOQPT_7EPy/view?usp=sharing (u2netp.pth)
and copy to folder ~/.u2net
. ~/.u2net
|-- u2net.pth
|-- u2netp.pth
from rembg.
from rembg.
from rembg.
from rembg.
if you can not access google, please download from baiduyun:
url :https://pan.baidu.com/s/1IJOZiELPL9KJ8andi9fpyA,code:lgugcopy to folder ~/.u2net
invalid code
from rembg.
from rembg.
share on baiduyun
https://pan.baidu.com/s/1OjAw-SmGmUX5W2CVuRxSLQ
a2rn
from rembg.
Download the models:
https://drive.google.com/file/d/1ao1ovG1Qtx4b7EoskHXmi2E9rp5CHLcZ/view?usp=sharing (u2net.pth) https://drive.google.com/file/d/1rbSTGKAE-MTxBYHd-51l2hMOQPT_7EPy/view?usp=sharing (u2netp.pth)
and copy to folder ~/.u2net
. ~/.u2net |-- u2net.pth |-- u2netp.pth
I've done what you said, but I still get this error:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='drive.google.com', port=443): Max retries exceeded with url: /uc?id=1tCU5MM1LhRgGou5OpmpjBQbSrYIUoYab (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f709ae2fc70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
from rembg.
a2rn
and
u2net_cloth_seg: https://drive.google.com/uc?id=15rKbQSXQzrKCQurUjZFg8HqzZad8bcyz
from rembg.
Related Issues (20)
- Delete the background, still shadow, how should the shadow be removed[FEATURE] ... HOT 2
- [BUG] DeprecationWarning: concurrency_count has been deprecated when starting Web UI (rembg s) HOT 3
- [BUG] When alpha_matting is enabled, the processing speed is very slow. HOT 2
- [BUG] '{}' is not of type 'array' when using sam model. HOT 4
- Accuracy loss problem under onnx model HOT 2
- How I can remove all white background from image HOT 4
- [BUG] rembg connects to the internet HOT 1
- [BUG] The build with build-exe was successful, but an error was reported when running HOT 2
- Inflates file size HOT 2
- [BUG] ... Need a requirements.txt file to upgrade numba or else code will not compile. HOT 2
- Python 3.12 compatibility HOT 3
- [BUG] Failed to achieve varied output results with different inputs using SAM model HOT 1
- [BUG] ... build Exe cuts portion of images off HOT 2
- sam prompting issue. Couldn't even replicate the examples HOT 10
- Voice Clone Training stopped unexpectedly, model not saved
- [FEATURE] add Apple Silicon / MPS support to this project. HOT 11
- Usage on mobile device , HOT 2
- MacOS: Port 5000 is used by Airplay (!$*@)#), cannot use the server on MacOS HOT 2
- [FEATURE] Support for CartoonSegmentation model HOT 2
- [QUALITY] The results are different between rembg cli and rembg with new section HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rembg.