Skip to content
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

rembg boots up too slow #736

Open
catscarlet opened this issue Mar 6, 2025 · 0 comments
Open

rembg boots up too slow #736

catscarlet opened this issue Mar 6, 2025 · 0 comments

Comments

@catscarlet
Copy link
Contributor

It boots up too slow.
It costs more than 30 seconds to just show version or help.
It only cost a few more seconds to finish the real job within GPU. Most of the time is booting up.

I'm not familiar python so I don't know how to optimize it.

:~$ time sudo docker run danielgatis/rembg --version
rembg, version 0+unknown

real	0m35.906s
user	0m0.002s
sys	0m0.007s
:~$ time sudo docker run danielgatis/rembg --help
Usage: rembg [OPTIONS] COMMAND [ARGS]...

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  b  for a byte stream as input
  d  download all models
  i  for a file as input
  p  for a folder as input
  s  for a http server

real	0m30.840s
user	0m0.002s
sys	0m0.006s

Anything can be done to speed up booting up it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant