stable diffusion it stands as one of the most complete machine learning models to use, if you want to generate images with Artificial Intelligence. the XL version it is completely free, but somewhat complex to run on your PC. Therefore, we are going to make a detailed explanation so that you can use the program on any basic computer.
Let’s go patiently, we’re sure we’ll make it. In the newsroom of FayerWayer we tried it and we were able to get it running, on an “old” PC that was waiting to be turned on for any test.
We know that installing Stable Diffusion requires a pretty good computer, given all the software requirements it has. The good thing about this modality is that with any ‘computer’ we can run the program thanks to a Google app called Colab. We rely on a report from xataka so I can share this step by step.
Let’s start the adventure
- Gonna Google Colaba tab will open in your browser, and an interface will be displayed as a kind of development environment where the code to install Stable Diffusion XL is located.
- After opening Google Colab make sure that in the execution environment the option is selected GPUsin the hardware accelerator.
- After you have verified the execution environment, you can continue by clicking the execute button on the first line of data
- When executing the code, you will see that the “Instructions/Code” are increasing on the screen. Wait for it to finish executing to proceed with the execution of the second part of the code, you must hover over it until the execution button appears again.
- Once you see that no more instructions/code are being generated on the screen, you can look for the link that will take you to the text interface. It will appear below the next sentence “Your quick Tunnel has been created! Visit it at”.
- By clicking on the link, a page will open, with the first step of the model configuration, which is to accept the license. Click on “Agree”
- Without crying. Cheer up, it’s not long. Now the process of configuring the model begins, first you will have to choose the color theme, then indicate that you are only going to use it on your PC or laptop, selecting the option Just Yourself On This PC. In step 4 you must select ComfyUI to indicate the type of backend you will use.
- Then you must select which models you want to download. You can select all but as long as the two options are activated. Stable Diffusion XL, the base of the model and the refiner. Then you will see the summary of the configurations and to continue you must click on Yes, I’m sure to start the installation.
- Once the installation is finished, you will automatically see the page of Stable Diffusion XL. At the bottom of the window, select the tab “models” click on the two points that appear in the left column, and choose the model OfficialStableDiffusion. Here inside, select the model Stable Diffusion XL 1.0 Base.
- After choosing the model, you can write the description of the image you want in the box prompt and click Generate Image. The instructions have to be in English and it can take a few seconds to generate the images. In the negative prompts box you can define which elements or details you do not want to appear in the images.