I tried using ``Stable Diffusion UI'' that can easily install an environment that can run image generation AI ``Stable Diffusion'' on Windows only with the CPU

The image generation AI ``
GitHub - cmdr2/stable-diffusion-ui: A simple 1-click way to install and use Stable Diffusion on your own computer. Provides a browser UI for generating images from text prompts and images. Just enter your text prompt, and see the generated image. Windows 10/11 or Linux.
https://github.com/cmdr2/stable-diffusion-ui
The Stable Diffusion UI itself can be downloaded from the link in 'Installation' of README.md on the above GitHub page. This time, to introduce Stable Diffusion UI to the Windows environment, click the 'for Windows' link.

At the time of writing the article, Stable Diffusion UI has been uploaded to Google Drive in ZIP format. Click 'Download'.

Click 'Download as is'. The file size is 222MB.

Unzip the downloaded 'stable-diffusion-ui.zip' with free software such as

Double-click 'Start Stable Diffusion UI.cmd' in the folder to start it.
Command Prompt will be launched and various necessary tools will be installed automatically. However, this time it seems that the installation of the Stable Diffusion package failed at the end.

So, start 'Start Stable Diffusion UI.cmd' again.

Then, this time I installed all the packages and succeeded in starting. The main browser is automatically launched, redirected to 'http://localhost:9000', and you can access the Stable Diffusion UI. In the initial state, it is set to use GPU, so click 'Advanced Settings' to set CPU generation setting.

In Advanced Settings, you can set the seed value, the number of generations, the resolution of the images to be generated, the number of generation steps, and the guidance scale setting. Check 'Use CPU instead of GPU (warning: this will be very 'slow')' below. Now the image generation process will be performed by the CPU instead of the GPU.

In 'Image Modifiers' under Advanced Settings, an example of an input string (prompt) that can be set when generating an image is displayed, so it is useful if you do not know what kind of prompt there is.

Confirm that 'Stable Diffusion is ready' is displayed in green at the top center. The prompt this time is 'a photograph of an astronaut riding a horse', which is entered by default, and click 'Make Image'.

Then, 'Fetching' was displayed on the right side.

If you check the command prompt, you can see that the image is being generated, albeit quite slowly.

After waiting for a while, the image generated with the SE 'Chin' was displayed on the UI. In addition, when running on a slightly old PC with Windows 10 Pro, Ryzen 5 2600, RAM 16 GB, it took about 18 minutes and 30 seconds to generate one image.

By clicking 'Use as imput' displayed in the upper right of the generated image, you can use img2img mode to generate a new image based on the generated image.

This time, when I used the installed GeForce GTX 1060 (VRAM 6GB) to generate it, one image was generated in just about 40 seconds. You can save it at hand by clicking 'Downloads' in the upper right of the image.

The version of Stable Diffusion UI is 2.05 at the time of article creation. Still, according to cmdr2, 'it's just a beta version'. In addition to preparing a troubleshooting page in case of installation or operation failure, it seems that questions are also accepted on Discord .
Related Posts: