basujindal / stable-diffusion

Optimized Stable Diffusion modified to run on lower GPU VRAM
Other
3.14k stars 467 forks source link

Docker image customization and minification #223

Closed JeffersonGibin closed 1 year ago

JeffersonGibin commented 1 year ago

Docker image customization and minification

Hello everyone, I made some improvements to Dockerfile and docker-compose, I hope it will be helpful in the community.

What was improved?

How to use execution customization?

docker-compose up --build
docker build --tag newimage --build-arg OPTIMIZED_FILE=optimized_img2img.py .

What was not improved?

Wrong: to ensure that the tests do not have side effects, please remove container and docker images related to the project.

Ideas to improve build time in the future

basujindal commented 1 year ago

Hi Jefferson, thank you for the changes, it is very helpful!