Skip to content

WindVoiceVox/stable_diffusion.openvino-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

stable_diffusion.openvino-docker

Introduction

This is a Dockerfile to use stable_diffusion.openvino1 in Docker container.

Requirements

  • Intel CPU
  • Docker

Build Docker image

docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) -t stable_diffusion:openvino .

Launch Docker container

docker run -it --rm --device /dev/dri:/dev/dri -v $HOME:$HOME stable_diffusion:openvino bash

Example

python stable_diffusion.py --prompt "Street-art painting of Emilia Clarke in style of Banksy, photorealism"

Example via streamlit

When docker run, map port 8501 for streamlit.

docker run -it --rm -p 8501:8501 stable_diffusion:openvino bash
streamlit run demo_web.py 

access http://(Your PC (not docker container) IP Address):8501

Footnotes

  1. stable_diffusion.openvino https://github.com/bes-dev/stable_diffusion.openvino

About

This is a Dockerfile to use stable_diffusion.openvino in Docker container.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%