Recently, AI drawing is very popular, and some online tools have been tried, but the number of free online tools is limited. If you want to get more use times, the price you need to pay is not cheap.Mo Tao learned that the local AI can draw "artistic images" by building a "Stable Diffusion", so there is no need to pay high fees.
What is Stable Diffusion
Stable Diffusion is developed by computer scientists and artists. It uses deep learning algorithm and stable diffusion process to generate artistic images.Specifically, it uses an algorithm called random walk to create images. This algorithm simulates the path walk in the process of stable diffusion by making small, random changes to the pixel values.The algorithm also uses neural network technology to learn and generate different image styles.
Stable Diffusion can generate very beautiful and complex works of art. Its applications include art creation, image generation, visual effect design, etc.If you are interested in this, you can search online for more information, or try to use this tool for artistic creation.
Before you start
I searched the website for the construction process of "Stable Diffusion", and found that the process was very complicated, which made me want to give up.Just as I was about to give up, I found a project named "Easy Diffusion" on Github. It provides various environments, models and other dependencies required for one click installation of Stable Diffusion, which greatly reduces the difficulty of installation.
This article aims to share and record the process of installing "Easy Diffusion" in xiaoz. Although this tool simplifies many steps, the installation is still difficult. It is recommended that friends who have some knowledge of computers try it.
preparation
TZ that can access the Internet scientifically (Github can be accessed)
For a computer with not too bad configuration, the higher the CPU and graphics card configuration, the better (the configuration of xiaoz is AMD 3600+RTX 3050 is barely enough)
I have heard of HTTP proxy and know how to use it (SS can be converted to HTTP proxy, please study it yourself)
Easy Diffusion will download a large amount of content from foreign networks, such as Python environment, drawing models, etc. It is difficult or almost impossible to access the domestic network, so we need to make the command line of Windows scientifically accessible.
Open your CMD command line and enter the following command to set the HTTP proxy:
It can be solved by setting the pip image source. Easy Diffusion will install a Python 3.8 environment for you separately. We need to set the pip image source.The following command sets the pip image source of Easy Diffusion as an AliCloud image:
cd D:\stable-diffusion-ui\installer_files\env\Scripts>d:pip.exe configsetglobal.index-url https://mirrors.aliyun.com/pypi/simple/
If you encounter a model download failure prompt error, you can directly go to Google or Github to search the name of the model and download it, and then put it inmodelsIn the specified directory.
When the Easy Diffusion installation encounters an error, please read the error message. Then you can try to solve the problem manually by the above method. After the problem is solved manually, run againStart Stable Diffusion UI.cmdThe script is sufficient.
During the installation process, xiaoz encountered the problem of Python package installation timeout and model download error, which has been successfully solved manually through the above methods.Everyone's situation is different. It is suggested to be flexible and search for solutions online.
Run Easy Diffusion
The browser address will be opened automatically after successful installationhttp://localhost:9000/After seeing the WEB interface, you can generate "art images" according to your preferences. Some specific usage methods are still under further study. Welcome to leave a message and discuss.
Cancel HTTP proxy
After installation, we can cancel the HTTP proxy on the Windows command line:
The activity of "Steam Game Plus One" to get Lost Daughter for free and directly add "Steam Game Plus One" for free has also been published a lot.The way to get it is very simple. After logging into the steam account, on the activity page, click Add
We may need to use the visual Linux desktop when using the Linux system server. Some bloggers may not know how to set it when using the VNC client to access. Here, Motao brings you the latest one click installation script, and uses the browser after installation
When a website cannot be opened, the easiest way to determine whether DNS resolution fails is to use the ping command. We can click Start Run enter cmd on our computer.Then enter the ping command, as shown in the following figure: 1. DNS resolution is normal
WeChat payment 8.8 Smart Life Day: Ten million free tickets can only be used for today's activities. If you use WeChat payment in offline stores or online applets, you can get free tickets. If you don't win the free ticket, you will have a chance to get a big bonus.The maximum amount of free shake order is 200 yuan, and the maximum amount of free shake order is 2 yuan per day
Steam Xijiayi's "Transfer" is available for free in a limited time. This week, Steam launched another Xijiayi's "Transfer", which is available for free in a limited time. "Transfer" is a game released in 2018 with an original price of 70
According to our Chinese habit of writing articles, the first line needs to be indented two words. It's troublesome for bloggers to type space each time they write articles, so many people would like to add this space to the template.Mo Xiaonai said that if the first line of a blog post is indented
Free certification saves 600 yuan for the qualification of dithering enterprise account. The little partner who did not get free certification last time should not miss this time. After the 600 yuan certification is saved directly, you can get dithering blue V logo, video top, official links, merchant pages, smart clips, private message automatic reply, etc
Tencent Cloud TSF microservice platform, the platinum version will be renewed for free until 2036, and it will be paid for nothing!I don't know what use it is for the moment. Let's roll it first!Introduction to Tencent microservice platform TSF Tencent Service Framewor
Software introduction As the mobile phone has been used for a long time, more and more garbage files left by various cached data and uninstalled applications will accumulate. If not cleaned up in time, it will not only occupy storage space, but also cause problems for subsequent application updates, slowing down the mobile phone's running speed.But the files on the SD card
Error while loading stable-diffusion model: model_manager.py:46 D:\stable_diffussion\models\stable-diffusion\sd-v1-4.ckpt 18:16:06.937 ERROR cuda:0 Error: Unable to load weights from pytorch checkpoint file for model_manager.py:47 ‘D:\stable_diffussion\profile/.cache\huggingface\hub\models–openai–clip-vit-large-patch14\snapshot s\8d052a0f05efbaefbc9e8786ba291cfdf93e5bff\pytorch_model.bin’ at ‘D:\stable_diffussion\profile/.cache\huggingface\hub\models–openai–clip-vit-large-patch14\snapshot s\8d052a0f05efbaefbc9e8786ba291cfdf93e5bff\pytorch_model.bin’. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True. 18:16:06.941 ERROR cuda:0 Consider removing the model from the model folder. How to solve this problem?
Error: The model for Stable Diffusion has not been loaded yet! If you’ve tried to load it, please check the logs above this message for errors (while loading the model). How to solve this problem