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
HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWinlogon
"STOP 0×00000050: PAGE_FAULT_IN_NONPAGED_AREA – dxgkrnl.sys"A problem has been detected and Windows has been shut down to prevent damage to your computer. The problem seems to be caused by the following file: Dxgkrnl.sys."
"STOP 0x0000000A: IRQL_NOT_LESS_EQUAL – dxgkrnl.sys""Your PC ran into a problem and needs to restart. We’re just collecting some info, and then we’ll restart for you. If you would like to know more, you can search online later for this error: dxgkrnl.sys."
"STOP 0x0000001E: KMODE_EXCEPTION_NOT_HANDLED – dxgkrnl.sys"Some of the common symptoms of this error code include
If you are following the latest gaming trends and spend a lot of time on social media, watching streams, etc. you might be under impression that gaming as a hobby is very expensive. If you plan to play the latest games on a very large screen in their highest setting that might be true but if you do not care about that you can still play games and spend much less money on them.
That being said we are here to share with you some tips and tactics on how to play good games with minimum money spent.
Buying a game on its launch date is maybe the worst and most expensive thing you can do. Games have their highest price on launch day but sadly with the current state of the industry, they are in their worst state as well. Games eventually became better over time after patches are released but so does their price drops after the hype has calmed down. So if you really must have some specific game on its launch day, go for it but know that by doing so you are getting the worst version of the game for its higher price.
All services today have a wishlist, very good and money-saving tactic is to wishlist interesting titles and wait for them to be on the sale. Services will usually have the option of sending you an email once your wishlist titles are on sale so you will be notified once they do. A good tactic as well is to wait for large sales like for example summer, winter, easter sales, or many other seasonal ones.
Some online stores are offering free games from time to time and some are always offering some titles as gifts in order to get customers to their platform. EPIC has become famous for gifting some great titles over the past years completely for free and there are a lot of free-to-play games on each platform that you can play.
Having a new computer is great but if your budget is tight you might consider getting your PC as a second hand instead of the new one. Hardcore games will switch components more frequently than your typical users and usually the components will be sold cheaper and be more affordable.
Many games today are available on many platforms not only just on your typical PC. Same titles are available on your mobile phones, tablets, and even on your Android TV. Many titles will not even require the latest technology or monster of a computer in order to run them. You can also lower game settings and play many games on lower hardware if you do not mind not having top graphics settings.
If you are very tight on budget but want to enjoy new games in their full glory there is always the option to play games via a cloud streaming service, it is not exactly a mega cheap option since it has a monthly fee but it is cheaper than some high-end gaming computer. If you combine this with the game pass you can enjoy the latest games with high-quality settings and pay it on a monthly basis.
You may experience error code 24 when you try to use a device on your PC that is not properly installed or its driver is corrupted. Code 24 is a Device Manager error and it pops up on your computer screen in the following format:
“This device is not present, is not working properly, or does not have all its drivers installed. (Code 24)”
Error code 24 may be triggered due to several reasons. However, the most common causes for this error code include:
It is recommended to resolve the error code to ensure your PC works at its optimal performance. Error code 24 can lower the device functionality and PC performance dramatically.
Since this error code can mean several different things, troubleshooting it can be quite tricky but to make it simple to resolve, we have listed down some easy methods to repair error code 24.
Try these methods to fix error 24 on your PC and ensure your system works at its optimal pace. Let’s get started….
Problems with BIOS, the controlling software in the PC motherboard, can sometimes trigger hardware conflicts resulting in Device Manager error code pop-ups.
In such a scenario, it is advisable to update BIOS. To update, go to your PC motherboard manufacturer’s website. Here you will be able to find instructions on updating BIOS.
Follow the instructions carefully to resolve error code 24 on your system. If the error code still persists, then try other methods discussed below.
If you experienced code 24 on your PC after installing new devices, then it is advisable to remove them to resolve the error code.
If the device is attached to your computer, then simply disconnect and remove it immediately. Once you disconnect it, reboot your system to activate changes.
If device removal does not resolve the problem, then consider updating the device driver. Code 24 is also related to driver problems.
It can occur if a device driver is corrupted or outdated. In such an event, it is advisable to update the driver by installing the new and latest device driver version on your PC.
For doing this, simply download the latest device driver version from the manufacturer’s website and update it.
Finding problematic drivers and the latest device driver versions to update them, however, can be time-consuming and sometimes even frustrating. To avoid being in this situation, it is advisable to download DriverFIX.
DriverFIX is a cutting-edge, user-friendly and an innovative program exclusively designed to resolve device driver related issues and problems on computer systems
It is integrated with the newest technology and intelligent programming system that enables and empowers PC users like you to repair device driver error codes in seconds.
Once you install this software on your PC, simply run it. The software program instantly detects all problematic drivers and updates them with their latest versions available on the internet.
All this is done in mere seconds and it’s not time-consuming at all. Moreover, device driver updates are performed frequently to ensure that you don’t experience any driver problems again.
Click here to download DriverFIX and repair Device Manager error code 24 right away.
CHKDSK [volume [[path] filename]] [/F] [/V] [/R] [/X] [/C] [: size]]Note: In the command given above, “[/F]” will try to fix the system errors while “[/R]” will be the one to fix the bad sectors.