### Building Docker Image for Stable Diffusion v1.5 (Bash) Source: https://github.com/runpod-workers/worker-stable_diffusion_v1/blob/main/README.md This command builds the Docker image for the Stable Diffusion v1.5 worker. It requires two build arguments: `MODEL_URL` for the model repository URL and `MODEL_TAG` for the specific model tag, which are crucial for specifying the model to be included in the image. The resulting image is tagged as `runwayml/stable-diffusion-v1-5`. ```bash docker build --build-arg MODEL_URL=https://huggingface.co/runwayml/stable-diffusion-v1-5 --build-arg MODEL_TAG=runwayml/stable-diffusion-v1-5 -t runwayml/stable-diffusion-v1-5 . ``` -------------------------------- ### Defining Python Dependencies for Stable Diffusion Worker Source: https://github.com/runpod-workers/worker-stable_diffusion_v1/blob/main/builder/requirements.txt This snippet lists the core Python packages and their specific versions required for the RunPod Stable Diffusion v1 worker. Version locking (`==` or `~=`) is used to ensure environment stability and reproducibility. `torch` includes an extra index URL for CUDA 11.6 compatible wheels. ```Python # Required Python packages get listed here, one per line. # Reccomended to lock the version number to avoid unexpected changes. runpod~=1.7.0 diffusers==0.12.1 torch==1.13.1 --extra-index-url=https://download.pytorch.org/whl/cu116 ftfy==6.1.1 scipy==1.9.3 transformers==4.25.1 accelerate==0.14.0 xformers==0.0.16 triton==2.0.0.post1 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.