GithubHelp home page GithubHelp logo

Comments (13)

zhliuworks avatar zhliuworks commented on August 18, 2024 2

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.

gitstudy007 avatar gitstudy007 commented on August 18, 2024

I had the same problem

from rembg.

anlondon avatar anlondon commented on August 18, 2024

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.

dataorz avatar dataorz commented on August 18, 2024

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.

danielgatis avatar danielgatis commented on August 18, 2024

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.

anlondon avatar anlondon commented on August 18, 2024

from rembg.

danielgatis avatar danielgatis commented on August 18, 2024

from rembg.

anlondon avatar anlondon commented on August 18, 2024

from rembg.

yuanyanhui avatar yuanyanhui commented on August 18, 2024

if you can not access google, please download from baiduyun:
url :https://pan.baidu.com/s/1IJOZiELPL9KJ8andi9fpyA,code:lgug

copy to folder ~/.u2net

invalid code

from rembg.

anlondon avatar anlondon commented on August 18, 2024

from rembg.

firesh avatar firesh commented on August 18, 2024

share on baiduyun
https://pan.baidu.com/s/1OjAw-SmGmUX5W2CVuRxSLQ
a2rn

from rembg.

zhliuworks avatar zhliuworks commented on August 18, 2024

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.

constantine008 avatar constantine008 commented on August 18, 2024

a2rn

and
u2net_cloth_seg: https://drive.google.com/uc?id=15rKbQSXQzrKCQurUjZFg8HqzZad8bcyz

from rembg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.