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

[feat] Docker Support #151

Open
soulteary opened this issue Feb 23, 2023 · 5 comments
Open

[feat] Docker Support #151

soulteary opened this issue Feb 23, 2023 · 5 comments

Comments

@soulteary
Copy link

Hi maintainer @lllyasviel 🐱

There are too many feedbacks about running problems due to environmental reasons in the project, maybe there should be a stable Docker image(s)?

If necessary, I can provide some basic templates, including traditional gpu or coreml env.

// Played this project for a few days, it is still very interesting. Hope the project is getting better and better. 🍻

@belyak
Copy link

belyak commented Feb 23, 2023

+1

@tqcq
Copy link

tqcq commented Mar 6, 2023

I look forward to this feature.

@SamSamhuns
Copy link

I've set up a PR for this at #256.

Did an example run with the scribble generation. You guys can test it out.

Screenshot 2023-03-10 at 4 57 30 PM

@Utopiah
Copy link

Utopiah commented Mar 10, 2023

I've set up a PR for this at #256.

Thanks for that, any rough indication on minimum or recommended specifications e.g min 2080 or 8G VRAM?

Also could "after models have been downloaded to ControlNet/models." become another script? Eventually if no model detected then download automatically on a an optionally mounted directory? (to avoid redownload)

@SamSamhuns
Copy link

SamSamhuns commented Mar 10, 2023

8G VRAM was not enough for me. Needed like 10GBs for running the scribble-to-image script.

When the docker builds, the models are not copied directly into the image since these models are so big.

They are volume-mounted with docker run if you check the run_docker.sh script.

docker run \
      -ti --rm \
      -p "0.0.0.0:$port:7860" \
      -v "$PWD/models:/home/user1/models" \
      --gpus "device=0" \
      --name "$def_cont_name" \
      controlnet:latest

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

5 participants