If you are a creator interested in using AI-generated art, installing Stable Diffusion locally can enhance your creative process. This guide will walk you through the steps needed to set up Stable Diffusion on your own machine.
Before starting the installation, ensure that your system meets the following requirements:
Download and install Python from the official Python website. Make sure to check the box that adds Python to your PATH during installation.
Open your command line interface (CLI) and run the following command to clone the Stable Diffusion repository:
git clone https://github.com/CompVis/stable-diffusion
Change your working directory to the cloned repository:
cd stable-diffusion
Use pip to install the required dependencies:
pip install -r requirements.txt
You'll need to download the pre-trained model weights. You can find the model here on Hugging Face. After downloading, place the model files in the appropriate directory as instructed in the repository's README.
Now you're ready to generate images! Use the following command to run the model:
python scripts/txt2img.py --prompt "A peaceful landscape" --plms
Replace the prompt text with your desired input to create different images.
By following these steps, you can successfully install and run Stable Diffusion on your local machine. This setup allows you to experiment with AI-generated art and unlocks new creative possibilities.
"The only limit to your creativity is your imagination." - Unknown