Stable Diffusion based on OpenVINO
455
A Docker command line utility to generate images based on Stable Diffusion.
This Docker project is aimed at lower end computers that do not have access to a powerful graphics card (GPU) required for faster image generate. It is instead based on the OpenVINO toolkit that will work with Intel CPUs . This approach is slower than using a GPU and if you have a graphics card that can run Stable Diffusion then a different project will better suit your needs. The goal of this project is to enable image generation on lower performance computing hardware.
This is a Docker project and requires Docker to be installed on your computer. In addition, the Docker image is very large at around 9GB in size. However, it contains all of the required dependencies and model files to run Stable Diffusion. No other dependencies are required.
This Docker image packages the bes-dev/stable_diffusion.openvino project and would not be possible without this project. Thanks to the developer bes-dev for creating this open source project.
To generate an image based on a prompt we can use the --prompt command. The following example will create an image of "kittens":
touch image.png
docker run --rm -v $PWD:/stable_diffusion.openvino/output -ti stable-diffusion-openvino:latest --output output/image.png --prompt "kittens"
Note; the Docker project runs as root for the moment and so the generated file will be owned by root. We are pre-creating the target file to avoid this issue.
We can use the --num-inference-steps command to control the number of iterations that will be used to create the image. More iterations will take more time, but will result in a more refined image.
touch image.png
docker run --rm -v $PWD:/stable_diffusion.openvino/output -ti stable-diffusion-openvino:latest --output output/image.png --num-inference-steps 50 --prompt "kittens"
This project is licensed under Apache 2.0.
Use of this project is bound by the same restrictions as the original Stable Diffusion license.
You agree not to use the Model or Derivatives of the Model:
Content type
Image
Digest
sha256:1d9db56ab…
Size
6.2 GB
Last updated
about 4 years ago
docker pull gencore/stable-diffusion-openvino