Giter VIP home page Giter VIP logo

Comments (4)

AbdBarho avatar AbdBarho commented on May 12, 2024 2

@Niek sounds like a cool idea! I will give it a look in the evening and come back to you.

from stable-diffusion-webui-docker.

AbdBarho avatar AbdBarho commented on May 12, 2024

@Niek I have some questions, and I would like to hear your opinion.

I was wondering how would that work with the model weights. I can put the weights into the docker image, but I question the legality of this approach.

I am considering moving the download of models to the CMD or ENTRYPOINT of the dockerfile, but this defeats the purpose of publishing a docker image, because if the links break, the image is useless...

Do you have any ideas / suggestions?

from stable-diffusion-webui-docker.

Niek avatar Niek commented on May 12, 2024

@AbdBarho You have a volume mount for the models - what you could do is add a small check in CMD where you point users to the model download URL if no model is found and exit 1. It would be nice to automate that but as said that's probably not very legal.

from stable-diffusion-webui-docker.

gadicc avatar gadicc commented on May 12, 2024

Hey all. I'm using https://github.com/bananaml/serverless-template-stable-diffusion in another project, and they retrieve the model through a HuggingFace API key that you place in the Dockerfile (which in our case, we could provide via an environment variable on the command line, and do in the ENTRYPOINT, as you say). They explain the process quite nicely in the README, and have a download.py file there.

from stable-diffusion-webui-docker.

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.