### Install Core Dependencies for Stable Diffusion WebUI on Linux Source: https://github.com/automatic1111/stable-diffusion-webui/blob/master/README.md This snippet provides commands to install essential packages like wget, git, and python3 across various Debian, Red Hat, openSUSE, and Arch-based Linux distributions. These dependencies are crucial for setting up and running the Stable Diffusion WebUI environment. ```bash # Debian-based: sudo apt install wget git python3 python3-venv libgl1 libglib2.0-0 # Red Hat-based: sudo dnf install wget git python3 gperftools-libs libglvnd-glx # openSUSE-based: sudo zypper install wget git python3 libtcmalloc4 libglvnd # Arch-based: sudo pacman -S wget git python3 ``` -------------------------------- ### Download or Clone Stable Diffusion WebUI on Linux Source: https://github.com/automatic1111/stable-diffusion-webui/blob/master/README.md This snippet provides two alternative methods to obtain the Stable Diffusion WebUI repository on Linux: either by downloading the `webui.sh` script directly for an automated setup or by cloning the entire repository using Git for a complete local copy. ```bash wget -q https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh ``` ```bash git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui ``` -------------------------------- ### Clone Stable Diffusion WebUI Repository on Windows Source: https://github.com/automatic1111/stable-diffusion-webui/blob/master/README.md This command downloads the stable-diffusion-webui repository to your local machine using Git. It is a fundamental step for the automatic installation method on Windows, providing all necessary project files. ```bash git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git ``` -------------------------------- ### Install Specific Python Versions for Stable Diffusion WebUI on Linux Source: https://github.com/automatic1111/stable-diffusion-webui/blob/master/README.md Commands to install specific Python versions (3.10 or 3.11) on Ubuntu, Manjaro, and Arch Linux. These versions might be necessary for compatibility with torch or other project dependencies. It also includes instructions for setting environment variables to specify the Python command. ```bash # Ubuntu 24.04 sudo add-apt-repository ppa:deadsnakes/ppa sudo apt update sudo apt install python3.11 # Manjaro/Arch sudo pacman -S yay yay -S python311 # do not confuse with python3.11 package # Only for 3.11 # Then set up env variable in launch script export python_cmd="python3.11" # or in webui-user.sh python_cmd="python3.11" ``` -------------------------------- ### Python Package Dependencies for Stable Diffusion WebUI Source: https://github.com/automatic1111/stable-diffusion-webui/blob/master/requirements.txt This snippet provides the complete list of Python packages and their specified versions that are required to run the Automatic1111 Stable Diffusion WebUI project. These dependencies are typically installed using pip from a `requirements.txt` file to ensure all necessary libraries are present for the application to function correctly. ```Python GitPython Pillow accelerate blendmodes clean-fid diskcache einops facexlib fastapi>=0.90.1 gradio==3.41.2 inflection jsonmerge kornia lark numpy omegaconf open-clip-torch piexif protobuf==3.20.0 psutil pytorch_lightning requests resize-right safetensors scikit-image>=0.19 tomesd torch torchdiffeq torchsde transformers==4.30.2 pillow-avif-plugin==1.4.3 ``` -------------------------------- ### Apply Apache License 2.0 Boilerplate to Your Work Source: https://github.com/automatic1111/stable-diffusion-webui/blob/master/html/licenses.html This snippet provides the standard boilerplate notice for applying the Apache License, Version 2.0 to your work. Replace the bracketed fields with your specific identifying information. The text should be enclosed in the appropriate comment syntax for the file format. ```Text Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ``` -------------------------------- ### Common Prompt Templates for Stable Diffusion Image Generation Source: https://github.com/automatic1111/stable-diffusion-webui/blob/master/textual_inversion_templates/subject_filewords.txt This collection provides a variety of prompt structures to generate diverse images using Stable Diffusion. Each template includes placeholders for a subject's name ([name]) and additional descriptive keywords ([filewords]), allowing for flexible and detailed image generation. These templates cover different angles, lighting conditions, and qualities of the subject, such as 'a photo of a [name]', 'a close-up photo', or 'a dark photo'. ```Stable Diffusion Prompt Template a photo of a [name], [filewords] ``` ```Stable Diffusion Prompt Template a rendering of a [name], [filewords] ``` ```Stable Diffusion Prompt Template a cropped photo of the [name], [filewords] ``` ```Stable Diffusion Prompt Template the photo of a [name], [filewords] ``` ```Stable Diffusion Prompt Template a photo of a clean [name], [filewords] ``` ```Stable Diffusion Prompt Template a photo of a dirty [name], [filewords] ``` ```Stable Diffusion Prompt Template a dark photo of the [name], [filewords] ``` ```Stable Diffusion Prompt Template a photo of my [name], [filewords] ``` ```Stable Diffusion Prompt Template a photo of the cool [name], [filewords] ``` ```Stable Diffusion Prompt Template a close-up photo of a [name], [filewords] ``` ```Stable Diffusion Prompt Template a bright photo of the [name], [filewords] ``` ```Stable Diffusion Prompt Template a cropped photo of a [name], [filewords] ``` ```Stable Diffusion Prompt Template a photo of the [name], [filewords] ``` ```Stable Diffusion Prompt Template a good photo of the [name], [filewords] ``` ```Stable Diffusion Prompt Template a photo of one [name], [filewords] ``` ```Stable Diffusion Prompt Template a close-up photo of the [name], [filewords] ``` ```Stable Diffusion Prompt Template a rendition of the [name], [filewords] ``` ```Stable Diffusion Prompt Template a photo of the clean [name], [filewords] ``` ```Stable Diffusion Prompt Template a rendition of a [name], [filewords] ``` ```Stable Diffusion Prompt Template a photo of a nice [name], [filewords] ``` ```Stable Diffusion Prompt Template a good photo of a [name], [filewords] ``` ```Stable Diffusion Prompt Template a photo of the nice [name], [filewords] ``` ```Stable Diffusion Prompt Template a photo of the small [name], [filewords] ``` ```Stable Diffusion Prompt Template a photo of the weird [name], [filewords] ``` ```Stable Diffusion Prompt Template a photo of the large [name], [filewords] ``` ```Stable Diffusion Prompt Template a photo of a cool [name], [filewords] ``` ```Stable Diffusion Prompt Template a photo of a small [name], [filewords] ``` -------------------------------- ### Python Project Dependency List Source: https://github.com/automatic1111/stable-diffusion-webui/blob/master/requirements-test.txt This snippet lists the core Python packages and their version constraints required for the project, typically found in a requirements.txt file. These dependencies ensure the correct environment for running the application. ```Python pytest-base-url~=2.0 pytest-cov~=4.0 pytest~=7.3 ``` -------------------------------- ### Stable Diffusion WebUI Python Dependencies Source: https://github.com/automatic1111/stable-diffusion-webui/blob/master/requirements_versions.txt This snippet lists all Python packages and their pinned versions that are essential for the /automatic1111/stable-diffusion-webui project. These dependencies ensure the correct functionality and compatibility of the application. ```Python setuptools==69.5.1 # temp fix for compatibility with some old packages GitPython==3.1.32 Pillow==9.5.0 accelerate==0.21.0 blendmodes==2022 clean-fid==0.1.35 diskcache==5.6.3 einops==0.4.1 facexlib==0.3.0 fastapi==0.94.0 gradio==3.41.2 httpcore==0.15 inflection==0.5.1 jsonmerge==1.8.0 kornia==0.6.7 lark==1.1.2 numpy==1.26.2 omegaconf==2.2.3 open-clip-torch==2.20.0 piexif==1.1.3 protobuf==3.20.0 psutil==5.9.5 pytorch_lightning==1.9.4 resize-right==0.0.2 safetensors==0.4.2 scikit-image==0.21.0 spandrel==0.3.4 spandrel-extra-arches==0.1.1 tomesd==0.1.3 torch torchdiffeq==0.2.3 torchsde==0.2.6 transformers==4.30.2 httpx==0.24.1 pillow-avif-plugin==1.4.3 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.