AI painting (1) stable diffusion installation tutorial

introduction

stable diffusion is a free and open source AI painting tool, which can help anyone create paintings easily. Whether you have drawing skills or no experience at all, stable diffusion lets you unleash your creativity on the digital canvas.

stable diffusion provides a rich variety of painting tools and options, allowing you to create according to your preferences and style. Whether it is a delicate pencil sketch, a bright color oil painting, or a fantastic watercolor effect, it can be realized here.

In this article, we will detail the use of the stable diffusion installation method.

local installation

The operation of stable diffusion's local deployment is completely based on the user's local computer, which brings great freedom to the user and can effectively avoid the leakage of your creative works.

Generally speaking, the memory should not be lower than 16G; the available hard disk space should not be less than 50G.

A high-performance graphics card with a video memory greater than 4GB (preferably higher than 6GB, recommended 8GB or higher) is required. The higher the performance of the graphics card, the faster the creation speed.

Open source address: GitHub - AUTOMATIC1111/stable-diffusion-webui: Stable Diffusion web UI , this version has nearly 1 million Stars on GitHub.

win10 installation method

  1. Install Python 3.10.6, preferably in the default path, check "Add Python to the system variable path", do not use the used python environment
  2. Install the git toolkit. Download address: Git - Downloading Package
  3. Download the stable-diffusion library. In the win10 environment, cmd enters the command line, and the cd command enters the prepared installation directory (not in the C drive, which takes up a lot of memory), and runs the following installation steps.
  4. Clone the library locally by running the following code: git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git .
  5. Enter the stable-diffusion-webui\ directory, run webui-user.bat and it will install itself.
  6. There may be interruptions during the installation process, this is normal. As long as the error is interrupted, you only need to re-run the webui-user.bat, and the program will continue the installation process. Generally speaking, it is normal to repeat it more than ten times, please be patient enough.
  7. After the installation is complete, the following interface will appear:

  8. Enter the address http://127.0.0.1:7860 in the red box in the browser to access the local service of stable diffusion. At this time, you should see the following screen:

At this point, it can be used normally.

server installation

If your computer configuration is not high and you want to use this software, you can use a server, but this requires some money to rent a server​. Of course you can also use ​free servers.

Recommended use​: AutoDL Computing Cloud | Elastic, easy to use, and cost-effective. Rent a GPU and use AutoDL

After entering, log in to your account. If you are a student, you need to carry out student certification, and the rental fee will be reduced. After logging in, click on the computing power market.

Choose a graphics card in the computing power market, and A5000 is recommended. Note: only when the current GPU is idle can you rent it.

After selection, at the bottom, select the community image, enter "rotbit" in the input box, select the download button of this image, and finally create it.

After creation, click Start, click jupyterLab, enter the console, then click the Run button, and wait for the environment configuration.

When http://127.0.0.1:6006 appears, exit the current interface, click Custom Service, and ignore the warning

The following interface appears, you can start using

It can now be used normally.

epilogue

So, today we introduce here. Interested friends can follow us, we will continue to update this series of tutorials.

If you think it is good and helpful to you, you can follow me, and more content will be released in the future. You can also join our planet, pay attention to the official account, reply to "planet", get the invitation code, and you can join. If you don't know what our planet is, you can read this article, which has a detailed introduction.

Empowering AI tools to achieve efficient cash realization and early leave from work

I am discussing interesting topics with my friends at "AI High Efficiency [Work, Study]", why don't you come together?
https://t.zsxq.com/11KVfN0RChttps://t.zsxq.com/11KVfN0RC

The public account @AI宅player No. 2 player is an obsessed practitioner who relies on AI to help study and work. There are 20,000+ fans on the whole network, and the AI ​​that Xiaobai can also play is continuously updated, allowing you to leave work 2 hours earlier.

What's on the planet:
e-competition column, deep learning column, AI-assisted learning column, AI tool monetization column, etc.

Suitable for the crowd:
Students in school: I hope my experience can help you solve the problems you encounter.
Developers: Share your own experience, and you can broaden your path and learn more.
Hope to make money with side jobs: We use AI The way of cashing out can help you make money with sideline business

In fact, rigid standards cannot limit us with infinite possibilities, so ah! Come on guys!

Guess you like

Origin blog.csdn.net/qq_48764574/article/details/132250166