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
Docker always download models #105
Comments
I still have to read up on docker. The file was made by some one, if you want to check it and see perhaps there is something in the docker setup where it doesn't check the /u2net directory? |
Thanks, I'll try to check it, maybe I can fix it. I'll let you know. |
bump |
the issue still persist:
|
This only with docker?
…On Wed, Jan 17, 2024, 1:52 AM Stehos ***@***.***> wrote:
the issue still persist:
backgroundremover -i "./AB6-CF-8-303.jpg" -o "AB6-CF-8-303.png"
AB6-CF-8-303.png
downloading model [u2net] to /root/.u2net/u2net.pth ...
downloading part 1 of u2net
finished downloading part 1 of u2net
downloading part 2 of u2net
finished downloading part 2 of u2net
downloading part 3 of u2net
finished downloading part 3 of u2net
downloading part 4 of u2net
finished downloading part 4 of u2net
—
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABYACXDGEAYRNMMBV2ND3ITYO6GMTAVCNFSM6AAAAAA67WHKFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJVGM2TMNZVG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I wonder if the docker id not checking the U2 net folder
…On Wed, Jan 17, 2024, 2:08 AM Johnathan Nader ***@***.***> wrote:
This only with docker?
On Wed, Jan 17, 2024, 1:52 AM Stehos ***@***.***> wrote:
> the issue still persist:
>
> backgroundremover -i "./AB6-CF-8-303.jpg" -o "AB6-CF-8-303.png"
> AB6-CF-8-303.png
> downloading model [u2net] to /root/.u2net/u2net.pth ...
> downloading part 1 of u2net
> finished downloading part 1 of u2net
> downloading part 2 of u2net
> finished downloading part 2 of u2net
> downloading part 3 of u2net
> finished downloading part 3 of u2net
> downloading part 4 of u2net
> finished downloading part 4 of u2net
>
> —
> Reply to this email directly, view it on GitHub
> <#105 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABYACXDGEAYRNMMBV2ND3ITYO6GMTAVCNFSM6AAAAAA67WHKFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJVGM2TMNZVG4>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
@nadermx yes, this is via docker use on ubuntu 20.04.6. btw on macbook i was not able to start docker instance. It was stopped at:
|
You could try to mount the models to host machine. Then the models will be downloaded only once. like: |
building on the previous comment, I was able to download and mount the model to prevent the container from downloading it every time. Looking at the code, an environmental variable is first checked for the existance of a path to the model I was already mounting a local volume into the container and just moved the model to my current directory before mounting. Downloaded model from here My full command where I reference the path to my downloaded model in environmental variable. "U2NETP_PATH" would need to be changed to the model you are using. Reference code above.
It didn't save me a lot of time in processing speed, as the model sizes are pretty small to download and I have a decent internet speed, but the output no longer shows messages of having to download the model every time. |
I'm following the exact commands, but every call to the container is downloading the models. Not sure why.
The text was updated successfully, but these errors were encountered: