bes-dev / stable_diffusion.openvino

Apache License 2.0
1.53k stars 208 forks source link

add Dockerfile and docker-compose configuration #16

Closed impca closed 1 year ago

impca commented 1 year ago

fixes bes-dev/stable_diffusion.openvino#13

How to use:

docker-compose build
docker-compose run stable diffusion -h
docker-compose run stable-diffusion --prompt "whatever..." --output /tmp/output/space.jpeg

Note that models are downloaded and saved to the docker image (Dockerfile, line 16) so the resulting docker image is quite large.

It would be possible to remove this line and uncomment l. 8 in docker-compose.yaml instead, then models will be downloaded to /tmp/cache on host machine instead.

impca commented 1 year ago

Yeah, it needs more changes after the recent commits to master.

bes-dev commented 1 year ago

Thanks for your contribution! great stuff! 👍

zackees commented 1 year ago

Just fyi this doesn't seem to work on my local windows 10 machine.

docker-compose build
docker-compose run stable diffusion -h
--> no such service: stable