Coder Social home page Coder Social logo

Comments (12)

gtntdev avatar gtntdev commented on August 19, 2024 3

A first version of the docker variant is available here.
I added a first version of documentation in the README.
My problem is with the image size (torch, torchvision and torchaudio take up 2.5GB of the whole 3GB image, don't know if I can get this smaller).
Will improve the docs this week and clean up commits and so on before the PR.
@nadermx please let me know if you want to have any basic changes.
Ofcourse you will have to sign up with docker.hub yourself but I'll provide you with the official guide and a short video what to change in my github actions (it's just about a few minutes to get this working with good instructions)

from backgroundremover.

nadermx avatar nadermx commented on August 19, 2024 1

You can add it. Ill merge it in, make sure its documented well. I dont know much about docker as I use ansible for all deployment needs. The 0kb issue is with the file naming between version of ubuntu and windows apparently with /n/r and the /tmp directory. Shouldnt be hard to fix. Ill try to actually get to it this week.

from backgroundremover.

gtntdev avatar gtntdev commented on August 19, 2024 1

Hi @eevmanu , these two Dockerfiles basically do the same things, and they both produce images way to large. There is an approach to decrease the size: multi-stage building. E.g. first you install all depencies as static librarys and compile your programm into binaries. Second you move your static output to a new image to get rid of all the overhead which was needed during the initial building process. However this only works out with compiled programming languages, since python is interpreted this is just not possible. I once read a bit about optimizing container in size but then stoped as I didn't get a feedback and the existing solution worked for me. But we should come up with some similar efficient strategy to improve the image size. Give me a few more days and I will come back to you (hopefully with a good approach - any hint is welcome:))
Best regards,
Lukas

from backgroundremover.

benperiton avatar benperiton commented on August 19, 2024 1

Yea, mine was just to test this out - not really for any serious use - someone on HN asked me to share it, so I chucked it up.
Although for my intended use case, 5GB is nothing (storage is cheap)

from backgroundremover.

nadermx avatar nadermx commented on August 19, 2024

If you want to try the new version, finally got around to fixing the 0kb issue in none linux I believe. pip install --upgrade backgroundremover

from backgroundremover.

eevmanu avatar eevmanu commented on August 19, 2024

another recent (and good 👌) dockerfile + compose yaml file alternative https://gist.github.com/benperiton/2d37ea18377a80f9b9768522d08a4253

from backgroundremover.

gtntdev avatar gtntdev commented on August 19, 2024

Same with me. I had to learn it the hard way, that installing these kind of images e.g. on a RPi is quite painful if they're not optimized. Just had a quick search and I guess we can get a "good enough" dockerization. Just let my apply those techniques and then I'll report back.

from backgroundremover.

nadermx avatar nadermx commented on August 19, 2024

Okay, so just to clarify as I have never used Docker (ansible type of guy). I just go to docker, make an account and you then make a pull request with this, or I put it in?

from backgroundremover.

nadermx avatar nadermx commented on August 19, 2024

Okay, progress on this, https://hub.docker.com/r/nadermx/backgroundremover If some one wants to make a PR to this repo with the file, I think then I can push it to docker? I can find a tutorial, or some one has a quick one would be helpful

from backgroundremover.

gtntdev avatar gtntdev commented on August 19, 2024

Hi @nadermx , here is a quick guide to get you started. Actually you just need to create an api token for the repo and can leave out all the rest. I'll provide you with the github workflow action where you only will have to fill in the creds. Please give me till the end of this week, to get a reasonable Dockerfile including all new commits and testing.
Best,
Lukas

from backgroundremover.

nadermx avatar nadermx commented on August 19, 2024

Awesome, token made. If you want I can make you a collaborator on the Docker

from backgroundremover.

nadermx avatar nadermx commented on August 19, 2024

Closed in d3c65a5

from backgroundremover.

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.