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
“Installing, this may take a few minutes… WslRegisterDistribution failed with error: 0x8007019e/0x8000000d Error: 0x8007019e/0x8000000d The parameter is incorrect. Press any key to continue.”Error code 0x8007019e or 0x8000000d could be due to the absence of supporting Windows 10 features since the error does not even let one use the WSL-based command line. If you are one of the users facing this problem, then you’ve come to the right place as this post will provide you with a couple of suggestions to fix it. There are two options you can check out to fix the problem, but before you do that, you need to make sure that the Windows Subsystem for Linux feature is enabled. The two options include enabling WSL using the “Turn Windows features on or off” option and using the Windows PowerShell.
When you receive the error 0x800ccc79 it may hamper your ability to send emails. Therefore it is advisable to fix it to ensure your emails are sent and received without any difficulty.
This Outlook error 0x800ccc79 is quite easy to repair. By following the quick fix 0x800ccc79 error code solutions given below you can resolve this error in just a couple of minutes.
Here’s what you need to do to fix this error right away:
Solution: If the error occurs due to Outlook Express being configured to use the SSL protocol while sending and receiving emails via the web, then to resolve it, you need to allow Outlook Express to bypass the Secure Socket Layer settings.
To do so, click on ‘tools’ and then on ‘Accounts’. Now select the email account that you want to modify.
Now select the ‘Properties’ tab and then click on ‘Advanced Settings’.
Here search for the following text message ‘This server requires a secure connection’. Once you locate it, uncheck all the checkboxes given next to this option. After that save the changes and restart Outlook Express to see bring the changes into effect.
Solution: If the error 0x800ccc79 occurs due to missing or corrupt registry entries, then the best way to fix this error is to download and install a good registry cleaner on your PC.
The registry cleaner will help you clean your corrupt and damaged Windows registry entries and get rid of this error right away. It is suggested you download the registry cleaner tool from a reliable website to avoid any malware or virus downloads simultaneously.
Once you download the registry cleaner on your system, click on scan. The cleaner will scan your computer completely for registry errors and show you the results in a list form.
After the scanning is complete, click on repair to fix the errors.
So, next time, if you or anyone at your office comes across the Outlook Express error 0x800ccc79, you can try these solutions and fix the error immediately without waiting for the network personnel to come and resolve it.
Sometimes we need and want some apps that are not part of the official Amazon Appstore but having their Fire TV stick prevents us from installing anything that's not in their store, or does it?
You can quickly "jailbreak" given stick and unlock additional installations via different providers. Although the term jailbreaking is associated with illegal and hacker activities rest assured that in this case there is nothing illegal about this procedure and that you are entirely safe.
In order to do this procedure firstly you will have to allow the installation of apps obtained from outside the Amazon Appstore. To do this open the settings menu on your Fire TV Stick and inside settings choose My Fire TV. On the My Fire TV page select Developer Options and inside select Apps From Unknown Sources. The prompt screen will open, choose Turn On to activate the option.
APK installation is enabled now and the next step is to download an app like Downloader that will allow you to get your favorite apps. Downloader is free to download manager fully available on the Amazon Appstore and with it, you can download any kind of file to your device including APKs.
Once installed open the Downloader app and type in the URL or search term in order to find your application of choice but please do get all of your APK from trusted sources in order to avoid exploits and getting malware.
Error Code 0x8000ffff is an error that is often experienced while attempting to install updates on a Windows machine. It has been found in Windows 10, although the error has been present in the Windows operating systems dating back to Windows Vista.
Common symptoms include:
There are several basic Windows tools that can be used to attempt to resolve Error Code 0x8000ffff on your machine. While some of these tools may be familiar for basic users, others may require advanced competency in order to be used correctly. If you are unsure of your ability to complete the methods listed below in order to resolve this error code on your system, you may need to get in touch with a computer repair technician who is competent in dealing with Windows Update repairs.
There are several common ways that users can attempt to resolve the appearance of Error Code 0x8000ffff on their Windows devices. If you are not sure that you can follow these steps through to completion, you would be well advised to get in touch with a qualified computer repair technician to help you to finish out the repair process.
Here are the best methods to resolve Error Code 0x8000ffff on your Windows machine:
It may sound obvious, but one of the most effective ways to resolve Error Code 0x8000ffff on your machine is to simply reboot your computer. In some cases, the error shows up because there are processes that the system believes are still running when they really aren’t. Restarting your machine also allows your system to apply any previous changes that have been made and to mark any installations that have been undertaken as being complete.
Reattempt your update installations after you have restarted your computer to see if you are able to finish them out successfully.
The Windows Registry Repair tool is an asset that can make it easy for your system to scan for potential problems in the registry and notify you as to their status. In many cases, the Registry Repair tool can fix the problems that it finds all on its own, although in some cases, you may receive a message that states an error was found that could not be resolved through the program.
The simplest way to access the Windows Registry Repair tool is to do a search for it within the search bar in the Start menu. Once you begin to run the Registry Repair tool, it can take a while to complete its scan, so be prepared to wait for some time once you start it.
Once the tool has completed its scan of your system, it’s always a good idea to reboot your computer so that all of the changes that have been made to the system can be applied successfully to the operating system.