You can trust VideoGamer. Our team of gaming experts spend hours testing and reviewing the latest games, to ensure you're reading the most comprehensive guide possible. Rest assured, all imagery and advice is unique and original. Check out how we test and review games here
For those wondering how to run Stable Diffusion locally, don’t worry, we’ve got you covered.
Stable Diffusion is a text-to-image AI generator. There are a lot AI around these days, most notably ChatGPT and GPT-4 in the chatbot sector, and Midjourney and Adobe Firefly in the AI-image generation landscape. These are AI that have been trained on a specific data set to allow them to then use what they learned to respond to prompts effectively. Excitingly, for Stable Diffusion you can specifically tailor that data set a bit more if you run it locally. This will allow you to train the AI on your specific data, so your prompt responses will be much more accurately realised. But how do you do it?
Let’s get into it.
How to run Stable Diffusion locally
- Install required software
- Download Stable Diffusion repository
- Install required Python packages
- Text input
- Run Stable Diffusion
Install required software
Python 3.8 or later is required to run Stable Diffusion. Fortunately, it’s a easy download.
- Head over to the Python website.
- Click Downloads.
- Select your OS from the drop-down menu.
- Click Python 3.8 or above.
- Scroll down to find your OS file download.
- Click the appropriate download.
- Open up the download from your Downloads folder.
- Hit Continue and follow the prompts to install.
Download Stable Diffusion repository
The next step, is to download the Stable Diffusion repository. Fortunately, this is also easy.
- Head tot he Stable Diffusion GitHub page.
- Hit Clone or download.
- The repository will download as a ZIP file.
- Open up the ZIP file.
Install required Python packages
In the Stable Diffusion folder, make sure your Python packages are installed. Simply run the command “pip install -r requirements.txt”
Prepare text input
While everything is downloading, get thinking about what you want to put into Stable Diffusion as your text input prompt. It should be specific to what you are hoping to generate. Jot this input down in a separate file and save it.
Run Stable Diffusion
Open a command prompt and search for Stable Diffusion. Open the Stable Diffusion folder. Run this command: python interference.py -text_file/path/to/text_input.txt -output_dir/path/to/output_folder
After “text_file/” replace “path/to/text_input.txt” with the path to your input file. Then, after “dir/” replace “path/to/output_folder” with a path to the folder where you intend to save the resultant AI generated image.
We’ll be keeping an eye on this and if any new information comes in, we’ll update the page. So, make sure to check back in periodically to stay up-to-date.
Frequently Asked Questions
We know that many people have questions that they would like answers to. With that in mind, we’ve done our best here to answer some of your most pressing queries.
Do you need Python to run Stable Diffusion?
Yes, you will need Python 3.8 or later to run Stable Diffusion on your PC.
Do you need to download Stable Diffusion to use it?
No, you can generate images from the Stable Diffusion Online page without downloading Stable Diffusion. However, if you want to customise the data set and train the AI on your own data, then you will need to download it in order to run it locally.