
Stable Diffusion is a machine learning model developed by Stability AI to generate digital images from natural language descriptions. The model can be used for different tasks like generating image-to-image translations guided by text prompts and upscaling images.
Unlike competing models like DALL-E, Stable Diffusion is open source and does not artificially limit the images it produces. Stable diffusion was trained on a subset of the LAION-Aesthetics V2 data set. It can run on most consumer hardware equipped with a modest GPU and was hailed by PC World as "the next killer app for your PC".
Since Stable Diffusion is run locally and not in the cloud, as mentioned there is no limit to the number of images that you can produce but in order to use it you will have to get down a little dirty with setting your PC environment for it since it is not really an application, it is a command line text based descriptor that will use python to generate your images, so there is no install nor GUI.
In this guide, we will show you how to both install and run Stable Diffusion on your local PC so you can start producing some cool images all by yourself.
Make no mistake, Stable Diffusion will not run on a potato PC, in order to harvest the power of AI-generated imagery this is what you will need:
For this tutorial, we are covering the installation and running of Stable Diffusion on Windows PC. The steps presented here are presented in a way that installation can be performed on any operating system but precise instructions will be for Windows OS.
The first thing to do is to install GIT. It is a tool that will let you easily maintain and install repos from the internet. to install it go to: https://git-scm.com/ and click on download. Follow the instructions for your version of the operating system. If you are a developer you are familiar with GIT and if you already have it installed you can skip this step.
One thing that is important when installing GIT locally is to select to use it via the command line (the second option that says "Git from the command line and also from 3rd-party software").
Now when we have GIT installed, next thing is to use Miniconda3 to install python and all required libraries that are needed. Get the installer at: https://docs.conda.io/en/latest/miniconda.html
Miniconda3 is basically an easy installer so you do not have to install tons of stuff manually from different websites and sources, it is nicely packaged in the installer that will take care of everything.
After the previous two steps, we are ready now to actually install Stable Diffusion. Go to https://huggingface.co/CompVis/stable-diffusion#model-access and install the latest library (as of the writing of this article currently it is stable-diffusion-v1-4-original, the last one on the right), the library is almost 5GB in size so be prepared for big download.
After installing stable diffusion's latest library it is time to update it to the newest version. You can download ZIP from GIT HUB https://github.com/CompVis/stable-diffusion
Once downloaded click on the Windows start button and type in Miniconda3 and click on open. Create a folder and name it how you want on a drive of your choice. For this example, we will install it all in disk C under folder AI_art, follow the instructions below but use your own names and destination instead. Do not close Minicoda3 after typing commands!!!
cd c:/
mkdir AI_art
cd AI_art
Extract GitHub files that you have downloaded into your new folder and get back to Minicoda3 and type the next commands:
cd C:\AI_art\stable-diffusion-main
conda env create -f environment.yaml
conda activate ldm
mkdir models\ldm\stable-diffusion-v1
Let the whole process finish, some files are large and it might take a while. After the whole process is finished and completed, copy the checkpoint file that you have downloaded into: C:\AI_art\stable-diffusion-main\models\ldm\stable-diffusion-v1
After the file is copied rename it to model.ckpt and you are finished.
The created environment is needed in order to actually use Stable Diffusion to create images. Each time you want to use it you will have to run it, so go into Miniconda3, and inside it type:
conda activate ldm
cd C:\AI_art\stable-diffusion-main
after we are inside the folder call the script with the parameters:
python scripts/txt2img.py --prompt "TXT DESCRIPTION OF IMAGE THAT YOU WANT TO CREATE" --plms --n_iter 5 --n_samples 1
and that's it, your image is created and it is located in C:\AI_art\stable-diffusion-main\outputs\txt2img-samples\samples
Users when upgrading to Windows 10 operating system from Windows 8/8.1 or Windows 7, often encounter error code 8007002c. This error occurs when there’s an attempt made in performing an overall clean boot procedure. During the installation process, it will reach a certain maximum limit, for instance, 75%, and then reverts to its original state. Sometimes, after installation, users will encounter a black screen issue and there is no cursor visible.
Misconfigured system files that create registry errors within your operating system normally cause error code 8007002c in Windows 10. This registry error happens when there are new programs being installed over old ones without the old programs uninstalled entirely. Another possible cause could be from some malicious software like spyware, adware, and viruses.
Caution: The following steps are complicated. The risk of being in a no-boot situation or data loss might be encountered. It would be best to be supervised by an experienced user, especially in using the command line.
In order to fix Error code 8007002c occurring in Windows 10 upgrade, you can follow this step-by-step manual repair method. Once the repair method is correctly executed, users will most likely quickly resolve issues such as the Error code 8007002c and be able to upgrade to Windows 10 operating system smoothly.
However, in such cases where there are complex instructions and thus need an expert, seek help from a Windows professional. You may also want to consider making use of an automated tool whenever needed.
There are several ways to fix Error code 8007002c, but here are the most effective and efficient methods:
To be able to download and install the necessary updates, you may use the force Windows Update tool. See below for the steps:
NOTE: Don’t forget to hit Enter after every command.
Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /ScanHealth Dism /Online /Cleanup-Image /RestoreHealth
Here’s how you can input a machine name:
Another reason why Error code 8007002c occurs is when there’s a defective and wrongly installed memory chip. Try using the Windows Memory Diagnostic to diagnose if there are RAM Issues.
One more possible cause why Error code 8007002c occurs is due to third-party software. To fix this error, you can try booting up your device with Selective Startup -- a boot type where you can load a limited set of startups and services.
Can’t seem to put up with the long and technical manual repair process? You can still fix this error by downloading and installing a powerful automated tool that will surely get the job done in a jiffy!
MySearchDial is a browser hijacker that typically comes bundled with free software on the internet. This web platform designed for searching the internet and offers the installation of its software. This software injects itself into browsers and gains access to your settings, browsing data & user information. This data is distributed to the ad providers without limitation. While covered by their EULA, most users will be unaware of what they agree to with checkboxes selected by default. The software also adds a huge amount of registry keys and links throughout the operating system. Since the software injects itself into many personal files, removing the software results in a total reset of your browser settings. For these reasons MySearchDial is classified as potentially unwanted and is flagged for removal by a number of internet security utilities.
“An unknown error has occurred: Server error 421” "Could not send your message. Error 421" 421 4.2.1 : (DYN:T1) http://postmaster.info.aol.com/errors/421dynt1.html 421 4.3.1 Out of disk space for temp file 421 4.3.2 All server ports are busy 421 Downstream server error 421 Fork failed 421 Greylisting enabled, please try later “An unknown error has occurred. Subject ‘Testing’, Account: ‘pop.charter.net’, Server: ‘mail.charter.net’, Protocol: SMTP, Server Response: ’421 Message rejected’, Port: 25, Secure(SSL): No, Server Error: 421, Error Number: 0x800CCC67”