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
The recently released Windows 10 captivated the mass but its rollout, polished as it might have been, proved everything but seamless. Surf the Internet and you’ll get the gist. People are complaining and they need assistance. Assistance with what you might ask? Many have attempted to make an upgrade but failed after encountering various strange combinations of letters and numbers. These are none other than error codes. If you’ve tried and failed, feast your visuals below as you might encounter one of these 5 Windows 10 Upgrade errors.
Encountering error code 0x80073712 in no way implies that you need to throw out your computer system and acquire a new one. Not at all! This error code simply means that a very important file to Windows might have gone missing or corrupted. This file is crucial to Windows update so without obtaining this file, you won’t be able to proceed with the update.
Likely, there are many programs and drivers installed on your computer. They all play a vital role. However, if you’ve received error code 0x800F0923, it might be time to consider or turn your eyes to installed drivers on your system. Why? Error code 0x800F0923 means that there’s a driver or driver on your current Operating System that’s not compatible with Windows 10. There’s clearly a dilemma here.
That’s a pretty odd error but I will say it's slick… That Windows 10 upgrade error is straightforward. Microsoft is just letting you know that they won’t be able to complete the update to Windows 10 and so they are putting your computer back to where it was. How nice of them.
The error messages above are pretty generic and will manifest when the upgrade fails for one reason or the other. To resolve this issue, you’ll most definitely have to decipher what error code was presented. Identifying that will provide a glimpse into exactly what steps you need to take.
I don’t know about you but I strongly believe Microsoft is subtly letting you know that your computer system is old and needs to be thrown out. Also, this update could imply that your PC needs to install important updates to rev you up to the requirements. All relevant updates to your computer must be installed before you can get past this stage.
This Windows 10 upgrade error has been the talk of the Internet. In fact, users of Windows OS have been making it a mockery. Clearly, not many have had success after encountering this error. Obviously, “something happened” but it’s just not easy to decipher what went wrong. Microsoft is still trying to figure it out.
net stop vss net start vssOnce the commands execute successfully, try the system image backup again. The operation should complete successfully. You need to also check if the Software Protection Service is disabled. If it is, then Start it and ensure that it is set to default which is Automatic (Delayed Started).
Error 0xe06d7363 is displayed when a process or an operation is not launched, or completed by an application.
This error can prevent the user from performing some operations. It might close the application unconditionally. Sometimes a ‘GetLastError()’, a ‘GetExceptionCode()’, or a ‘GetExceptionInformation()’ is displayed with this error.
Error 0xe06d7363 can occur for a number of reasons. Damaged, corrupted, or missing files in the registry database are the main reasons why the error might occur. Another reason is when the system files are not configured correctly, thus they corrupt system files in applications. They can also affect the hardware devices.
All code-generated exceptions in the Microsoft Visual C + + compiler will contain this error. As this error is compiler-generated, the code will not be listed in Win32 API header files. This code is a cryptic device, with ‘e’ for exception while the final 3 bytes represent ‘msc’ ASCII values.
To resolve this error, you will have to debug an application. While using Microsoft Visual Studio, you can stop the program when the error 0xe06d7363 occurs. To start debugging, follow these steps:
Another fix for this issue is reverting back to an earlier copy or the last update of the same Windows. Error 0xe06d7363 can occur is when you try running a client application using Microsoft.SqlServer.Types.dll component on your computer that has Microsoft SQL Server 2008 Server Pack 2 installed. With the error, the following text can be seen:
“unable to load DLL ‘SqlServerSpatial.dll’ Exception from HRESULT 0xe06d7363".
A Cumulative Update 7 was initially released for SQL Server 2008 Service Pack 2 in order to fix this issue. Since the builds are cumulative, every new fix released contains hotfixes and all security fixes which were also included in the previous SQL Server 2008 fix release. This error can be found in all Microsoft products that are listed in the Applies to Category.
Microsoft SQL Server 2008 hotfixes are created to resolve errors like 0xe06d7363 on specific SQL Server service packs. This error is by design and has commonly occurred in the previous versions of Windows before Windows 7.
Congratulations, you have just fixed Error 0xe06d7363 in Windows 10 all by yourself. If you would like to read more helpful articles and tips about various software and hardware visit errortools.com daily. Now that’s how you fix Error 0xe06d7363 in Windows 10 on a computer. On the other hand, if your computer is going through some system-related issues that have to get fixed, there is a one-click solution known as Restoro you could check out to resolve them. This program is a useful tool that could repair corrupted registries and optimize your PC’s overall performance. Aside from that, it also cleans out your computer for any junk or corrupted files that help you eliminate any unwanted files from your system. This is basically a solution that’s within your grasp with just a click. It’s easy to use as it is user-friendly. For a complete set of instructions in downloading and using it, refer to the steps below Perform a full system scan using Restoro. To do so, follow the instructions below.